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 | Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
MAKLogger::DtLgrHlaSimInput Class Reference

HLA specific simulation input. More...

+ Inheritance diagram for MAKLogger::DtLgrHlaSimInput:
+ Collaboration diagram for MAKLogger::DtLgrHlaSimInput:

Classes

class  DtStateAndDecoder
 

Public Member Functions

virtual ~DtLgrHlaSimInput ()
 
virtual void activateImplementation ()
 Perform protocol-specific activation. More...
 
virtual void deactivateImplementation ()
 Perform protocol-specific activation. More...
 
virtual void connecting ()
 Called before being connected to a simulation. More...
 
virtual void disconnecting ()
 Called before being disconnected from a simulation. More...
 
virtual const DtMessageIOInfoinfo () const
 Return the message info. More...
 
virtual void tick ()
 Perform any periodic processing. More...
 
virtual void subscribe ()
 Subscribe classes and install callbacks. More...
 
virtual void unsubscribe ()
 Unsubscribe classes and remove callbacks. More...
 
- Public Member Functions inherited from MAKLogger::DtLgrSimInput
virtual ~DtLgrSimInput ()
 DTOR to clean up any resources. More...
 
virtual void activate ()
 Activate the input. More...
 
virtual bool isActivated () const
 Get whether the output is active. More...
 
virtual void deactivate ()
 Activate the input. More...
 
virtual void startReadMessages ()
 Called at the beginning of a read operation. More...
 
virtual void setClock (DtLgrClock *clockToUse)
 Set the clock to use for time. More...
 
virtual DtAbsoluteTime inputTime () const
 Get the current input time. More...
 
virtual void getNextMessages (DtMessageBuffer &)
 Get the next messages received. More...
 
virtual void dropNextMessages ()
 Called to drop messages from the current read operation. More...
 
virtual bool receivedPackets ()
 Have you received packets since last call. More...
 
virtual DtLgrEntityTrackerentityTracker ()
 
virtual void initializeTracker (DtLgrBaseSimManager *manager)
 
virtual DtLgrClockclock ()
 Get the clock used for time. More...
 
virtual const DtLgrClockclock () const
 Get the clock used for time. More...
 
- Public Member Functions inherited from MAKLogger::DtMessageInput
virtual ~DtMessageInput ()
 
virtual void startReadMessages (DtAbsoluteTime timeToRead)
 Called at the beginning of a read operation. More...
 
virtual void stopReadMessages ()
 Called at the end of a read operation. More...
 
virtual void setStopReadingTimeBoundary (bool inclusive)
 The stop reading time (set by startReadMessages may be inclusive or exclusive. More...
 
virtual bool stopReadingBoundary () const
 Get the current stop reading boundary setting. More...
 
virtual void setTimeLimit (double limit)
 Set the time limit on reads during playback. More...
 
virtual void insertPacket (DtPacket *packet)
 Insert a packet into the input stream. More...
 

Static Public Member Functions

static void decodeIsPartOf_RPR_20014 (DtBaseEntityStateRepository *stateRep, const RTI::AttributeHandleValuePairSet &attrs, int pairSetIndex)
 

Protected Types

typedef std::map
< RTI::ObjectInstanceHandle,
DtLgrHlaHandle
ObjectInstanceMap
 
typedef std::map< DtString,
RTI::ObjectInstanceHandle > 
NameObjectInstanceMap
 
typedef std::map< DtHlaObject
*, DtAbsoluteTime
TimeoutByObjectMap
 
typedef std::set< DtHlaObject * > HlaObjectSet
 
typedef std::map
< DtAbsoluteTime, HlaObjectSet
TimeoutByTimeMap
 
typedef std::shared_ptr
< DtStateRepository > 
DtStateRepositorySP
 
typedef std::shared_ptr
< DtGenericAttributeDecoder > 
DtGenericAttributeDecoderSP
 

Protected Member Functions

virtual int getInteractionRegionSet (const DtInteraction *interaction, DtRegionDescSet &regionSet)
 Get the region set from a receive interactions Return the number of regions in the set. More...
 
virtual int getObjectRegionSet (DtRegionDescSet &regionSet)
 Get the region set from an object reflection Return the number of regions in the set. More...
 
virtual void startListening ()
 Protocol specific processing when listening starts. More...
 
virtual void stopListening ()
 Protocol specific processing when listening stops. More...
 
virtual bool evaluateTrafficAnalyzerFilters (const DtHlaObject &obj) const
 Evaluate the traffic analyzer filters using the given object Return bool: object matched filter? More...
 
virtual void localDeleteObjectForRefresh (DtHlaObject *object)
 Locally delete an object so that it can be rediscovered. More...
 
void checkRefresh ()
 Check and process entities that need to be refreshed. More...
 
void checkTimeouts ()
 Check and process entities that need to be timed out. More...
 
void removeTimeout (DtHlaObject *object)
 Remove the timeout for the given object. More...
 
- Protected Member Functions inherited from MAKLogger::DtLgrSimInput
 DtLgrSimInput (DtLgrSimManager &manager)
 CTOR is protected since sub class will be the final object. More...
 
virtual DtPacketcreatePacket (size_t size, DtPacket::DtPacketType type)
 Creates an empty packet suitable for writing data into. The packet also is added to an internal buffer. More...
 
virtual void receivePacket (DtPacket *packet)
 Called internally to add a packet to a receive buffer. More...
 
virtual void filterPacket (DtPacket *packet)
 Filter. More...
 
- Protected Member Functions inherited from MAKLogger::DtMessageInput
 DtMessageInput ()
 

Protected Attributes

DtLgrHlaSimulationManagermyHlaManager
 
TimeoutByObjectMap myTimeoutTimeByObject
 
TimeoutByTimeMap myTimeoutByTime
 
std::map< DtHlaObject
*, DtStateAndDecoder
myStateAndDecoders
 State and decorders used for traffic analyzer filtering. More...
 
ObjectInstanceMap myObjectInstanceMap
 
NameObjectInstanceMap myNameObjectInstanceMap
 
DtLgrHlaHandle myFreeInstanceHandle
 
DtLgrHlaMessageIOInfomyInfo
 
bool myListening
 
- Protected Attributes inherited from MAKLogger::DtLgrSimInput
bool myReceivePacketsFlag
 
DtMessageBuffermyReceiveBuffer
 
DtSmartBuffermySmartBuffer
 
DtLgrSimManagermyManager
 
bool myActivateFlag
 
DtLgrClockmyClock
 
- Protected Attributes inherited from MAKLogger::DtMessageInput
DtAbsoluteTime myCurrentTime
 
bool myStopReadingBoundary
 
double myTimeLimit
 
double myNextPacketTime
 
DtMessageBuffer myInsertBuffer
 
static void discoverObjCb (DtHlaObject *object, void *usr)
 Callback for when objects are discovered. More...
 
virtual void discoverObject (DtHlaObject *object)
 Callback for when objects are discovered. More...
 
static void removeObjCb (DtHlaObject *object, void *usr)
 Callback for when objects are removed. More...
 
virtual void removeObject (DtHlaObject *object, bool updateTimeout=true)
 Callback for when objects are removed. More...
 
static void reflectCb (const DtStateMsg &msg, DtHlaObject *obj, void *usr)
 Callback for when object updates are reflected. More...
 
virtual void reflect (const DtStateMsg &msg, DtHlaObject *obj)
 Callback for when object updates are reflected. More...
 
static void receiveInterCb (DtInteraction *inter, void *usr)
 Callback for when interactions are received. More...
 
virtual void receiveInteraction (const DtInteraction *interaction)
 Callback for when interactions are received. More...
 

Additional Inherited Members

- Static Protected Attributes inherited from MAKLogger::DtLgrSimInput
static const int theSmartBufferSize = 65536
 

Detailed Description

HLA specific simulation input.

This class reads HLA messages from a simulation and creates packets.

Member Typedef Documentation

typedef std::shared_ptr<DtGenericAttributeDecoder> MAKLogger::DtLgrHlaSimInput::DtGenericAttributeDecoderSP
protected
typedef std::shared_ptr<DtStateRepository> MAKLogger::DtLgrHlaSimInput::DtStateRepositorySP
protected
typedef std::set<DtHlaObject*> MAKLogger::DtLgrHlaSimInput::HlaObjectSet
protected
typedef std::map<DtString, RTI::ObjectInstanceHandle> MAKLogger::DtLgrHlaSimInput::NameObjectInstanceMap
protected
typedef std::map<RTI::ObjectInstanceHandle,DtLgrHlaHandle> MAKLogger::DtLgrHlaSimInput::ObjectInstanceMap
protected
typedef std::map<DtHlaObject*, DtAbsoluteTime> MAKLogger::DtLgrHlaSimInput::TimeoutByObjectMap
protected

Constructor & Destructor Documentation

virtual MAKLogger::DtLgrHlaSimInput::~DtLgrHlaSimInput ( )
virtual

Member Function Documentation

virtual void MAKLogger::DtLgrHlaSimInput::activateImplementation ( )
virtual

Perform protocol-specific activation.

Implements MAKLogger::DtLgrSimInput.

void MAKLogger::DtLgrHlaSimInput::checkRefresh ( )
protected

Check and process entities that need to be refreshed.

void MAKLogger::DtLgrHlaSimInput::checkTimeouts ( )
protected

Check and process entities that need to be timed out.

virtual void MAKLogger::DtLgrHlaSimInput::connecting ( )
virtual

Called before being connected to a simulation.

Implements MAKLogger::DtLgrSimInput.

virtual void MAKLogger::DtLgrHlaSimInput::deactivateImplementation ( )
virtual

Perform protocol-specific activation.

Implements MAKLogger::DtLgrSimInput.

static void MAKLogger::DtLgrHlaSimInput::decodeIsPartOf_RPR_20014 ( DtBaseEntityStateRepository *  stateRep,
const RTI::AttributeHandleValuePairSet &  attrs,
int  pairSetIndex 
)
static
virtual void MAKLogger::DtLgrHlaSimInput::disconnecting ( )
virtual

Called before being disconnected from a simulation.

Implements MAKLogger::DtLgrSimInput.

static void MAKLogger::DtLgrHlaSimInput::discoverObjCb ( DtHlaObject *  object,
void *  usr 
)
staticprotected

Callback for when objects are discovered.

virtual void MAKLogger::DtLgrHlaSimInput::discoverObject ( DtHlaObject *  object)
protectedvirtual

Callback for when objects are discovered.

virtual bool MAKLogger::DtLgrHlaSimInput::evaluateTrafficAnalyzerFilters ( const DtHlaObject &  obj) const
protectedvirtual

Evaluate the traffic analyzer filters using the given object Return bool: object matched filter?

virtual int MAKLogger::DtLgrHlaSimInput::getInteractionRegionSet ( const DtInteraction interaction,
DtRegionDescSet regionSet 
)
protectedvirtual

Get the region set from a receive interactions Return the number of regions in the set.

virtual int MAKLogger::DtLgrHlaSimInput::getObjectRegionSet ( DtRegionDescSet regionSet)
protectedvirtual

Get the region set from an object reflection Return the number of regions in the set.

virtual const DtMessageIOInfo* MAKLogger::DtLgrHlaSimInput::info ( ) const
virtual

Return the message info.

Implements MAKLogger::DtMessageInput.

virtual void MAKLogger::DtLgrHlaSimInput::localDeleteObjectForRefresh ( DtHlaObject *  object)
protectedvirtual

Locally delete an object so that it can be rediscovered.

virtual void MAKLogger::DtLgrHlaSimInput::receiveInteraction ( const DtInteraction interaction)
protectedvirtual

Callback for when interactions are received.

static void MAKLogger::DtLgrHlaSimInput::receiveInterCb ( DtInteraction inter,
void *  usr 
)
staticprotected

Callback for when interactions are received.

virtual void MAKLogger::DtLgrHlaSimInput::reflect ( const DtStateMsg &  msg,
DtHlaObject *  obj 
)
protectedvirtual

Callback for when object updates are reflected.

static void MAKLogger::DtLgrHlaSimInput::reflectCb ( const DtStateMsg &  msg,
DtHlaObject *  obj,
void *  usr 
)
staticprotected

Callback for when object updates are reflected.

static void MAKLogger::DtLgrHlaSimInput::removeObjCb ( DtHlaObject *  object,
void *  usr 
)
staticprotected

Callback for when objects are removed.

virtual void MAKLogger::DtLgrHlaSimInput::removeObject ( DtHlaObject *  object,
bool  updateTimeout = true 
)
protectedvirtual

Callback for when objects are removed.

void MAKLogger::DtLgrHlaSimInput::removeTimeout ( DtHlaObject *  object)
protected

Remove the timeout for the given object.

virtual void MAKLogger::DtLgrHlaSimInput::startListening ( )
protectedvirtual

Protocol specific processing when listening starts.

virtual void MAKLogger::DtLgrHlaSimInput::stopListening ( )
protectedvirtual

Protocol specific processing when listening stops.

virtual void MAKLogger::DtLgrHlaSimInput::subscribe ( )
virtual

Subscribe classes and install callbacks.

virtual void MAKLogger::DtLgrHlaSimInput::tick ( )
virtual

Perform any periodic processing.

Reimplemented from MAKLogger::DtMessageInput.

virtual void MAKLogger::DtLgrHlaSimInput::unsubscribe ( )
virtual

Unsubscribe classes and remove callbacks.

Member Data Documentation

DtLgrHlaHandle MAKLogger::DtLgrHlaSimInput::myFreeInstanceHandle
protected
DtLgrHlaSimulationManager& MAKLogger::DtLgrHlaSimInput::myHlaManager
protected
DtLgrHlaMessageIOInfo* MAKLogger::DtLgrHlaSimInput::myInfo
protected
bool MAKLogger::DtLgrHlaSimInput::myListening
protected
NameObjectInstanceMap MAKLogger::DtLgrHlaSimInput::myNameObjectInstanceMap
protected
ObjectInstanceMap MAKLogger::DtLgrHlaSimInput::myObjectInstanceMap
protected
std::map<DtHlaObject*, DtStateAndDecoder> MAKLogger::DtLgrHlaSimInput::myStateAndDecoders
protected

State and decorders used for traffic analyzer filtering.

TimeoutByTimeMap MAKLogger::DtLgrHlaSimInput::myTimeoutByTime
protected
TimeoutByObjectMap MAKLogger::DtLgrHlaSimInput::myTimeoutTimeByObject
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)