![]() |
MAK RTIspy API Documentation for HLA 1.3
|
This class is a base for the protocol specific DtRtiAmbassadorImplementor class. More...
Collaboration diagram for DtRtiAmbassadorBaseImplementor:Public Member Functions | |
| virtual | ~DtRtiAmbassadorBaseImplementor () |
| Destructor. | |
| virtual void | addObserver (const MAKRti::DtString &name, DtRtiAmbassadorObserver *observer) |
| Add/Remove observers to the LRC's observer list. | |
| virtual DtRtiAmbassadorObserver * | removeObserver (const MAKRti::DtString &name) |
| virtual void | addFedAmbWrapper (const MAKRti::DtString &name, DtFedAmbWrapper *wrapper) |
| Add/Remove federate wrappers to the LRC's federate wrapper list. | |
| virtual DtFedAmbWrapper * | removeFedAmbWrapper (const MAKRti::DtString &name) |
| virtual bool | enterServiceCall (const MAKRti::DtString &serviceCallName) |
| Prepare for a service call Called by RTI Ambassador services to gain mutually exclusive access to RTI managers. | |
| virtual void | exitServiceCall (const MAKRti::DtString &serviceCallName) |
| Finish a service call. | |
| virtual bool | isConnected () const |
| Is the connection completed? | |
| virtual DtRIDParameters * | params () |
| Get the RID parameters. | |
| virtual DtFederateMgr * | validatedFedMgr () |
| Get the federate mgr Will throw RTI Exception if not initialized. | |
| virtual DtFederateMgr * | nakedFedMgr () |
| Get the federate mgr Returns even when not initialized (with null) | |
| virtual DtConnectionMgr * | validatedConnectMgr () |
| Get the connection mgr Will throw RTI Exception if not initialized. | |
| virtual DtConnectionMgr * | nakedConnectMgr () |
| Get the connection mgr Returns even when not initialized (with null) | |
| virtual DtObjectMgr * | objMgr () |
| Get the object mgr If the LRC is unjoined, this will return NULL. | |
| virtual DtInteractionMgr * | interMgr () |
| Get the interaction mgr If the LRC is unjoined, this will return NULL. | |
| virtual DtFomClassMgr * | fomMgr () |
| Get the fom mgr If the LRC is unjoined, this will return NULL. | |
| virtual DtRtiAmbObserverList * | observers () |
| Return the observer list. | |
| virtual const DtRtiAmbObserverList * | observers () const |
| Return the observer list. | |
| virtual void | enableLogging () |
| Enables logging if it is not already enabled Plugin Users should never need to call this. | |
| virtual DtBoost::shared_ptr < MAKRti::DtFilePrinter > | logPrinter () |
| Get the printer which prints output to the log file. | |
| unsigned long | flags () const |
| virtual DtFederateMgr * | validateIsJoined (const char *serviceCallName) |
| Validate that federate is joined. | |
| virtual const DtFederateMgr * | validateIsJoined (const char *serviceCallName) const |
| Validate that federate is joined. | |
Protected Types | |
| enum | DtProcessingModelOverride { DtImmediateCallbacks = 0, DtEvokedCallbacks, DtDefaultModel } |
| 0 == Use an immediate callback processing model 1 == Use an evoked callback processing model 2 == Use default processing model More... | |
Protected Member Functions | |
| DtRtiAmbassadorBaseImplementor () | |
| Abstract class, do not instantiate. | |
| virtual void | setupConnection (const std::vector< MAKRti::DtString > &rid, DtProcessingModelOverride processingModelOverride=DtDefaultModel) |
| Establish preliminary connection configuration and infrastructure. | |
| virtual void | performParameterOverrides (DtRIDParameters &ridParams, DtProcessingModelOverride processingModelOverride) const |
| Override RID parameter options. | |
| virtual bool | completeConnection (MAKRti::DtString &errorMessage) |
| Complete the connection infrastructure Throws if there is a fatal failure Returns boolean: connection completed successfully? If not it is possible to try again. | |
| virtual void | clearConnection () |
| Remove the connection. | |
| virtual void | clearManagers () |
| virtual void | shutdown () |
| Prepare asynchronous connection for shutdown. | |
| virtual bool | performMulticastDiscovery () |
| Attempt to automatically detect the RTI Forwarder (or RTI Exec) Returns false if not found. | |
| virtual void | printDisabledService (const MAKRti::DtString &service) |
| Print a disabled service. | |
| virtual unsigned long | incrementServiceCallCount () |
| Increment the service call count and return its value. | |
| virtual bool | tickOnce () |
| Called from tick/evokeCallback: Ticks the federate manager. | |
| virtual void | throwInternalError (const MAKRti::DtString &errorMessage) const =0 |
| Throw an RTI internal exception. | |
| virtual void | throwNotConnected (const MAKRti::DtString &errorMessage) const =0 |
| Throw an RTI not connected exception (internal for 1.3 & 1516) | |
| virtual void | throwNotJoined (const MAKRti::DtString &errorMessage) const =0 |
| Throw an RTI not joined exception. | |
| virtual void | attachStreams (MAKRti::DtPrinter *printer) |
| virtual void | detachStreams (MAKRti::DtPrinter *printer) |
| virtual void | detachAllStreams () |
Protected Attributes | |
| DtRIDParameters * | myParams |
| The RTI initialization parameters. | |
| DtConnectionMgr * | myConnectMgr |
| The connection manager. | |
| DtFederateMgr * | myFedMgr |
| The federate manager. | |
| DtRtiPluginManager * | myPluginMgr |
| The plugin manager. | |
| DtRtiAmbObserverList * | myObservers |
| The list of RTI Ambassador observers. | |
| DtRtiAmbObserverList * | myEmptyObserverList |
| The empty list. | |
| DtBoost::shared_ptr < DtRtiAssistantLrcClient > | myAssistantClient |
| The assistant client. We cache it until we're initialized. | |
| DtBoost::shared_ptr < MAKRti::DtFilePrinter > | myLogPrinter |
| The printer which prints output to the log file. | |
| DtBoost::shared_ptr < DtAssistantPrinter > | myAssistantPrinter |
| The printer which sends output to the assistant file. | |
| DtBoost::shared_ptr< DtPrinterBuf > | myPrinterBuffer |
| The printer which captures output before connecting. | |
| DtBoost::shared_ptr < DtBufferPrinter > | myBufferPrinter |
| bool | myCallbacksEnabled |
| Indicates callbacks enabled status. | |
| MAKRti::DtClock | myClock |
| Clock used for timing. | |
| unsigned long | myFlags |
| bool | myUseBusyWaitForTick |
Private Member Functions | |
| DtRtiAmbassadorBaseImplementor (const DtRtiAmbassadorBaseImplementor &) | |
| Copy Constructor not implemented – Copy Not Allowed! | |
| DtRtiAmbassadorBaseImplementor & | operator= (const DtRtiAmbassadorBaseImplementor &) |
| Assignment not implemented – Assignment Not Allowed! | |
This class is a base for the protocol specific DtRtiAmbassadorImplementor class.
It performs the common initialization and processing for setting up connections and establishing the common infrastructure. The protocol specific DtRtiAmbassadorImplementor that derive from this class implement the RTIambassador services defined in the HLA specification by forwarding federate requests to the appropriate sub-managers.
|
protected |
|
protected |
Abstract class, do not instantiate.
|
virtual |
Destructor.
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
virtual |
Add/Remove federate wrappers to the LRC's federate wrapper list.
|
virtual |
Add/Remove observers to the LRC's observer list.
|
protectedvirtual |
|
protectedvirtual |
Remove the connection.
|
protectedvirtual |
|
protectedvirtual |
Complete the connection infrastructure Throws if there is a fatal failure Returns boolean: connection completed successfully? If not it is possible to try again.
Error message provided if recoverable failure occurs
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Enables logging if it is not already enabled Plugin Users should never need to call this.
|
virtual |
Prepare for a service call Called by RTI Ambassador services to gain mutually exclusive access to RTI managers.
Also checks that connection is fully initialized (throws if not). Return true if entered with access to lock
|
virtual |
Finish a service call.
| unsigned long DtRtiAmbassadorBaseImplementor::flags | ( | ) | const |
|
virtual |
Get the fom mgr If the LRC is unjoined, this will return NULL.
|
protectedvirtual |
Increment the service call count and return its value.
Null operation if not yet connected (returns 0).
|
virtual |
Get the interaction mgr If the LRC is unjoined, this will return NULL.
|
virtual |
Is the connection completed?
|
virtual |
Get the printer which prints output to the log file.
|
virtual |
Get the connection mgr Returns even when not initialized (with null)
|
virtual |
Get the federate mgr Returns even when not initialized (with null)
|
virtual |
Get the object mgr If the LRC is unjoined, this will return NULL.
|
virtual |
Return the observer list.
|
virtual |
Return the observer list.
|
private |
Assignment not implemented – Assignment Not Allowed!
|
virtual |
Get the RID parameters.
|
protectedvirtual |
Attempt to automatically detect the RTI Forwarder (or RTI Exec) Returns false if not found.
|
protectedvirtual |
Override RID parameter options.
Overrides RID parameters based on connection status and other settings.
|
protectedvirtual |
Print a disabled service.
|
virtual |
|
virtual |
|
protectedvirtual |
Establish preliminary connection configuration and infrastructure.
|
protectedvirtual |
Prepare asynchronous connection for shutdown.
|
protectedpure virtual |
Throw an RTI internal exception.
|
protectedpure virtual |
Throw an RTI not connected exception (internal for 1.3 & 1516)
|
protectedpure virtual |
Throw an RTI not joined exception.
|
protectedvirtual |
Called from tick/evokeCallback: Ticks the federate manager.
|
virtual |
Get the connection mgr Will throw RTI Exception if not initialized.
|
virtual |
Get the federate mgr Will throw RTI Exception if not initialized.
|
virtual |
Validate that federate is joined.
If not valid, throw not joined exception. Return the federate manager if everything is OK
|
virtual |
Validate that federate is joined.
If not valid, throw not joined exception. Return the federate manager if everything is OK
|
protected |
The assistant client. We cache it until we're initialized.
|
protected |
The printer which sends output to the assistant file.
|
protected |
|
protected |
Indicates callbacks enabled status.
|
protected |
Clock used for timing.
|
protected |
The connection manager.
|
protected |
The empty list.
|
protected |
The federate manager.
|
protected |
|
protected |
The printer which prints output to the log file.
|
protected |
The list of RTI Ambassador observers.
|
protected |
The RTI initialization parameters.
|
protected |
The plugin manager.
|
protected |
The printer which captures output before connecting.
|
protected |