![]() |
MAK Data Logger API Documentation for DIS
|
Responsible for defining the interface that Object publishers must have. More...
Inheritance diagram for MAKLogger::DtLgrPublisherInterface:
Collaboration diagram for MAKLogger::DtLgrPublisherInterface:Public Member Functions | |
| DtLgrPublisherInterface (DtLgrDisSimulationManager &simMgr) | |
| virtual | ~DtLgrPublisherInterface () |
| DTOR. More... | |
| virtual void | update (const DtPdu &pdu, const DtAbsoluteTime &updateTime, bool isTimeFromPast, bool isStateUpdate, double scaling, bool isStatic, bool sendFlag)=0 |
| Process a state update message. More... | |
| virtual DtPacket * | createUpdatePacket (const DtAbsoluteTime &time) |
| Create an update packet with the given time from the publisher's encoded state data. More... | |
| virtual void | sendUpdateAtScaleChangePoint (double oldScale, double newScale, bool wasStatic, bool isStatic)=0 |
| Sends an update when scaling changes. More... | |
| virtual void | tick (double scaling, bool isStatic)=0 |
| Tick the publisher with a scaling value. More... | |
| virtual bool | timeoutNow () |
| Returns true if the publisher has not received an update within the configured timeout period and should be removed from the output. More... | |
| virtual void | setExerciseId (unsigned char exerciseId) |
| Set the exercise id. More... | |
| virtual unsigned char | exerciseId () const |
| Get the associated exercise id. More... | |
Protected Member Functions | |
| virtual void | adjustConnectionExerciseId () |
| virtual void | resetConnectionExerciseId () |
| virtual const DtStateMsg & | lastState () const =0 |
| Return the last state update handled by the publisher. More... | |
| virtual void | adjustProtocolVersionToSend () |
| virtual void | resetProtocolVersionToSend () |
| virtual void | setInitialDISVersion (int version) |
Protected Attributes | |
| DtTime | myLastUpdateTime |
| DtLgrDisSimulationManager & | mySimMgr |
| unsigned char | myExConnExerciseId |
| unsigned char | myExerciseId |
| int | myInitialDISVersion |
| int | myDefaultDISVersion |
Responsible for defining the interface that Object publishers must have.
| MAKLogger::DtLgrPublisherInterface::DtLgrPublisherInterface | ( | DtLgrDisSimulationManager & | simMgr | ) |
|
virtual |
DTOR.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Create an update packet with the given time from the publisher's encoded state data.
Note that because data is encoded, encoding adjustments like dead reckoning may be applied
|
virtual |
Get the associated exercise id.
|
protectedpure virtual |
Return the last state update handled by the publisher.
Implemented in MAKLogger::DtLgrDisEntityPublisher, MAKLogger::DtLgrDisReceiverPublisher, MAKLogger::DtLgrDisEnvironmentalProcessPublisher, MAKLogger::DtLgrDisDesignatorPublisher, MAKLogger::DtLgrDisGriddedDataPublisher, MAKLogger::DtLgrDisTransmitterPublisher, and MAKLogger::DtLgrDisAggragatePublisher.
|
protectedvirtual |
|
protectedvirtual |
|
pure virtual |
Sends an update when scaling changes.
Implemented in MAKLogger::DtLgrDisEntityPublisher, MAKLogger::DtLgrDisEnvironmentalProcessPublisher, MAKLogger::DtLgrDisReceiverPublisher, MAKLogger::DtLgrDisDesignatorPublisher, MAKLogger::DtLgrDisGriddedDataPublisher, MAKLogger::DtLgrDisTransmitterPublisher, and MAKLogger::DtLgrDisAggragatePublisher.
|
virtual |
Set the exercise id.
|
protectedvirtual |
|
pure virtual |
Tick the publisher with a scaling value.
Implemented in MAKLogger::DtLgrDisEntityPublisher, MAKLogger::DtLgrDisReceiverPublisher, MAKLogger::DtLgrDisEnvironmentalProcessPublisher, MAKLogger::DtLgrDisTransmitterPublisher, MAKLogger::DtLgrDisDesignatorPublisher, MAKLogger::DtLgrDisGriddedDataPublisher, and MAKLogger::DtLgrDisAggragatePublisher.
|
virtual |
Returns true if the publisher has not received an update within the configured timeout period and should be removed from the output.
The default implementation always returns false (no timeout).
Reimplemented in MAKLogger::DtLgrDisEntityPublisher, and MAKLogger::DtLgrDisAggragatePublisher.
|
pure virtual |
Process a state update message.
Implemented in MAKLogger::DtLgrDisEnvironmentalProcessPublisher, MAKLogger::DtLgrDisReceiverPublisher, MAKLogger::DtLgrDisDesignatorPublisher, MAKLogger::DtLgrDisEntityPublisher, MAKLogger::DtLgrDisGriddedDataPublisher, MAKLogger::DtLgrDisTransmitterPublisher, and MAKLogger::DtLgrDisAggragatePublisher.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |