![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Instances of DtFederationShadow implement a central server responsible for keeping track of the ownership status of the object instances owned by the federate or managed by its LRC. More...
Collaboration diagram for DtFederationShadow:Public Member Functions | |
| virtual | ~DtFederationShadow () |
| Destructor. More... | |
| virtual DtHandle | federationHandle () const |
| Get the federation handle. More... | |
| virtual const MAKRti::DtString & | name () const |
| Get the federation name. More... | |
| DtConnectionMgr * | connectMgr () |
| Return the connection manager. More... | |
| virtual DtFomModuleManager * | fomManager () |
| Get the FOM Module Manager. More... | |
| const DtRIDParameters & | params () const |
| Return the RID parameters. More... | |
| virtual void | checkVersion (const MAKRti::DtString &version) const |
| Called by the ownership manager application to make sure that the RTI Version matches. More... | |
| virtual void | processUpdateNotifyLevel (DtNotifyLevelType level) |
| Updates the notify level. More... | |
| virtual void | exit () |
| Causes the ownership manager to exit. More... | |
| int | processQuit () |
| User request to quit is processed. More... | |
| virtual DtResignAction | resignAction () const |
| Get the federation resign action. More... | |
| virtual void | run () |
| main loop More... | |
Static Public Member Functions | |
| static DtFederationShadow * | create (DtHandle federationHandle, const MAKRti::DtString &federationName, DtRIDParameters *p, std::shared_ptr< DtFilePrinter > logPrinter) |
| Creates an instance of a DtFederationShadow;. More... | |
| static void | setCreatorFunction (DtFederationShadowCreator fn) |
| Call this function to set an alternate creator function With this function, users can replace this DtFederationShadow with their own derived class. More... | |
| static bool | shutdownSignalCaught () |
| static void | caughtShutdownSignal () |
| static const MAKRti::DtString & | shutDownStatement () |
| String indicating federation shadow is shutting down. More... | |
| static const MAKRti::DtString & | readyStatement () |
| String indicating success to create the federation shadow. More... | |
Protected Types | |
| typedef std::map< DtHandle, DtFederateShadow * > | FederateShadowByHandleMap |
Protected Member Functions | |
| DtFederationShadow (DtHandle federationHandle, const MAKRti::DtString &federationName, DtRIDParameters *p, std::shared_ptr< DtFilePrinter > logPrinter) | |
| Constructor. More... | |
| virtual DtFederateShadow * | federateShadow (DtHandle federateHandle) |
| Constructor - must use create method to construct an instance. More... | |
| virtual void | cleanupConstructorException () |
| Clean up before constructor throws an exception Not virtual since it is called by constructor. More... | |
| virtual void | wait (DtTime intervalInSeconds) |
| Wait for input or until the the given interval expires. More... | |
| virtual bool | tick (bool noCallbacks=false) |
| Work performed here for each cycle in main loop. More... | |
| virtual void | processJoinFoms (const DtJoinResponseMsg &msg) |
| Initialize the FOM. More... | |
| virtual void | sendFederationShadowHandshakeMsg (DtHandle destinationId, DtFederationShadowHandshakeMsg::HandshakeStatus status) |
| Send RTI Forwarder connection response msg. More... | |
| virtual void | federationShadowToForwarderHandshake () |
| Inform RTI Forwarder that federation shadow is connected. More... | |
| DtFederateShadow * | federate (DtFederateHandle federateHandle) |
| Return the federate with the given handle; null if does not exist. More... | |
Protected Attributes | |
| DtRIDParameters * | myParams |
| std::shared_ptr< DtFilePrinter > | myLogPrinter |
| Printer which prints output to a log file. More... | |
| DtConnectionMgr * | myConnectionMgr |
| DtFomModuleManager * | myFomManager |
| The FOM Module Manager. More... | |
| DtResignAction | myResignAction |
| Automatic resign action for federates that crash or forced to resign. More... | |
| DtSynchronousFileDistributor * | myFomDistributor |
| The Fed File Distributor of the joined federation execution. More... | |
| DtClock | myClock |
| DtHandle | myFederationHandle |
| MAKRti::DtString | myFederationName |
| DtFederationShadowHandshakeMsg::HandshakeStatus | myHandshakeStatus |
| FederateShadowByHandleMap | myFederatesByConnection |
| List of federates. More... | |
| FederateShadowByHandleMap | myFederatesByHandle |
| bool | myExitCommanded |
| Flag indicating that an exit command was received. More... | |
| bool | myPendingQuit |
Static Protected Attributes | |
| static DtFederationShadowCreator | theCreator |
| static bool | theShutdownSignalCaught |
| static const MAKRti::DtString | theShutDownStatement |
| static const MAKRti::DtString | theReadyStatement |
| virtual void | processFederationShadowHandshakeMsg (const DtFederationShadowHandshakeMsg &msg) |
| Process Messages. More... | |
| virtual void | processFederationShadowShutdownMsg (const DtFederationShadowShutdownMsg &msg) |
| Process Messages. More... | |
| virtual void | processCreateResponseMsg (const DtCreateResponseMsg &msg) |
| Process Messages. More... | |
| virtual void | processJoinMsg (const DtJoinMsg &msg) |
| Process Messages. More... | |
| virtual void | processJoinResponseMsg (const DtJoinResponseMsg &msg) |
| Process Messages. More... | |
| virtual void | processJoinConfirm (const DtJoinConfirmMsg &msg) |
| Process Messages. More... | |
| virtual void | processResign (const DtResignMsg &msg) |
| Process Messages. More... | |
| virtual void | processResignDirective (const DtResignDirectiveMsg &msg) |
| Process Messages. More... | |
| virtual void | processRegister (const DtRegObjMsg &msg) |
| Process Messages. More... | |
| virtual void | processMultiRegister (const DtMultiRegObjMsg &msg) |
| Process Messages. More... | |
| virtual void | processAssocPubReg (const DtAssocPubRegMsg &msg) |
| Process Messages. More... | |
| virtual void | processDeleteRo (const DtDeleteRoMsg &msg) |
| Process Messages. More... | |
| virtual void | processDeleteTso (const DtDeleteTsoMsg &msg) |
| Process Messages. More... | |
| virtual void | processOwnership (const DtOwnershipMsg &msg) |
| Process Messages. More... | |
| static void | processFederationShadowHandshakeMsg (const DtFederationShadowHandshakeMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processFederationShadowShutdownMsg (const DtFederationShadowShutdownMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processCreateResponseMsg (const DtCreateResponseMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processJoinMsg (const DtJoinMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processJoinResponseMsg (const DtJoinResponseMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processJoinConfirm (const DtJoinConfirmMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processResign (const DtResignMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processResignDirective (const DtResignDirectiveMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processRegister (const DtRegObjMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processMultiRegister (const DtMultiRegObjMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processAssocPubReg (const DtAssocPubRegMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processDeleteRo (const DtDeleteRoMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processDeleteTso (const DtDeleteTsoMsg &msg, void *usr) |
| Process Messages. More... | |
| static void | processOwnership (const DtOwnershipMsg &msg, void *usr) |
| Process Messages. More... | |
Instances of DtFederationShadow implement a central server responsible for keeping track of the ownership status of the object instances owned by the federate or managed by its LRC.
In the case where a federate is lost or forced to resign, the federation shadow will act on behalf of the federate to carry out the federation's automatic resign directive (e.g., delete objects and release attributes).
|
protected |
|
protected |
Constructor.
|
virtual |
Destructor.
|
static |
|
virtual |
Called by the ownership manager application to make sure that the RTI Version matches.
|
protectedvirtual |
Clean up before constructor throws an exception Not virtual since it is called by constructor.
|
inline |
Return the connection manager.
References myConnectionMgr.
|
static |
Creates an instance of a DtFederationShadow;.
|
virtual |
Causes the ownership manager to exit.
|
inlineprotected |
Return the federate with the given handle; null if does not exist.
References myFederatesByHandle.
|
protectedvirtual |
Constructor - must use create method to construct an instance.
|
virtual |
Get the federation handle.
|
protectedvirtual |
Inform RTI Forwarder that federation shadow is connected.
|
virtual |
Get the FOM Module Manager.
|
virtual |
Get the federation name.
|
inline |
Return the RID parameters.
References myParams.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Initialize the FOM.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
| int DtFederationShadow::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.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
protectedvirtual |
Process Messages.
|
staticprotected |
Process Messages.
|
virtual |
Updates the notify level.
|
static |
String indicating success to create the federation shadow.
|
virtual |
Get the federation resign action.
|
virtual |
main loop
|
protectedvirtual |
Send RTI Forwarder connection response msg.
|
static |
Call this function to set an alternate creator function With this function, users can replace this DtFederationShadow with their own derived class.
|
static |
|
static |
String indicating federation shadow is shutting down.
|
protectedvirtual |
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
|
protectedvirtual |
Wait for input or until the the given interval expires.
|
protected |
|
protected |
Referenced by connectMgr().
|
protected |
Flag indicating that an exit command was received.
|
protected |
List of federates.
|
protected |
Referenced by federate().
|
protected |
|
protected |
|
protected |
The Fed File Distributor of the joined federation execution.
|
protected |
The FOM Module Manager.
|
protected |
|
protected |
Printer which prints output to a log file.
|
protected |
Referenced by params().
|
protected |
|
protected |
Automatic resign action for federates that crash or forced to resign.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |