![]() |
MAK RTIspy API Documentation for HLA 1516
|
The DtRtiexecObserver is the base class for all observers of rtiexec events. More...
Inheritance diagram for DtRtiexecObserver:
Collaboration diagram for DtRtiexecObserver:Public Member Functions | |
| DtRtiexecObserver () | |
| Constructor. More... | |
| virtual | ~DtRtiexecObserver () |
| Destructor. More... | |
| virtual void | setMgr (DtRtiexecObserverMgr *mgr) |
| Sets the manager for this observer. More... | |
| virtual void | removeMgr () |
| Removes the manager for this observer. More... | |
| virtual void | startObservation () |
| Indicates that observation of the exec has begun. More... | |
| virtual void | addRtiMsgCallback (DtRtiMsgKind msgKind, DtRtiMsgCbMgr::DtCallbackFcn fcn, bool isMomCallback=false) |
| Register to receive an event whenever an RTI Msg of the specified kind is received. More... | |
| virtual void | removeRtiMsgCallback (DtRtiMsgKind msgKind, DtRtiMsgCbMgr::DtCallbackFcn fcn, bool isMomCallback=false) |
| Unregister to receive an event whenever an RTI Msg of the specified kind is received. More... | |
| virtual void | addTickCallback (DtTickCbFn fcn, DtTime interval) |
| Add a tick callback function to be called periodically at the given time interval. More... | |
| virtual void | removeTickCallback (DtTickCbFn fcn) |
| Remove tick callback. More... | |
| virtual void | addTickCallback (DtTickWithExecCbFn fcn, DtTime interval) |
| Add a tick callback function that takes a reference to a DtRtiExec to be called periodically at the given time interval. More... | |
| virtual void | removeTickCallback (DtTickWithExecCbFn fcn) |
| Remove tick callback that takes a reference to a DtRtiExec. More... | |
| virtual unsigned long | connectionId () const |
| Get the connection ID for this exec (threadsafe) More... | |
Event processing functions | |
Process rtiexec events | |
| virtual void | processFedExCreatedEvent (DtFedExec *exec) |
| Process a new federation execution created event. More... | |
| virtual void | processFedExDestroyedEvent (DtFedExec *exec) |
| Process a federation execution destroyed event. More... | |
| virtual void | processFederateJoinedEvent (DtFedExec *exec, DtFederate *federate) |
| Process a federate joined event. More... | |
| virtual void | processFederateResignedEvent (DtFedExec *exec, DtFederate *federate) |
| Process a federate resigned event. More... | |
| virtual void | processSyncPtRegisteredEvent (DtFedExec *exec, DtSyncPt *pt) |
| Process a new sync. point registered event. More... | |
| virtual void | processFederationSynchronizedEvent (DtFedExec *exec, DtSyncPt *pt) |
| Process a federation synchronized to an existing sync. point event. More... | |
| virtual void | processSyncPtAchievedEvent (DtFedExec *exec, DtFederate *fed, DtSyncPt *pt) |
| Process an existing sync. point achieved event. More... | |
| virtual void | processFederateDisconnectedEvent (DtFedExec *exec, DtFederate *fed) |
| Process a federate disconnect event. More... | |
| virtual void | processFederateReconnectSucceededEvent (DtFedExec *exec, DtFederate *fed) |
| Process a federate reconnect succeeded event. More... | |
| virtual void | processFederateReconnectFailedEvent (DtFedExec *exec, DtFederateHandle federateHandle) |
| Process a federate reconnect failed event. More... | |
| virtual void | processLogFileUpdatedEvent (const MAKRti::DtFilename &logFile) |
| Process a log file name update event. More... | |
Protected Member Functions | |
| virtual void | addCallbacks ()=0 |
| Adds all RTI message and tick callbacks. Called when a manager is set. More... | |
| virtual void | removeCallbacks ()=0 |
| Removes all RTI message and tick callbacks. More... | |
Protected Attributes | |
| DtRtiexecObserverMgr * | myMgr |
| Pointer to the observer manager. More... | |
Private Member Functions | |
| DtRtiexecObserver (const DtRtiexecObserver &orig) | |
| Copy constructor unimplemented. More... | |
| DtRtiexecObserver & | operator= (const DtRtiexecObserver &orig) |
| Assignment unimplemented. More... | |
The DtRtiexecObserver is the base class for all observers of rtiexec events.
| DtRtiexecObserver::DtRtiexecObserver | ( | ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy constructor unimplemented.
|
protectedpure virtual |
Adds all RTI message and tick callbacks. Called when a manager is set.
Implemented in DtRtiexecObserverForAssistant.
|
virtual |
Register to receive an event whenever an RTI Msg of the specified kind is received.
|
virtual |
Add a tick callback function to be called periodically at the given time interval.
|
virtual |
Add a tick callback function that takes a reference to a DtRtiExec to be called periodically at the given time interval.
|
inlinevirtual |
Get the connection ID for this exec (threadsafe)
References DtRtiexecObserverMgr::connectionId(), and myMgr.
|
private |
Assignment unimplemented.
|
inlinevirtual |
Process a federate disconnect event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a federate joined event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a federate reconnect failed event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a federate reconnect succeeded event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a federate resigned event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a federation synchronized to an existing sync. point event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a new federation execution created event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a federation execution destroyed event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a log file name update event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process an existing sync. point achieved event.
Reimplemented in DtRtiexecObserverForAssistant.
|
inlinevirtual |
Process a new sync. point registered event.
Reimplemented in DtRtiexecObserverForAssistant.
|
protectedpure virtual |
Removes all RTI message and tick callbacks.
Called when a manager is removed or the observer is destroyed.
Implemented in DtRtiexecObserverForAssistant.
|
virtual |
Removes the manager for this observer.
|
virtual |
Unregister to receive an event whenever an RTI Msg of the specified kind is received.
|
virtual |
Remove tick callback.
|
virtual |
Remove tick callback that takes a reference to a DtRtiExec.
|
virtual |
Sets the manager for this observer.
|
inlinevirtual |
Indicates that observation of the exec has begun.
Reimplemented in DtRtiexecObserverForAssistant.
|
protected |
Pointer to the observer manager.
Referenced by connectionId().