next up previous contents
Next: Telling the LP to Up: The LogicalProcess class Previous: Constructing LogicalProcesses

Registering simulation objects with an LP

Each simulation object grouped on an LP needs a method called registerObject in that LP on its behalf. This tells the LP that it will be responsible for the object for the simulation. This is normally done in the application defined main routine. registerObject takes a pointer to a BasicTimeWarp (TimeWarp's base class) as an argument. Before an object is registered with an LP, the id must be initialized. If more objects try to register than are specified in the construction of the LP, an error will occur.



Philip A. Wilsey
1/26/1998