![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Collaboration diagram for DtRtiExec:Public Member Functions | |
| virtual | ~DtRtiExec () |
| Destructor. | |
| virtual void | shutdownForwarderIfCreated () |
| virtual void | checkVersion (const DtString &version) const |
| Called by the exec application to make sure that the RTI Version matches. | |
| virtual void | processCreate (const DtCreateMsg &msg) |
| Called when a createFedEx message is received. | |
| virtual void | processDestroy (const DtDestroyMsg &msg) |
| Called when a destroyFedEx message is received. | |
| virtual void | processListFederations (const DtListFederationsMsg &msg) |
| Called when a list federations message is received. | |
| virtual void | processJoin (const DtJoinMsg &msg) |
| Called when a Join message is received. | |
| virtual void | processDisconnect (const DtDisconnectMsg &msg) |
| Called when a disconnect message is received Actually used to capture broken connection. | |
| virtual void | processQueueFull (const DtQueueFullMsg &msg) |
| Called when a queue full message is received. | |
| virtual void | processReconnect (const DtReconnectMsg &msg) |
| Called when a reconnect message is received Actually used to recover from a broken connection. | |
| virtual DtFedExec * | createFedEx (DtConnectionMgr *connMgr, const std::vector< unsigned int > &crcs, const char *fedExName, std::string const &timeImplName, MAKRti::DtFomType fedType, const std::vector< DtString > &fedFileName, const DtString &momModuleName, int fedExHandle, DtRIDParameters *params, unsigned int momModuleCrc) |
| Returns a new fed ex instance, Override this function to replace the default federation execution object. | |
| DtConnectionMgr * | connectMgr () |
| Returns the connection manager Not virtual because referenced in both ctors and dtors. | |
| virtual bool | exists (const DtString &fedExName) |
| Returns true if the name fedex exists, false otherwise. | |
| virtual void | destroyFederationByName (const DtString &fullFedexName, bool sendDestroyResponse=true, bool forceDestroy=false) |
| Attempt to destroy a federation. | |
| int | processQuit () |
| User request to quit is processed. | |
| virtual void | listFederates () |
| Respond to a request to list federates through interactive input. | |
| virtual void | parseDeleteCommand (const DtString &command, unsigned int &handle, DtString &federationName) const |
| Respond to a request to delete a federate through interactive input. | |
| virtual int | deleteFederate (unsigned int handle, const DtString &federationName) |
| virtual void | processUpdateNotifyLevel (DtNotifyLevelType level) |
| Updates the rtiexec notify level. | |
| virtual void | exit () |
| Causes the rtiexec to exit. | |
| virtual void | enableLogging () |
| Enables logging. | |
| DtFedExec * | fedExec (const DtString &fedExName) |
| Search for a fed executive by name. | |
| const DtFedExec * | fedExec (const DtString &fedExName) const |
| const std::map< DtString, DtFedExec * > & | fedExecs () const |
| Returns a reference to the entire map of federations. | |
| const DtRIDParameters & | params () const |
| Returns a handle to the current RID Params. | |
| virtual void | run () |
| main loop | |
| virtual bool | tick (bool noCallbacks=false) |
| Work performed here for each cycle in main loop. | |
| virtual void | wait (DtTime intervalInSeconds) |
| Wait for input or until the the given interval expires. | |
| virtual void | addFedExCreatedCallback (DtFedExCbFn fn, void *usr) |
| Register a callback to be triggered whenever a new federation execution is created. | |
| virtual void | removeFedExCreatedCallback (DtFedExCbFn fn, void *usr) |
| virtual void | addFedExDestroyedCallback (DtFedExCbFn fn, void *usr) |
| Register a callback to be triggered whenever an existing federation execution is destroyed. | |
| virtual void | removeFedExDestroyedCallback (DtFedExCbFn fn, void *usr) |
| virtual void | addLogFileNameUpdatedCallback (DtLogFileNameCbFn fn, void *usr) |
| Register a callback to be triggered whenever the log file name for the rtiexec is updated. | |
| virtual void | removeLogFileNameUpdatedCallback (DtLogFileNameCbFn fn, void *usr) |
| virtual void | addTickCallback (DtTickCbFn fn, void *usr, DtTime interval) |
| Register a callback to be called during tick, but only at the given interval. | |
| virtual void | removeTickCallback (DtTickCbFn fn, void *usr) |
| virtual void | addTickCallback (DtTickWithExecCbFn fn, void *usr, DtTime interval) |
| Register a callback to be called during tick, but only at the given interval. | |
| virtual void | removeTickCallback (DtTickWithExecCbFn fn, void *usr) |
| virtual void | sendCreateResponseMsg (const unsigned long destinationID, DtCreateResponseFlag flag, MAKRti::DtString const &errorString) |
| Send RTI messages. | |
| virtual void | sendDestroyResponseMsg (const char *fedExName, DtDestroyResponseFlag flag) |
| virtual void | sendReportFederationsMsg (unsigned long destId, const std::vector< DtString > &federationNames, const std::vector< DtString > &timeImplNames) |
| virtual void | sendJoinResponseMsg (unsigned long destinationIDValue, unsigned short requestID, unsigned int crc, DtFederateHandle handle, const char *fedName, int fedExHandle, const char *fedExName, const DtString &momModule, const std::vector< DtString > &fedFileName, unsigned long flags, bool allowNetworkTesting, MAKRti::DtString const &errorString, DtJoinResponseMsg::errorCodes errorValue=DtJoinResponseMsg::DT_NO_ERROR) |
| virtual void | ridRequestCb (const DtRidTestRequestMsg &msg) |
| The RID request callback is processed by the RTI in response to a ridTestRequest. | |
Static Public Member Functions | |
| static DtRtiExec * | create (DtRIDParameters *p, DtBoost::shared_ptr< DtFilePrinter > logPrinter, bool autoExit=false, const DtRtiConnectionInfoDataPair &connInfo=DtRtiConnectionInfoDataPair()) |
| Creates an instance of a DtRtiExec;. | |
| static void | setCreatorFunction (DtRtiExecCreator fn) |
| Call this function to set an alternate creator function With this function, users can replace this DtRtiExec with their own derived class. | |
| static void | processRtiExecHandshakeMsg (const DtRtiExecHandshakeMsg &msg, void *usr) |
| Handshake message callback. | |
| static void | processCreate (const DtCreateMsg &msg, void *usr) |
| Callback on the createFedEx message. | |
| static void | processDestroy (const DtDestroyMsg &msg, void *usr) |
| Callback on the destroyFedEx message. | |
| static void | processListFederations (const DtListFederationsMsg &msg, void *usr) |
| Callback on the list federations message. | |
| static void | processJoin (const DtJoinMsg &msg, void *usr) |
| Callback on the Join message. | |
| static void | processDisconnect (const DtDisconnectMsg &msg, void *usr) |
| Callback on the Disconnect message. | |
| static void | processQueueFull (const DtQueueFullMsg &msg, void *usr) |
| Callback on the Queue Full message. | |
| static void | processReconnect (const DtReconnectMsg &msg, void *usr) |
| Callback on the Reconnect message. | |
| static void | ridRequestCb (const DtRidTestRequestMsg &msg, void *usr) |
| RID File Received callback. | |
| static bool | shutdownSignalCaught () |
| static void | caughtShutdownSignal () |
Protected Types | |
| enum | DtStartRtiForwarderResult { ForwarderSuccessfullyStarted, RetryStartingForwarder, ForwarderStartupFailed } |
| typedef std::map< unsigned long, DtTime > | DtConnIdToTimeMap |
Protected Member Functions | |
| DtRtiExec (DtRIDParameters *p, DtBoost::shared_ptr< DtFilePrinter > logPrinter, bool autoExit, const DtRtiConnectionInfoDataPair &connInfo) | |
| Constructor. | |
| void | cleanupConstructorException () |
| Clean up before constructor throws an exception Not virtual since it is called by constructor. | |
| virtual void | rtiExecToForwarderHandshake () |
| Inform RTI Forwarder that Exec is connected, and verify that this is the ONLY Exec connected. | |
| virtual void | sendRtiExecHandshakeMsg (DtHandle destId, DtRtiExecHandshakeMsg::DtHandshakeStatus status) |
| Send RTI Forwarder connection response msg. | |
| virtual void | processRtiExecHandshakeMsg (const DtRtiExecHandshakeMsg &msg) |
| Process the RTI Forwarder's Handshake response. | |
| virtual void | performMulticastDiscovery (bool reliableTransportDisabled) |
| Attempt to discover either the RTI Forwarder or other rtiexecs. | |
| virtual void | removeDroppedFederateConnections () |
| Force resign a federate. | |
| virtual DtStartRtiForwarderResult | startRtiForwarder (const DtRIDParameters *params) |
| Starts forwarder if the exec is configured to do so. | |
Static Protected Attributes | |
| static bool | theShutdownSignalCaught |
| static DtRtiExecCreator | theCreator |
|
protected |
|
protected |
|
protected |
Constructor.
|
virtual |
Destructor.
|
virtual |
Register a callback to be triggered whenever a new federation execution is created.
|
virtual |
Register a callback to be triggered whenever an existing federation execution is destroyed.
|
virtual |
Register a callback to be triggered whenever the log file name for the rtiexec is updated.
|
virtual |
Register a callback to be called during tick, but only at the given interval.
|
virtual |
Register a callback to be called during tick, but only at the given interval.
For callbacks which will be passed a reference to the calling DtRtiExec.
|
static |
|
virtual |
Called by the exec application to make sure that the RTI Version matches.
|
protected |
Clean up before constructor throws an exception Not virtual since it is called by constructor.
|
inline |
Returns the connection manager Not virtual because referenced in both ctors and dtors.
References myConnectionMgr.
|
static |
Creates an instance of a DtRtiExec;.
|
virtual |
Returns a new fed ex instance, Override this function to replace the default federation execution object.
|
virtual |
|
virtual |
Attempt to destroy a federation.
By default, if destruction fails, a destroy response is sent. If this is being called in response to a command at the rtiexec GUI, then no response needs to be sent. If forceDestroy is set, federation is destroyed regardless of whether it has joined federates.
|
virtual |
Enables logging.
|
virtual |
Returns true if the name fedex exists, false otherwise.
|
virtual |
Causes the rtiexec to exit.
| DtFedExec* DtRtiExec::fedExec | ( | const DtString & | fedExName | ) |
Search for a fed executive by name.
Returns NULL if none are found.
| const DtFedExec* DtRtiExec::fedExec | ( | const DtString & | fedExName | ) | const |
| const std::map<DtString, DtFedExec*>& DtRtiExec::fedExecs | ( | ) | const |
Returns a reference to the entire map of federations.
|
virtual |
Respond to a request to list federates through interactive input.
|
inline |
Returns a handle to the current RID Params.
References myParams.
|
virtual |
Respond to a request to delete a federate through interactive input.
|
protectedvirtual |
Attempt to discover either the RTI Forwarder or other rtiexecs.
|
virtual |
Called when a createFedEx message is received.
|
static |
Callback on the createFedEx message.
|
virtual |
Called when a destroyFedEx message is received.
|
static |
Callback on the destroyFedEx message.
|
virtual |
Called when a disconnect message is received Actually used to capture broken connection.
|
static |
Callback on the Disconnect message.
|
virtual |
Called when a Join message is received.
|
static |
Callback on the Join message.
|
virtual |
Called when a list federations message is received.
|
static |
Callback on the list federations message.
|
virtual |
Called when a queue full message is received.
|
static |
Callback on the Queue Full message.
| int DtRtiExec::processQuit | ( | ) |
User request to quit is processed.
If there are no federations, quit is granted immediately. Otherwise, a pending quit status is set to true and the user is prompted to confirm the quit request. Return -1 if quit should be granted immediately.
|
virtual |
Called when a reconnect message is received Actually used to recover from a broken connection.
|
static |
Callback on the Reconnect message.
|
static |
Handshake message callback.
|
protectedvirtual |
Process the RTI Forwarder's Handshake response.
|
virtual |
Updates the rtiexec notify level.
|
protectedvirtual |
Force resign a federate.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
The RID request callback is processed by the RTI in response to a ridTestRequest.
It fills up a ridResponse with the number of RID parameters that it wants consistent and sends the response back to the federate that requested it.
|
static |
RID File Received callback.
|
protectedvirtual |
Inform RTI Forwarder that Exec is connected, and verify that this is the ONLY Exec connected.
|
virtual |
main loop
|
virtual |
Send RTI messages.
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Send RTI Forwarder connection response msg.
|
static |
Call this function to set an alternate creator function With this function, users can replace this DtRtiExec with their own derived class.
|
virtual |
|
static |
|
protectedvirtual |
Starts forwarder if the exec is configured to do so.
return zero on error.
|
virtual |
Work performed here for each cycle in main loop.
Primarily processing messages and ticking each federation execution. Returns boolean: tick processed a message? If noCallbacks is true, no tick callbacks will be called
|
virtual |
Wait for input or until the the given interval expires.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by connectMgr().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Map of dropped Federate to timestamp of drop.
|
protected |
|
protected |
|
protected |
Flag indicating that an exit command was received.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
List of log file name update callbacks.
|
protected |
Printer which prints output to a log file.
|
protected |
|
protected |
|
protected |
Referenced by params().
|
protected |
|
protected |
|
protected |
|
protected |
List of tick callbacks.
|
protected |
List of tick callbacks with DtRtiExec reference.
|
staticprotected |
|
staticprotected |