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::DtLgrHlaAggregatePublisher Class Reference

An HLA Entity publisher. More...

+ Inheritance diagram for MAKLogger::DtLgrHlaAggregatePublisher:
+ Collaboration diagram for MAKLogger::DtLgrHlaAggregatePublisher:

Public Member Functions

 DT_VIRTUAL_CTR_DEFAULTS (DtLgrHlaAggregatePublisher,(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 ~DtLgrHlaAggregatePublisher()
 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)
 Sends an update containing values for all attributes requested since last call to this function. 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 DtHlaObjectWithStateRep * pubHlaObject ()
 Get the object's hlaObject from the actual publisher class. 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 setPauseUpdateAttributes (double &scale)
 Set frozen and DR algorithm based on pause state Adjust scale to last scale value if paused. 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 sendTheseAttrs (const RTI::AttributeHandleSet &attrs, double scale, bool isStatic)
 Send an update containing the given attributes. More...
 
virtual void send (DtStateMsg &msg)
 
 DtLgrHlaAggregatePublisher (const DtLgrHlaAggregatePublisher &other)
 Copy CTOR – Not Implemented. More...
 
DtLgrHlaAggregatePublisheroperator= (const DtLgrHlaAggregatePublisher &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...
 
DtLgrHlaAggregateStateRepositorymyLgrAsr
 
DtDeadReckoner * myDeadReckoner
 
double myLastTimeScale
 
bool myFrozenBeforePause
 
bool myPaused
 
bool myUnpausedOnThisSend
 
DtDeadReckonTypes myOldDRType
 
bool myDRTypeChanged
 
double myHeartbeatInterval
 
double myLastHeartbeatTime
 
DtVector32 myLastUpdateVelocity
 
DtVector32 myLastUpdateAcceleration
 
DtVector32 myLastUpdateRotVel
 
DtTaitBryan myLastUpdateOrientation
 
DtVector myLastUpdateLocation
 
- 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::DtLgrHlaAggregatePublisher::DtLgrHlaAggregatePublisher ( const DtLgrHlaAggregatePublisher other)
protected

Copy CTOR – Not Implemented.

Member Function Documentation

MAKLogger::DtLgrHlaAggregatePublisher::DT_VIRTUAL_CTR_DEFAULTS ( DtLgrHlaAggregatePublisher  ,
(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::DtLgrHlaAggregatePublisher::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::DtLgrHlaAggregatePublisher::objPublisher ( )
virtual

Return reference to this instance as an object publisher.

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

Assignment Operator – Not Implemented.

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

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

Implements MAKLogger::DtLgrPublisherInterface.

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

Get the publishing regions.

Implements MAKLogger::DtLgrPublisherInterface.

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

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

Implements MAKLogger::DtLgrPublisherInterface.

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

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

virtual void MAKLogger::DtLgrHlaAggregatePublisher::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::DtLgrHlaAggregatePublisher::sendUpdateAtScaleChangePoint ( double  oldScale,
double  newScale,
bool  wasStatic,
bool  isStatic 
)
virtual

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

Implements MAKLogger::DtLgrPublisherInterface.

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

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

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

Set the DtDDMRegionSet to play back to.

Implements MAKLogger::DtLgrPublisherInterface.

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

Sends needed attributes.

Implements MAKLogger::DtLgrPublisherInterface.

virtual void MAKLogger::DtLgrHlaAggregatePublisher::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::DtLgrHlaAggregatePublisher::myAttrsToSend
protected

Attributes to send in update.

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

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

bool MAKLogger::DtLgrHlaAggregatePublisher::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)