![]() |
MAK Data Logger API Documentation for HLA
|
Replacement of DtExerciseConnection in order adjust time in override of RTI send update/interaction Time is adjusted to accommodate for jumps before sending update/interaction to RTI. More...
Inheritance diagram for DtLgrHlaServerExerciseConnection:
Collaboration diagram for DtLgrHlaServerExerciseConnection:Public Member Functions | |
| DtLgrHlaServerExerciseConnection (const DtExerciseConnInitializer &init, InitializationStatus *status=0) | |
| This constructor takes a DtExerciseConnInitializer and creates an exercise connection based on the parameters set within the initializer. | |
| DtLgrHlaServerExerciseConnection (const char *execName, const char *federateType, DtFomMapper *mapper=DtRprFomMapper::create(0), const char *fedFileName=0, InitializationStatus *status=0) | |
| Constructor. | |
| DtLgrHlaServerExerciseConnection (const char *execName, const char *federateType, const char *dsoName, const char *fedFileName=0, void *fomMapInitData=0, InitializationStatus *status=0) | |
| Constructor. | |
| virtual | ~DtLgrHlaServerExerciseConnection () |
| destructor | |
| virtual void | setSimManager (MAKLogger::DtLgrHlaSimulationManager *simMgrPtr) |
| Set the Logger sim manager used to adjust time. | |
| virtual void | send (const DtStateMsg &msg) |
| Send a state message to the network. | |
Public Member Functions inherited from MAKTrafficClientServerExConn::DtServerExerciseConnection | |
| DtServerExerciseConnection (const DtExerciseConnInitializer &init, InitializationStatus *status=0) | |
| This constructor takes a DtExerciseConnInitializer and creates an exercise connection based on the parameters set within the initializer. | |
| DtServerExerciseConnection (const char *execName, const char *federateType, DtFomMapper *mapper=DtRprFomMapper::create(0), const char *fedFileName=0, InitializationStatus *status=0) | |
| Constructor. | |
| DtServerExerciseConnection (const char *execName, const char *federateType, const char *dsoName, const char *fedFileName=0, void *fomMapInitData=0, InitializationStatus *status=0) | |
| Constructor. | |
| virtual | ~DtServerExerciseConnection () |
| Destructor. | |
| virtual const DtString & | clientExecName () const |
| Return the execution name to be used by clients. | |
| virtual DtServerRtiAmbassador * | serverRtiAmb () |
| Access to the RTI ambassador as a DtServerRtiAmbassador. | |
| virtual const DtString & | fedFileName () const |
| Get the FED file used by the exercise connection. | |
| virtual const std::wstring & | mimModule () const |
| Get the MIM Module given to the exercise connection. | |
| virtual const DtString & | mimModuleAscii () const |
| Get the MIM Module given to the exercise connection. | |
| virtual const std::vector < std::wstring > & | fomModules () const |
| Get the FOM Modules given to the exercise connection. | |
| virtual const std::vector < DtString > & | fomModulesAscii () const |
| Get the FOM Modules given to the exercise connection. | |
| virtual void | getFomModules (std::vector< std::wstring > &allFomModules) const |
| Get the FOM Modules used by the exercise connection including main FOM Module and MIM if specified. | |
| virtual void | getFomModules (std::vector< DtString > &allFomModules) const |
| Get the FOM Modules used by the exercise connection including main FOM Module and MIM if specified. | |
| virtual DtServerFederateAmbassador * | serverFederateAmbassador () |
| Access to the federate ambassador as a DtServerFederateAmbassador. | |
| virtual void | setReceiveSelfReflect (unsigned long clientID, bool enableReceiveSelfReflect) |
| Enable/disable the reception of self reflects so that the given client will receive self reflects from other clients (enabled by default) | |
| virtual bool | receiveSelfReflectEnabled (unsigned long clientID) |
| Return receive self reflect status for given client - true if client exists and enabled. | |
| virtual void | prepareToResign () |
| Set flag to indicate server should prepare to resign. | |
| virtual void | readyToResign (DtClientExerciseConnection *client) |
| Client indicates that its ready to resign. | |
| virtual void | rejoined (DtClientExerciseConnection *client) |
| Client indicates that its rejoined. | |
| virtual void | forceResign () |
| Client forces resign without waiting for other clients. | |
| virtual bool | doResign () const |
| Return true if instructed to do resign. | |
| virtual bool | resignReady () const |
| Return true when resign all clients indicate readiness. | |
| virtual bool | resignComplete () const |
| Return true when resign has completed. | |
| virtual bool | resignOK () const |
| Indicates whether the resign completed successfully or not (e.g., exception thrown) | |
| virtual bool | isJoined () const |
| Indicates if server is joined or not. | |
| virtual bool | resign () |
| Process resign from federation Return boolean: operation successful? | |
| virtual bool | rejoin (DtString const &execName) |
| Process a rejoin to federation Return boolean: operation successful? | |
| virtual bool | clientsRejoined () const |
| Indicates whether all clients have completed rejoin. | |
| virtual void | connect (DtClientExerciseConnection *client) |
| Connect the client to this server. | |
| virtual void | disconnect (DtClientExerciseConnection *client) |
| Disconnect the client from this server. | |
| virtual DtClientConnectionMap & | clientConnections () |
| Get the client connections. | |
| virtual unsigned int | nextConnectionID () |
| Get the next connection ID ID of 0 is invalid - no open slots. | |
| virtual void | addConnectionAddedCallback (DtAddConnectionCb cbFunction, void *usr) |
| Add callback for when client connections are added. | |
| virtual void | removeConnectionAddedCallback (DtAddConnectionCb cbFunction, void *usr) |
| Remove callback for when client connections are added. | |
| virtual void | addConnectionRemovedCallback (DtRemoveConnectionCb cbFunction, void *usr) |
| Add callback for when client connections are removed. | |
| virtual void | removeConnectionRemovedCallback (DtRemoveConnectionCb cbFunction, void *usr) |
| Remove callback for when client connections are removed. | |
| virtual int | invokeCallbacks (DtClientExerciseConnection *client, double maximum=-1, double minimum=0) |
| Invoke the service calls queued for this client Continue calling while the callbacks are executed and elapsed time does not exceed maximum. | |
| virtual void | getLateJoinDiscoveries (DtClientExerciseConnection *lateJoiner) |
| Generate discoveries on the given late joiner for any objects already registered by existing clients. | |
| virtual bool | lockServiceCall () |
| Get mutually exclusive access to RTI Ambassador for callback processing. | |
| virtual void | unlockServiceCall () |
| Release mutually exclusive access to RTI Ambassador from callback processing. | |
| virtual bool | serviceCallLocked () |
| Query if RTI Ambassador is locked while processing callbacks. | |
| virtual bool | enterServiceCall () |
| Get mutually exclusive access to RTI Ambassador for service calls. | |
| virtual void | exitServiceCall () |
| Release mutually exclusive access to RTI Ambassador from service calls. | |
| virtual bool | inServiceCall () |
| Query if RTI Ambassador is locked while processing service calls. | |
Static Public Member Functions | |
| static DtServerExerciseConnection * | create (const DtExerciseConnInitializer &init, InitializationStatus *status=0) |
| Base class creators. | |
| static DtServerExerciseConnection * | create (const char *execName, const char *federateType, DtFomMapper *mapper=DtRprFomMapper::create(0), const char *fedFileName=0, InitializationStatus *status=0) |
| Base class creators. | |
| static DtServerExerciseConnection * | create (const char *execName, const char *federateType, const char *dsoName, const char *fedFileName=0, void *fomMapInitData=0, InitializationStatus *status=0) |
| Base class creators. | |
Static Public Member Functions inherited from MAKTrafficClientServerExConn::DtServerExerciseConnection | |
| static DtServerExerciseConnection * | setInstance (DtServerExerciseConnection *serverExConn, bool replace=false) |
| Set the server exercise connection. | |
| static DtServerExerciseConnection * | getInstance (bool blocking=true) |
| Return the created server connection. | |
Protected Member Functions | |
| virtual void | rtiSend (DtInteraction &msg, RTI::InteractionClassHandle handle, const RTI::RegionHandleSet *region) |
| Perform the specific RTI send call. | |
Protected Member Functions inherited from MAKTrafficClientServerExConn::DtServerExerciseConnection | |
| void | init (InitializationStatus *status=0) |
| Perform some generic initialization during construction. | |
| virtual bool | reSubscribeAndPublish () |
| Walk through FOM and resubscribe and republish to each class. | |
| virtual void | removeAllObjects () |
| Remove all objects. | |
Protected Attributes | |
| MAKLogger::DtLgrHlaSimulationManager * | mySimMgr |
Protected Attributes inherited from MAKTrafficClientServerExConn::DtServerExerciseConnection | |
| DtClientConnectionMap | myClientConnections |
| The client connections. | |
| unsigned int | myNextConnectionID |
| Next Connection ID. | |
| DtAddConnectionCbMap | myAddConnCb |
| Callbacks for when a client connection is added. | |
| DtRemoveConnectionCbMap | myRemoveConnCb |
| Callbacks for when a client connection is added. | |
| std::set< unsigned int > | myPendingReadyToResign |
| Clients that need to indicate readiness to resign. | |
| std::set< unsigned int > | myPendingRejoined |
| Clients that need to indicate rejoin completed. | |
| bool | myDoResign |
| Indicates resign start/finish. | |
| DtMutex * | myCallbackMutex |
| Mutex to synchronize access to RTI and Federate Ambassadors. | |
| unsigned int | myLockService |
| Server is processing callbacks. | |
| unsigned int | myInService |
| Client or server is processing a service call. | |
| DtServerFederateAmbassador * | myServerFederateAmbassador |
| Access to the Federate Ambassador as a DtServerFederateAmbassador. | |
| DtServerRtiAmbassador * | myServerRtiAmbassador |
| Access to the RTI Ambassador as a DtServerRtiAmbassador. | |
| bool | myResignOK |
| Indicates whether the resign completed successfully or not (e.g., exception thrown) | |
| bool | myIsJoined |
| Indicates that server is joined to federation. | |
| std::vector< DtString > | myFomModulesAscii |
| Keep a local copy of fom modules to support creation of client exercise connections. | |
| DtString | myMimFomModuleAscii |
| Keep a local copy of MIM module to support creation of client exercise connections. | |
| std::vector< std::wstring > | myFomModules |
| std::wstring | myMimFomModule |
Private Member Functions | |
| DtLgrHlaServerExerciseConnection (const DtLgrHlaServerExerciseConnection &other) | |
| Copy Constructor not implemented – Copy Not Allowed. | |
| DtLgrHlaServerExerciseConnection & | operator= (const DtLgrHlaServerExerciseConnection &other) |
| Assignment Operator Not implemented – Assignment Not Allowed. | |
Additional Inherited Members | |
Static Public Attributes inherited from MAKTrafficClientServerExConn::DtServerExerciseConnection | |
| static bool | theCreateServerConnectionFailed |
| Indicates failure to create the server connection. | |
Static Protected Attributes inherited from MAKTrafficClientServerExConn::DtServerExerciseConnection | |
| static DtServerExerciseConnection * | theServerConnection |
Replacement of DtExerciseConnection in order adjust time in override of RTI send update/interaction Time is adjusted to accommodate for jumps before sending update/interaction to RTI.
| DtLgrHlaServerExerciseConnection::DtLgrHlaServerExerciseConnection | ( | const DtExerciseConnInitializer & | init, |
| InitializationStatus * | status = 0 |
||
| ) |
This constructor takes a DtExerciseConnInitializer and creates an exercise connection based on the parameters set within the initializer.
| DtLgrHlaServerExerciseConnection::DtLgrHlaServerExerciseConnection | ( | const char * | execName, |
| const char * | federateType, | ||
| DtFomMapper * | mapper = DtRprFomMapper::create(0), |
||
| const char * | fedFileName = 0, |
||
| InitializationStatus * | status = 0 |
||
| ) |
Constructor.
Mapper is a pointer to a new'ed FOM Mapper to use. The FOM Mapper's init() function will be called by the DtLgrHlaServerExerciseConnection constructor. The default value for mapper is a new'ed DtRprFomMapper. The mapper is deleted by DtLgrHlaServerExerciseConnection destructor. If mapper is NULL, we create one using the creator function passed to setFomMapperCreator (default is an empty FOM Mapper). The FOM Mapper's init function is called after the RTI is initialized. If fedFileName is NULL, <execName>.fed is used. Use status when you want to know whether the exercise connection has successfully initialized itself (see note above under "Error enumerations").
| DtLgrHlaServerExerciseConnection::DtLgrHlaServerExerciseConnection | ( | const char * | execName, |
| const char * | federateType, | ||
| const char * | dsoName, | ||
| const char * | fedFileName = 0, |
||
| void * | fomMapInitData = 0, |
||
| InitializationStatus * | status = 0 |
||
| ) |
Constructor.
Similar to above, but rather than passing a FOM Mapper, pass the name of a shared library (DSO or DLL) that contains a FOM Mapper creation function called DtCreateFomMapper (and a FOM Mapper destruction function called DtDeleteFomMapper. fomMapInitData is a pointer to arbitrary data that you wish to have passed to the FOM Mapper creation function in your FOM Mapper shared library.
|
virtual |
destructor
|
private |
Copy Constructor not implemented – Copy Not Allowed.
|
static |
Base class creators.
Reimplemented from MAKTrafficClientServerExConn::DtServerExerciseConnection.
|
static |
Base class creators.
Reimplemented from MAKTrafficClientServerExConn::DtServerExerciseConnection.
|
static |
Base class creators.
Reimplemented from MAKTrafficClientServerExConn::DtServerExerciseConnection.
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
protectedvirtual |
Perform the specific RTI send call.
If using Time Management this may throw DtVrlInvalidTimeException if the time set was below LBTS.
|
virtual |
Send a state message to the network.
If using Time Management this may throw DtVrlInvalidTimeException if the time set was below LBTS.
|
virtual |
Set the Logger sim manager used to adjust time.
|
protected |