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 Attributes
MAKLogger::DtLgrHlaTimeProvider Class Reference

A Time provider that supports Wall clock time and time management. More...

+ Inheritance diagram for MAKLogger::DtLgrHlaTimeProvider:
+ Collaboration diagram for MAKLogger::DtLgrHlaTimeProvider:

Public Member Functions

 DtLgrHlaTimeProvider (DtLgrHlaSimulationManager *simManager)
 CTOR. More...
 
virtual ~DtLgrHlaTimeProvider ()
 DTOR. More...
 
virtual bool enableTimeConstrained ()
 Enables HLA time constrained mode for the federate. More...
 
virtual bool disableTimeConstrained ()
 Disable HLA time constrained mode. More...
 
virtual bool isTimeConstrained () const
 Is federate currently time constrained? More...
 
virtual void tick ()
 Increase time advance this will use wall clock time to update the advance. More...
 
virtual void resetTick ()
 Reset the clock as if the last tick happened now (with the current time) More...
 
virtual DtTime currentTime () const
 Get the current time. More...
 
virtual DtTime elapsedTime () const
 Get the elapsed time since the last tick. More...
 
virtual DtTime timeOffset () const
 Get the time offset. More...
 
virtual void setLookahead (double lookaheadToUse)
 Set the lookahead used to advance time if regulating and value > 0.0. More...
 
- Public Member Functions inherited from MAKLogger::DtTimeProvider
 DtTimeProvider ()
 CTOR. More...
 
virtual ~DtTimeProvider ()
 DTOR. More...
 
virtual DtTime timeAdvanced () const
 Get the time advanced as a result of the last tick. More...
 
virtual void setTimeAdvanced (DtTime timeValue)
 Set the time advanced as a result of the last tick. More...
 

Protected Attributes

DtLgrHlaSimulationManagermySimManager
 
DtClock myClock
 
DtTime myTimeAdvance
 
DtTime myLastAbsTime
 
double myLookahead
 
- Protected Attributes inherited from MAKLogger::DtTimeProvider
DtTime myTimeAdvance
 

Detailed Description

A Time provider that supports Wall clock time and time management.

Constructor & Destructor Documentation

MAKLogger::DtLgrHlaTimeProvider::DtLgrHlaTimeProvider ( DtLgrHlaSimulationManager simManager)

CTOR.

virtual MAKLogger::DtLgrHlaTimeProvider::~DtLgrHlaTimeProvider ( )
virtual

DTOR.

Member Function Documentation

virtual DtTime MAKLogger::DtLgrHlaTimeProvider::currentTime ( ) const
virtual

Get the current time.

Implements MAKLogger::DtTimeProvider.

virtual bool MAKLogger::DtLgrHlaTimeProvider::disableTimeConstrained ( )
virtual

Disable HLA time constrained mode.

Federate is free to advance time independent of the federation. This call will repeatedly call drainInput on the exConn until time constrained status is disabled.

virtual DtTime MAKLogger::DtLgrHlaTimeProvider::elapsedTime ( ) const
virtual

Get the elapsed time since the last tick.

Implements MAKLogger::DtTimeProvider.

virtual bool MAKLogger::DtLgrHlaTimeProvider::enableTimeConstrained ( )
virtual

Enables HLA time constrained mode for the federate.

You must call this before making any calls to advanceFedTime(). This call will repeatedly call drainInput on the exConn until time constrained status is granted.

virtual bool MAKLogger::DtLgrHlaTimeProvider::isTimeConstrained ( ) const
virtual

Is federate currently time constrained?

virtual void MAKLogger::DtLgrHlaTimeProvider::resetTick ( )
virtual

Reset the clock as if the last tick happened now (with the current time)

Implements MAKLogger::DtTimeProvider.

virtual void MAKLogger::DtLgrHlaTimeProvider::setLookahead ( double  lookaheadToUse)
virtual

Set the lookahead used to advance time if regulating and value > 0.0.

virtual void MAKLogger::DtLgrHlaTimeProvider::tick ( )
virtual

Increase time advance this will use wall clock time to update the advance.

Implements MAKLogger::DtTimeProvider.

virtual DtTime MAKLogger::DtLgrHlaTimeProvider::timeOffset ( ) const
virtual

Get the time offset.

Implements MAKLogger::DtTimeProvider.

Member Data Documentation

DtClock MAKLogger::DtLgrHlaTimeProvider::myClock
protected
DtTime MAKLogger::DtLgrHlaTimeProvider::myLastAbsTime
protected
double MAKLogger::DtLgrHlaTimeProvider::myLookahead
protected
DtLgrHlaSimulationManager* MAKLogger::DtLgrHlaTimeProvider::mySimManager
protected
DtTime MAKLogger::DtLgrHlaTimeProvider::myTimeAdvance
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)