StartupEvent is a simple class for scheduling a starting event on the Scheduler. It does not support precedence.
The purpose of this class is for a user to create a StartupEvent and place a given handler on the sparta Scheduler to be called before simulation starts. This is required since a modeler cannot schedule any events during resource construction – the Scheduler's internal graphs have not been finalized.
- Note
- This class can only be created in pre-finalized state.
Example usage:
MyResource::MyResource(
TreeNode * node, MyResourceParams * params) :
{
}
void MyResource::myStartUpFunction()
{
my_unique_tick_event_.schedule();
}
#define CREATE_SPARTA_HANDLER(clname, meth)
StartupEvent is a simple class for scheduling a starting event on the Scheduler. It does not support ...
Node in a composite tree representing a sparta Tree item.
Definition at line 61 of file StartupEvent.hpp.