![]() |
VR-Link API Documentation for DIS
|
Inheritance diagram for DtBaseTransferControlManager:
Collaboration diagram for DtBaseTransferControlManager:Public Member Functions | |
| DtBaseTransferControlManager (DtExerciseConn *exConn) | |
| ~DtBaseTransferControlManager () | |
| virtual void | addTransferControlNotificationCallback (DtTransferControlInteractionCb usrCallback, void *user) |
| Callbacks for transfer control interactions that are intended for this application. More... | |
| virtual void | addAcknowledgementNotificationCallback (DtAcknowledgeInteractionCb usrCallback, void *user) |
| Callbacks for acknowledgement interactions that match up with requests made. More... | |
| virtual void | addSetRecordNotificationCallback (DtSetRecordInteractionCb usrCallback, void *user) |
| Callbacks for set record interactions that match up with requests made. More... | |
| virtual void | addTransferControlRequestTimeoutCallback (void(*usrCallback)(DtU32 requestIdentifier, const DtGlobalObjectDesignator &transferredEntityId, void *userData), void *userData) |
| Callbacks invoked when an outgoing transfer control request times out. More... | |
| virtual void | addIncomingTransferControlRequestCancelledCallback (void(*usrCallback)(DtU32 requestIdentifier, const DtGlobalObjectDesignator &transferredEntityId, void *userData), void *userData) |
| Callbacks invoked when an incoming transfer control request is cancelled. More... | |
| virtual void | processTransferControlRequest (DtTransferControlInteraction *tci) |
| Processes incoming transfer control requests. More... | |
| virtual bool | processAcknowledge (DtAcknowledgeInteraction *tci) |
| Processes incoming transfer control requests. More... | |
| virtual void | processSetRecord (DtSetRecordInteraction *setRec) |
| Processes the incoming SetRecord interaction. Tracks the number of records for each individual request ID. More... | |
| virtual void | processEventReport (DtEventReportInteraction *eventReport) |
| Processes the incoming EventReport interaction. More... | |
| virtual void | sendAcknowledgement (const DtTransferRequestKey &key, bool approve, DtRecordSetList *recordSetList=nullptr, DtStateRepository *stateRepo=nullptr) |
| Send an ackowledgement for a transfer control request specified by the requestIdentifier while indicating approval or disapproval of the transfer. More... | |
| virtual void | sendSetRecord (DtEntityIdentifier originatingApplicationId, DtU32 requestIdentifier, DtRecordSetList *recordSetList, DtStateRepository *stateRepo) |
| Send out the SetRecord interaction for internal data. More... | |
| virtual unsigned int | sendTransferControlRequest (DtTransferControlInteraction *tci) |
| Send the supplied transfer control request. More... | |
| virtual unsigned int | sendTransferControlRequest (DtEntityIdentifier receivingApplicationId, DtGlobalObjectDesignator transferredEntityId) |
| Send a transfer control request with the supplied receiving application identifier and transferred entity identifier. More... | |
| virtual void | setTransferControlRequestTimeout (double timeoutSeconds) |
| Sets the timeout period in seconds for outgoing transfer control requests waiting on acknowledge. More... | |
| virtual void | disableTransferControlRequestTimeout () |
| Disables timeout handling for outgoing transfer control requests. More... | |
| virtual void | enableTransferControlRequestTimeout () |
| Enables timeout handling for outgoing transfer control requests. More... | |
| virtual DtTransferControlInteraction * | pendingOutgoingTransferRequest (DtU32 requestIdentifier) |
| return a pointer to the pending outgoing transfer request with the given requestIdentifier. More... | |
| virtual bool | getSetRecordTracker (DtU32 requestIdentifier, DtSetRecordTracker &tracker) |
| get a DtSetRecordTracker object for the given Request Identifier, returns a bool to indicate success or failure. More... | |
| virtual void | sendEventReport (DtGlobalObjectDesignator identifier) |
| sends out a Ownership Event Report interaction, indicating the new owner of the indicated object More... | |
| virtual void | sendSetRecordInteraction (DtU32 requestIdentifier)=0 |
| Pure virtual functions that are protocol specific and must be defined in subclass. More... | |
| virtual void | invokeNewAndLostObjectCallbacks ()=0 |
| Post drain callback to return publisher objects through callbacks. More... | |
| virtual DtTransferRequestKey | findRequestIdForObject (const DtGlobalObjectDesignator &objDesignator) |
| virtual bool | removeObjectFromTransferredSet (const DtGlobalObjectDesignator &objectDesignator, const DtTransferRequestKey &key) |
| virtual bool | isTransferredSetEmpty (const DtTransferRequestKey &key) const |
Static Public Member Functions | |
| static void | transferControlRequestCallback (DtTransferControlInteraction *tci, void *user) |
| Callback for incoming Transer Control Requests. More... | |
| static void | acknowledgeCallback (DtAcknowledgeInteraction *ack, void *user) |
| Callback for incoming acknowledgement interactions. More... | |
| static void | setRecordCallback (DtSetRecordInteraction *setRec, void *user) |
| Callback for incoming SetRecord interactions. More... | |
| static void | eventReportCallback (DtEventReportInteraction *eventReport, void *user) |
| Callback for incoming EventReport interactions. More... | |
| static void | postDrainCallback (void *user) |
| Post Drain callback. More... | |
Protected Member Functions | |
| virtual void | onPositiveAcknowledge (const DtAcknowledgeInteraction &ack, const DtTransferControlInteraction &request) |
| Hook for protocol-specific handling of positive transfer control acknowledges. More... | |
| virtual void | onNegativeAcknowledge (const DtAcknowledgeInteraction &ack, const DtTransferControlInteraction &request) |
| Hook for protocol-specific handling of negative transfer control acknowledges. More... | |
| virtual void | addOutgoingTransferControlRequest (DtTransferControlInteraction *tci) |
| Adds the outoing transfer control interaction to a map of outgoing transfer control interactions, sorted by Request Identifier. More... | |
| virtual void | addIncomingTransferControlRequest (DtTransferControlInteraction *tci) |
| Adds the incoming transfer control interaction to a map of incoming transfer control interactions, sorted by Request Identifier. More... | |
| virtual void | removeOutgoingTransferControlRequest (DtGlobalObjectDesignator identifier) |
| Removes the outgoing transfer control interaction to a map of outgoing transfer control interactions, sorted by Request Identifier Called when a transfer completes, either successfully or unsucessfully. More... | |
| virtual void | removeIncomingTransferControlRequest (DtGlobalObjectDesignator identifier) |
| Removes the incoming transfer control interaction to a map of incoming transfer control interactions, sorted by Request Identifier Called when a transfer completes, either successfully or unsucessfully. More... | |
| virtual void | processOutgoingTransferRequestTimeouts () |
| Checks outgoing request timers and sends cancel requests for expired pending requests. More... | |
| virtual void | sendCancelTransferControlRequest (const DtTransferControlInteraction &request) |
| Sends a cancel transfer control request for the provided pending request. More... | |
| virtual void | onOutgoingTransferControlRequestCancelled (const DtTransferControlInteraction &request) |
| Hook for protocol-specific cleanup when an outgoing request is cancelled. More... | |
| virtual void | invokeOutgoingTransferControlRequestTimeoutCallbacks (const DtTransferControlInteraction &request) |
| Invokes callbacks registered for outgoing transfer control request timeout events. More... | |
| virtual void | invokeIncomingTransferControlRequestCancelledCallbacks (const DtTransferControlInteraction &request) |
| Invokes callbacks registered when an incoming transfer request is cancelled. More... | |
| virtual void | markOutgoingRequestCancelled (const DtTransferRequestKey &key) |
| Marks an outgoing request as cancelled so late responses can be ignored. More... | |
| virtual bool | isOutgoingRequestCancelled (const DtTransferRequestKey &key) const |
| Returns true if an outgoing request has already been cancelled. More... | |
| virtual bool | isTransferredObjectCancelled (const DtGlobalObjectDesignator &objectIdentifier) const |
| Returns true if a transferred object identifier has been cancelled by timeout. More... | |
| virtual void | clearCancelledTransferredObject (const DtGlobalObjectDesignator &objectIdentifier) |
| Clears cancelled state for a transferred object identifier. More... | |
Private Member Functions | |
| DtBaseTransferControlManager (const DtBaseTransferControlManager &orig) | |
| copy constructor – Not Implemented More... | |
| DtBaseTransferControlManager & | operator= (const DtBaseTransferControlManager &orig) |
| assignment operator – Not Implemented More... | |
| DtBaseTransferControlManager::DtBaseTransferControlManager | ( | DtExerciseConn * | exConn | ) |
| DtBaseTransferControlManager::~DtBaseTransferControlManager | ( | ) |
|
private |
copy constructor – Not Implemented
|
static |
Callback for incoming acknowledgement interactions.
|
virtual |
Callbacks for acknowledgement interactions that match up with requests made.
|
protectedvirtual |
Adds the incoming transfer control interaction to a map of incoming transfer control interactions, sorted by Request Identifier.
|
virtual |
Callbacks invoked when an incoming transfer control request is cancelled.
|
protectedvirtual |
Adds the outoing transfer control interaction to a map of outgoing transfer control interactions, sorted by Request Identifier.
|
virtual |
Callbacks for set record interactions that match up with requests made.
|
virtual |
Callbacks for transfer control interactions that are intended for this application.
|
virtual |
Callbacks invoked when an outgoing transfer control request times out.
|
protectedvirtual |
Clears cancelled state for a transferred object identifier.
|
virtual |
Disables timeout handling for outgoing transfer control requests.
|
virtual |
Enables timeout handling for outgoing transfer control requests.
|
static |
Callback for incoming EventReport interactions.
|
virtual |
|
virtual |
get a DtSetRecordTracker object for the given Request Identifier, returns a bool to indicate success or failure.
|
protectedvirtual |
Invokes callbacks registered when an incoming transfer request is cancelled.
|
pure virtual |
Post drain callback to return publisher objects through callbacks.
Virtual here since it is protocol specific. Defined in subclasses.
Implemented in DtTransferControlManager.
|
protectedvirtual |
Invokes callbacks registered for outgoing transfer control request timeout events.
|
protectedvirtual |
Returns true if an outgoing request has already been cancelled.
|
protectedvirtual |
Returns true if a transferred object identifier has been cancelled by timeout.
|
virtual |
|
protectedvirtual |
Marks an outgoing request as cancelled so late responses can be ignored.
|
protectedvirtual |
Hook for protocol-specific handling of negative transfer control acknowledges.
Reimplemented in DtTransferControlManager.
|
protectedvirtual |
Hook for protocol-specific cleanup when an outgoing request is cancelled.
Reimplemented in DtTransferControlManager.
|
protectedvirtual |
Hook for protocol-specific handling of positive transfer control acknowledges.
Reimplemented in DtTransferControlManager.
|
private |
assignment operator – Not Implemented
|
virtual |
return a pointer to the pending outgoing transfer request with the given requestIdentifier.
returns nullptr if no pending outgoing transfer request is found.
|
static |
Post Drain callback.
|
virtual |
Processes incoming transfer control requests.
If the ReceivingEntity identifier matches this federate's site:app the callbacks will be invoked.
|
virtual |
Processes the incoming EventReport interaction.
Reimplemented in DtTransferControlManager.
|
protectedvirtual |
Checks outgoing request timers and sends cancel requests for expired pending requests.
|
virtual |
Processes the incoming SetRecord interaction. Tracks the number of records for each individual request ID.
Reimplemented in DtTransferControlManager.
|
virtual |
Processes incoming transfer control requests.
If the ReceivingEntity identifier matches this federate's site:app the callbacks will be invoked.
|
protectedvirtual |
Removes the incoming transfer control interaction to a map of incoming transfer control interactions, sorted by Request Identifier Called when a transfer completes, either successfully or unsucessfully.
|
virtual |
|
protectedvirtual |
Removes the outgoing transfer control interaction to a map of outgoing transfer control interactions, sorted by Request Identifier Called when a transfer completes, either successfully or unsucessfully.
|
virtual |
Send an ackowledgement for a transfer control request specified by the requestIdentifier while indicating approval or disapproval of the transfer.
Optionally, supply a DtRecordSet of internal data for the entity or its subsystems. Optionally, supply a pointer to the DtStateRepository for VR-Link to transfer known subsytems
|
protectedvirtual |
Sends a cancel transfer control request for the provided pending request.
|
virtual |
sends out a Ownership Event Report interaction, indicating the new owner of the indicated object
|
virtual |
Send out the SetRecord interaction for internal data.
|
pure virtual |
Pure virtual functions that are protocol specific and must be defined in subclass.
Implemented in DtTransferControlManager.
|
virtual |
Send the supplied transfer control request.
|
virtual |
Send a transfer control request with the supplied receiving application identifier and transferred entity identifier.
|
static |
Callback for incoming SetRecord interactions.
|
virtual |
Sets the timeout period in seconds for outgoing transfer control requests waiting on acknowledge.
Default is 5.0 seconds.
|
static |
Callback for incoming Transer Control Requests.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |