![]() |
MAK Data Logger API Documentation for HLA
|
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 (DtLgrHlaSimulationManager &simMgr, DtLgrHlaHandle loggerObjectId, DtLgrHlaHandle loggerClassHandle) | |
| virtual | ~DtLgrPublisherInterface () |
| DTOR. More... | |
| virtual void | update (const DtStateMsg &msg, 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 | updateRegion (const DtStateMsg &msg) |
| The given message has been decoded into the state repository of the publisher. More... | |
| virtual void | setRegion (const DtDDMRegionSet ®ion)=0 |
| Set the DtDDMRegionSet to play back to. More... | |
| virtual const DtDDMRegionSet & | publishingRegions () const =0 |
| Get the publishing regions. More... | |
| virtual void | setStaticRegionFlag (bool enabled) |
| Set status of static region. More... | |
| virtual bool | staticRegionFlag () const |
| Return bool: are regions static? More... | |
| virtual bool | publishingToRegion (DtDDMRegionSP region)=0 |
| Determine if the publisher is already playing back to the region provided. More... | |
| virtual void | setWaitingForRegionData (bool waitForData) |
| In some cases, regions are set based on values from attribute updates. More... | |
| virtual bool | waitingForRegionData () |
| Return bool: waiting for data required to set regions. More... | |
| virtual void | addUpdatedAttributes (const RTI::AttributeHandleValueMap &handleValues) |
| Update the list of updated attributes. More... | |
| virtual const RTI::AttributeHandleSet * | updatedAttributes () const |
| Get the list of updated attributes. More... | |
Protected Member Functions | |
| virtual DtHlaObjectWithStateRep * | pubHlaObject ()=0 |
| Get the object's hlaObject from the actual publisher class. More... | |
| virtual void | sendTheseAttrs (const RTI::AttributeHandleSet &attrs, double scale, bool isStatic)=0 |
| Send an update containing the given attributes. More... | |
| virtual void | sendAttributes (const DtStateMsg &msg, double scaling, bool isStatic) |
| Send an update containing the attributes from the given message. More... | |
| virtual bool | sendAllNextTick () |
| Get whether the publisher will send all attributes next tick. More... | |
| virtual void | setSendAllNextTick (bool yesNo=true) |
| Set the publisher to send all attributes next tick. More... | |
Protected Attributes | |
| DtTime | myLastUpdateTime |
| DtLgrHlaHandle | myLoggerObjectId |
| DtLgrHlaHandle | myLoggerClassHandle |
| DtLgrHlaSimulationManager & | mySimMgr |
| Simulation manager. More... | |
| bool | myWaitingForRegionData |
| bool | myStaticRegionFlag |
| RTI::AttributeHandleSet * | myUpdatedAttributes |
| bool | mySendAllNextTick |
| Stores whether all attributes will be set next tick. More... | |
Responsible for defining the interface that Object publishers must have.
| MAKLogger::DtLgrPublisherInterface::DtLgrPublisherInterface | ( | DtLgrHlaSimulationManager & | simMgr, |
| DtLgrHlaHandle | loggerObjectId, | ||
| DtLgrHlaHandle | loggerClassHandle | ||
| ) |
|
virtual |
DTOR.
|
virtual |
Update the list of updated attributes.
|
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
|
protectedpure virtual |
Get the object's hlaObject from the actual publisher class.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaEntityPublisher, and MAKLogger::DtLgrHlaAggregatePublisher.
|
pure virtual |
Get the publishing regions.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaAggregatePublisher, and MAKLogger::DtLgrHlaEntityPublisher.
|
pure virtual |
Determine if the publisher is already playing back to the region provided.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaAggregatePublisher, and MAKLogger::DtLgrHlaEntityPublisher.
|
protectedvirtual |
Get whether the publisher will send all attributes next tick.
|
protectedvirtual |
Send an update containing the attributes from the given message.
TSPI data is adjusted using scaling and static modifiers if necessary.
|
protectedpure virtual |
Send an update containing the given attributes.
TSPI data is adjusted using scaling and static modifiers if necessary.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaEntityPublisher, and MAKLogger::DtLgrHlaAggregatePublisher.
|
pure virtual |
Sends an update when scaling changes.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaAggregatePublisher, and MAKLogger::DtLgrHlaEntityPublisher.
|
pure virtual |
Set the DtDDMRegionSet to play back to.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaAggregatePublisher, and MAKLogger::DtLgrHlaEntityPublisher.
|
protectedvirtual |
Set the publisher to send all attributes next tick.
This should be called before each tick as it is reset to false after a tick.
|
virtual |
Set status of static region.
When regions are static, region updates are not performed
|
virtual |
In some cases, regions are set based on values from attribute updates.
Set the status to indicate if the required attributes have been updated. When waiting for region data, updates may not be sent even when update is called.
|
virtual |
Return bool: are regions static?
|
pure virtual |
Tick the publisher with a scaling value.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaAggregatePublisher, and MAKLogger::DtLgrHlaEntityPublisher.
|
pure virtual |
Process a state update message.
Implemented in MAKLogger::DtHLAGenericPublisher, MAKLogger::DtLgrHlaAggregatePublisher, and MAKLogger::DtLgrHlaEntityPublisher.
|
virtual |
Get the list of updated attributes.
|
virtual |
The given message has been decoded into the state repository of the publisher.
Called immediately after decoding the message so that no other state should have changed other than the state repository. Update the region if appropriate. Return boolean: region has changed?
Reimplemented in MAKLogger::DtLgrHlaDdmEntityPublisher.
|
virtual |
Return bool: waiting for data required to set regions.
When waiting for region data, updates may not be sent even when update is called.
|
protected |
|
protected |
|
protected |
|
protected |
Stores whether all attributes will be set next tick.
|
protected |
Simulation manager.
|
protected |
|
protected |
|
protected |