MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtLgrHlaEntityPublisher Class Reference

An HLA Entity publisher. More...

+ Inheritance diagram for MAKLogger::DtLgrHlaEntityPublisher:
+ Collaboration diagram for MAKLogger::DtLgrHlaEntityPublisher:

Public Member Functions

 DT_VIRTUAL_CTR_DEFAULTS (DtLgrHlaEntityPublisher,(DtLgrHlaSimulationManager &simMgr, DtLgrHlaHandle loggerObjectId, DtLgrHlaHandleloggerClassHandle, RTI::ObjectClassHandle classHandle, const char *objName, const DtDDMRegionSet *regionSetToUse, double hbtime, bool waitForRegionData, bool stat),(DtLgrHlaSimulationManager &simMgr, DtLgrHlaHandle loggerObjectId, DtLgrHlaHandleloggerClassHandle, RTI::ObjectClassHandle classHandle, const char *objName, const DtDDMRegionSet *regionSetToUse, double hbtime=0.0, bool waitForRegionData=false, bool stat=true)) virtual ~DtLgrHlaEntityPublisher()
 Virtual Constructor Configure base class with proper FOM class, state repositories, encoder and decoder. More...
 
virtual void update (const DtStateMsg &msg, const DtAbsoluteTime &updateTime, bool isTimeFromPast, bool isStateUpdate, double scaling, bool isStatic, bool sendFlag)
 Process a state update message. More...
 
virtual DtObjectPublisherobjPublisher ()
 Return reference to this instance as an object publisher. More...
 
virtual void tick (double scale, bool isStatic)
 Sends needed attributes. More...
 
virtual void sendUpdateAtScaleChangePoint (double oldScale, double newScale, bool wasStatic, bool isStatic)
 Output time scale has changed. More...
 
virtual void setRegion (const DtDDMRegionSet &region)
 Set the DtDDMRegionSet to play back to. More...
 
virtual const DtDDMRegionSet & publishingRegions () const
 Get the publishing regions. More...
 
virtual bool publishingToRegion (DtDDMRegionSP region)
 Determine if the publisher is already playing back to the region provided. More...
 
- Public Member Functions inherited from MAKLogger::DtLgrPublisherInterface
 DtLgrPublisherInterface (DtLgrHlaSimulationManager &simMgr, DtLgrHlaHandle loggerObjectId, DtLgrHlaHandle loggerClassHandle)
 
virtual ~DtLgrPublisherInterface ()
 DTOR. More...
 
virtual DtPacketcreateUpdatePacket (const DtAbsoluteTime &time)
 Create an update packet with the given time from the publisher's encoded state data. More...
 
virtual bool updateRegion (const DtStateMsg &msg)
 The given message has been decoded into the state repository of the publisher. More...
 
virtual void setStaticRegionFlag (bool enabled)
 Set status of static region. More...
 
virtual bool staticRegionFlag () const
 Return bool: are regions static? 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 void setPauseUpdateAttributes (double &scale)
 Set frozen and DR algorithm based on pause state Adjust scale to last scale value if paused. More...
 
virtual DtHlaObjectWithStateRep * pubHlaObject ()
 Get the object's hlaObject from the actual publisher class. More...
 
virtual void scaleArticulatedParts (double scale)
 Scale the articulated parts. More...
 
virtual void generateScaledUpdate (const RTI::AttributeHandleSet &attrs, double scale, bool isStatic, DtStateMsg &msg)
 Generate a state message using the given attributes. More...
 
virtual void sendRequestedAttrs (double scale, bool isStatic)
 Sends an update containing values for all attributes requested since last call to this function. More...
 
virtual void sendTheseAttrs (const RTI::AttributeHandleSet &attrs, double scale, bool isStatic)
 Send an update containing the given attributes. More...
 
virtual void send (DtStateMsg &msg)
 
 DtLgrHlaEntityPublisher (const DtLgrHlaEntityPublisher &other)
 Copy CTOR – Not Implemented. More...
 
DtLgrHlaEntityPublisheroperator= (const DtLgrHlaEntityPublisher &other)
 Assignment Operator – Not Implemented. More...
 
- Protected Member Functions inherited from MAKLogger::DtLgrPublisherInterface
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

RTI::AttributeHandleSet * myAttrsToSend
 Attributes to send in update. More...
 
DtBaseEntityStateRepository * mySeenByAttrs
 Attributes as seen by others (i.e., last updated values) More...
 
DtDeadReckoner * myDeadReckoner
 
DtLgrHlaEntityStateRepositorymyLgrEsr
 
double myLastTimeScale
 
double myHeartbeatInterval
 
double myLastHeartbeatTime
 
DtVector32 myLastUpdateVelocity
 
DtVector32 myLastUpdateAcceleration
 
DtVector32 myLastUpdateRotVel
 
DtTaitBryan myLastUpdateOrientation
 
DtVector myLastUpdateLocation
 
bool myFrozenBeforePause
 
bool myPaused
 
bool myUnpausedOnThisSend
 
DtDeadReckonTypes myOldDRType
 
bool myDRTypeChanged
 
- Protected Attributes inherited from MAKLogger::DtLgrPublisherInterface
DtTime myLastUpdateTime
 
DtLgrHlaHandle myLoggerObjectId
 
DtLgrHlaHandle myLoggerClassHandle
 
DtLgrHlaSimulationManagermySimMgr
 Simulation manager. More...
 
bool myWaitingForRegionData
 
bool myStaticRegionFlag
 
RTI::AttributeHandleSet * myUpdatedAttributes
 
bool mySendAllNextTick
 Stores whether all attributes will be set next tick. More...
 

Detailed Description

An HLA Entity publisher.

Constructor & Destructor Documentation

MAKLogger::DtLgrHlaEntityPublisher::DtLgrHlaEntityPublisher ( const DtLgrHlaEntityPublisher other)
protected

Copy CTOR – Not Implemented.

Member Function Documentation

MAKLogger::DtLgrHlaEntityPublisher::DT_VIRTUAL_CTR_DEFAULTS ( DtLgrHlaEntityPublisher  ,
(DtLgrHlaSimulationManager &simMgr, DtLgrHlaHandle loggerObjectId, DtLgrHlaHandleloggerClassHandle, RTI::ObjectClassHandle classHandle, const char *objName, const DtDDMRegionSet *regionSetToUse, double hbtime, bool waitForRegionData, bool stat)  ,
(DtLgrHlaSimulationManager &simMgr, DtLgrHlaHandle loggerObjectId, DtLgrHlaHandleloggerClassHandle, RTI::ObjectClassHandle classHandle, const char *objName, const DtDDMRegionSet *regionSetToUse, double hbtime=0.0, bool waitForRegionData=false, bool stat=true)   
)

Virtual Constructor Configure base class with proper FOM class, state repositories, encoder and decoder.

destructor

virtual void MAKLogger::DtLgrHlaEntityPublisher::generateScaledUpdate ( const RTI::AttributeHandleSet &  attrs,
double  scale,
bool  isStatic,
DtStateMsg &  msg 
)
protectedvirtual

Generate a state message using the given attributes.

TSPI data is adjusted using scaling and static modifiers if necessary.

virtual DtObjectPublisher* MAKLogger::DtLgrHlaEntityPublisher::objPublisher ( )
virtual

Return reference to this instance as an object publisher.

DtLgrHlaEntityPublisher& MAKLogger::DtLgrHlaEntityPublisher::operator= ( const DtLgrHlaEntityPublisher other)
protected

Assignment Operator – Not Implemented.

virtual DtHlaObjectWithStateRep* MAKLogger::DtLgrHlaEntityPublisher::pubHlaObject ( )
protectedvirtual

Get the object's hlaObject from the actual publisher class.

Implements MAKLogger::DtLgrPublisherInterface.

virtual const DtDDMRegionSet& MAKLogger::DtLgrHlaEntityPublisher::publishingRegions ( ) const
virtual

Get the publishing regions.

Implements MAKLogger::DtLgrPublisherInterface.

virtual bool MAKLogger::DtLgrHlaEntityPublisher::publishingToRegion ( DtDDMRegionSP  region)
virtual

Determine if the publisher is already playing back to the region provided.

Implements MAKLogger::DtLgrPublisherInterface.

virtual void MAKLogger::DtLgrHlaEntityPublisher::scaleArticulatedParts ( double  scale)
protectedvirtual

Scale the articulated parts.

virtual void MAKLogger::DtLgrHlaEntityPublisher::send ( DtStateMsg &  msg)
protectedvirtual
virtual void MAKLogger::DtLgrHlaEntityPublisher::sendRequestedAttrs ( double  scale,
bool  isStatic 
)
protectedvirtual

Sends an update containing values for all attributes requested since last call to this function.

virtual void MAKLogger::DtLgrHlaEntityPublisher::sendTheseAttrs ( const RTI::AttributeHandleSet &  attrs,
double  scale,
bool  isStatic 
)
protectedvirtual

Send an update containing the given attributes.

TSPI data is adjusted using scaling and static modifiers if necessary.

Implements MAKLogger::DtLgrPublisherInterface.

virtual void MAKLogger::DtLgrHlaEntityPublisher::sendUpdateAtScaleChangePoint ( double  oldScale,
double  newScale,
bool  wasStatic,
bool  isStatic 
)
virtual

Output time scale has changed.

Adjust TSPI data to new scale since last call to this function.

Implements MAKLogger::DtLgrPublisherInterface.

virtual void MAKLogger::DtLgrHlaEntityPublisher::setPauseUpdateAttributes ( double &  scale)
protectedvirtual

Set frozen and DR algorithm based on pause state Adjust scale to last scale value if paused.

virtual void MAKLogger::DtLgrHlaEntityPublisher::setRegion ( const DtDDMRegionSet &  region)
virtual

Set the DtDDMRegionSet to play back to.

Implements MAKLogger::DtLgrPublisherInterface.

virtual void MAKLogger::DtLgrHlaEntityPublisher::tick ( double  scale,
bool  isStatic 
)
virtual

Sends needed attributes.

Implements MAKLogger::DtLgrPublisherInterface.

virtual void MAKLogger::DtLgrHlaEntityPublisher::update ( const DtStateMsg &  msg,
const DtAbsoluteTime updateTime,
bool  isTimeFromPast,
bool  isStateUpdate,
double  scaling,
bool  isStatic,
bool  sendFlag 
)
virtual

Process a state update message.

Implements MAKLogger::DtLgrPublisherInterface.

Member Data Documentation

RTI::AttributeHandleSet* MAKLogger::DtLgrHlaEntityPublisher::myAttrsToSend
protected

Attributes to send in update.

DtDeadReckoner* MAKLogger::DtLgrHlaEntityPublisher::myDeadReckoner
protected
bool MAKLogger::DtLgrHlaEntityPublisher::myDRTypeChanged
protected
bool MAKLogger::DtLgrHlaEntityPublisher::myFrozenBeforePause
protected
double MAKLogger::DtLgrHlaEntityPublisher::myHeartbeatInterval
protected
double MAKLogger::DtLgrHlaEntityPublisher::myLastHeartbeatTime
protected
double MAKLogger::DtLgrHlaEntityPublisher::myLastTimeScale
protected
DtVector32 MAKLogger::DtLgrHlaEntityPublisher::myLastUpdateAcceleration
protected
DtVector MAKLogger::DtLgrHlaEntityPublisher::myLastUpdateLocation
protected
DtTaitBryan MAKLogger::DtLgrHlaEntityPublisher::myLastUpdateOrientation
protected
DtVector32 MAKLogger::DtLgrHlaEntityPublisher::myLastUpdateRotVel
protected
DtVector32 MAKLogger::DtLgrHlaEntityPublisher::myLastUpdateVelocity
protected
DtLgrHlaEntityStateRepository* MAKLogger::DtLgrHlaEntityPublisher::myLgrEsr
protected
DtDeadReckonTypes MAKLogger::DtLgrHlaEntityPublisher::myOldDRType
protected
bool MAKLogger::DtLgrHlaEntityPublisher::myPaused
protected
DtBaseEntityStateRepository* MAKLogger::DtLgrHlaEntityPublisher::mySeenByAttrs
protected

Attributes as seen by others (i.e., last updated values)

bool MAKLogger::DtLgrHlaEntityPublisher::myUnpausedOnThisSend
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)