Menu

#2 Common Class Structure

0.1
open
2014-05-16
2014-05-16
Bing Cheng
No

Common Class Structure

Identity

Identity is the base of all object class. An object in the Rep Framework is a class that may have many instance and can function itself individually. That is to say, the task within the object can be triggered by events or scheduled at specified time.

The task is any operation on data and state. Usually, the task is defined as a function and has it operating space defined in the object itself (member object or member pointer). The link of data flow from output of one object to others is done by memory pointer, thread safe memory access or .

To do this, there needs a system to manage all the object and handle their functions in serial or parallel manner.

Identity manager

An Identity manager contents and manage the ID. It has some kind of object container to have the reference to each object. An Identity manager has the responsibility to run the code for each object it managed, either by looping through each one's task function, running multi-threaded, running on special hardware such as GPU or running across the network.

some times ( such as asynchronous timing system), the order of all the task an Identity manager to run is important. The management of the order can be done by object hierarchic tracking, dependent mapping or the orders specified in objects.

Space

Space is a simply model to contain many Object in one consisted system (other than each one in the system of itself). A Space provide an group of data state to storage the common data of all the object in this space. Some kind of attribute can be established in the space, and the reaction on this attribute of all the object happen in the condition of close distance or overlapping. The reaction can change to inner state of the object, create new object or destroy old object.

3-Dimensional Cartesian space is usually used to describe the object's location in 3D space. Each object has a enclosure boundary of volume that is register in the Space manager class.

If the "occupied" attribute is active, the overlapping and containing relation can be checked between two object. And also the event of collision can trigger each object to act.

The boundary can be defined using a mesh. If the vertex of the mesh is dynamic, the object has the ability to change its shape in reaction to events.

Field

The field is kind of object that has some attribute in non-uniform distribution inside its boundary.

The field equation is the mechanics keep the field evolving.

Some field can generate a group of objects, that show the detail of the field. Or, the reaction of the group of object define the rules of the field.

Object factory

The generator of objects from object streaming, command list or the Big Bang.

Event source

An agent object of actor, receiving events from outside and translate to object events.

Sense

An agent object of observer. It generate the output to outside, including Sound system and Graphic system.

Discussion


Log in to post a comment.