![]() |
MAK Data Logger API Documentation for HLA
|
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 | |
| DtLgrHlaSimulationManager * | mySimManager |
| DtClock | myClock |
| DtTime | myTimeAdvance |
| DtTime | myLastAbsTime |
| double | myLookahead |
Protected Attributes inherited from MAKLogger::DtTimeProvider | |
| DtTime | myTimeAdvance |
A Time provider that supports Wall clock time and time management.
| MAKLogger::DtLgrHlaTimeProvider::DtLgrHlaTimeProvider | ( | DtLgrHlaSimulationManager * | simManager | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Get the current time.
Implements MAKLogger::DtTimeProvider.
|
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 |
Get the elapsed time since the last tick.
Implements MAKLogger::DtTimeProvider.
|
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 |
Is federate currently time constrained?
|
virtual |
Reset the clock as if the last tick happened now (with the current time)
Implements MAKLogger::DtTimeProvider.
|
virtual |
Set the lookahead used to advance time if regulating and value > 0.0.
|
virtual |
Increase time advance this will use wall clock time to update the advance.
Implements MAKLogger::DtTimeProvider.
|
virtual |
Get the time offset.
Implements MAKLogger::DtTimeProvider.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |