![]() |
VR-Forces 4.3 Class Documentation
|
The scenario event manager will keep track of all scenario event objects and their state. More...
Classes | |
| struct | ScenarioEventInformation |
| Information that is really only needed to keep track of status of scenario events. More... | |
Public Member Functions | |
| DtScenarioEventManager (DtSimManager *) | |
| CTOR. | |
| virtual | ~DtScenarioEventManager () |
| DTOR. | |
| virtual DtSimManager * | simManager () const |
| virtual void | processScenarioEventMessageCallback (DtSimMessage *) |
| virtual void | startScenarioEvent (const DtString &, bool sendMessageIfNotLocal=true) |
| Start the scenario event. | |
| virtual DtString | eventIdFromEventName (const DtString &) const |
| Returns the event id given the event name. | |
| virtual void | stopScenarioEvent (const DtString &, bool sendMessageIfNotLocal=true) |
| Stops the scenario event. | |
| virtual bool | scenarioEventInProgress (const DtString &) const |
| Returns true if scenario event is currently running. | |
| virtual bool | scenarioEventConcluded (const DtString &) const |
| Returns true if the scenario event has been concluded. | |
| virtual DtRwScenarioEvent | scenarioEvent (const DtString &) |
| Returns the scenario event for the current unique id. | |
| virtual DtRwScenarioEvent | scenarioEvent (const DtVrfObject *) |
| Returns the scenario event for the supplied object (if exists) | |
| virtual double | simulationStartTime (const DtString &) const |
| Returns the scenario time that the event started. | |
| virtual double | simulationEndTime (const DtString &) const |
| Returns the scenario time that the event ended. | |
| virtual void | processScenarioEventAdded (DtVrfObject *) |
| virtual void | processScenarioEventRemoved (DtVrfObject *) |
| virtual void | setOrdinalOrder (const DtString &uniqueId, int ordinal) |
| Sets the ordinal order for the given event if local. Does not change any other event ordinals. | |
| virtual void | resetScenarioEvent (const DtString &uniqueId, bool sendMessageIfNotLocal=true) |
| If local, resets the scenario event to be ready to start again. | |
| virtual void | setTriggerStatus (const DtString &uniqueId, int) |
| Sets the trigger status of the event if not already at that trigger status. | |
| virtual void | addScenarioEventStartedCallback (DtScenarioEventManagerCallbackFcn fcn, void *usr) |
| Callback that is invoked whenever a scenario event is started. | |
| virtual void | removeScenarioEventStartedCallback (DtScenarioEventManagerCallbackFcn fcn, void *usr) |
| Callback that is invoked whenever a scenario event is started. | |
| virtual void | addScenarioEventStoppedCallback (DtScenarioEventManagerCallbackFcn fcn, void *usr) |
| Callback that is invoked whenever a scenario event is stopped. | |
| virtual void | removeScenarioEventStoppedCallback (DtScenarioEventManagerCallbackFcn fcn, void *usr) |
| Callback that is invoked whenever a scenario event is stopped. | |
Static Public Member Functions | |
| static void | scenarioEventMessageCallback (DtSimMessage *, void *usr) |
| Processes scenario event operations. | |
| static void | scenarioEventAdded (DtVrfObject *, void *) |
| Called when a scenario event is added via the object manager. | |
| static void | scenarioEventRemoved (DtVrfObject *, void *) |
| Called when a scenario event is removed from the object manager. | |
Protected Types | |
| typedef DtCallbackList< const DtString & > | ScenarioEventCallbacks |
| typedef std::map< DtString, ScenarioEventInformation > | ScenarioEvents |
| typedef std::map< DtString, DtString > | EntityIdentifierMap |
Protected Member Functions | |
| virtual void | startUpEvent (const DtString &uniqueId) |
| Internally starts up the event and sends out started message as well as invoking started callbacks. | |
| virtual void | stopEvent (const DtString &uniqueId) |
| Internally stops event and sends out stopped message as well as invoking stopped callbacks. | |
Private Member Functions | |
| DtScenarioEventManager (const DtScenarioEventManager &orig) | |
| copy constructor | |
| DtScenarioEventManager & | operator= (const DtScenarioEventManager &orig) |
| assignment operator | |
The scenario event manager will keep track of all scenario event objects and their state.
All calls to start/stop events must be done through this class. If not done through this class then event triggers will not fire
|
protected |
|
protected |
|
protected |
| DtScenarioEventManager::DtScenarioEventManager | ( | DtSimManager * | ) |
CTOR.
|
virtual |
DTOR.
|
private |
copy constructor
|
private |
assignment operator
|
virtual |
|
virtual |
Callback that is invoked whenever a scenario event is started.
|
virtual |
Callback that is invoked whenever a scenario event is started.
|
virtual |
Callback that is invoked whenever a scenario event is stopped.
|
virtual |
Callback that is invoked whenever a scenario event is stopped.
|
static |
Processes scenario event operations.
|
virtual |
|
virtual |
Start the scenario event.
Will send a message to start if the event is not local or start it and send out started message if is. Supply scenario unique id
Returns the event id given the event name.
If there are multiple events with the same name the first event encountered is returned
|
virtual |
Stops the scenario event.
Will send a message to stop if the event is not local or stop it and send out stopped message if is. Supply scenario unique id
Returns true if scenario event is currently running.
Returns true if the scenario event has been concluded.
|
virtual |
Returns the scenario event for the current unique id.
|
virtual |
Returns the scenario event for the supplied object (if exists)
|
virtual |
Returns the scenario time that the event started.
|
virtual |
Returns the scenario time that the event ended.
|
static |
Called when a scenario event is added via the object manager.
|
virtual |
|
static |
Called when a scenario event is removed from the object manager.
|
virtual |
|
virtual |
Sets the ordinal order for the given event if local. Does not change any other event ordinals.
|
virtual |
If local, resets the scenario event to be ready to start again.
Sets the trigger status of the event if not already at that trigger status.
|
protectedvirtual |
Internally starts up the event and sends out started message as well as invoking started callbacks.
|
protectedvirtual |
Internally stops event and sends out stopped message as well as invoking stopped callbacks.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |