![]() |
VR-Forces 4.0.4 Class Documentation
|
DtHlaClock is a clock that is capable of supporting HLA the time management concepts time-constrained and time-regulating. More...

Public Member Functions | |
| DtHlaExerciseClock (DtSimManager *simManager, DtExerciseConn *exerciseConn) | |
| constructor | |
| virtual | ~DtHlaExerciseClock () |
| destructor | |
| virtual void | init () |
| Initializes the clock - must be called before any other member functions are called. | |
| virtual void | tick () |
| If in time constrained mode, call advanceFedTime() to advance federation (logical) time by my_dT. | |
| virtual DtTime | fedTime () const |
| HLA federation (logical) time. | |
| virtual DtTime | lookahead () const |
| virtual DtTime | effectiveSimTime () const |
| virtual void | setInitialSimTime (DtTime time) |
| Set the initial simulation time (time recorded in a scenario file). | |
| virtual bool | enableTimeManagementMode (DtTime lookaheadInterval) |
| Returns whether or not exercise clock is in HLA time management mode (i.e. | |
| virtual bool | disableTimeManagementMode () |
| virtual bool | isInTimeManagementMode () const |
Static Public Member Functions | |
| static void | timeAdvanceGrantedCb (DtHlaTimeManagementControl *tmControl, void *usr) |
| Called when time advance request is granted by RTI. | |
Protected Member Functions | |
| virtual bool | startRegulatingTime (DtTime lookaheadInterval) |
| HLA time regulating mode. | |
| virtual bool | stopRegulatingTime () |
| virtual bool | isTimeRegulating () const |
| virtual bool | enableTimeConstrainedMode () |
| HLA time constrained mode. | |
| virtual bool | disableTimeConstrainedMode () |
| virtual bool | isTimeConstrained () const |
| virtual RTI::FedTime * | createFederationTime (DtTime time=0.0) const |
| virtual RTI::FedTime * | createFederationTimeInterval (DtTime time=0.0) const |
| virtual DtHlaTimeManagementControl * | createTimeManagementControl () const |
| Called by init() to create myTimeManagementControl member. | |
| virtual void | processTimeAdvanceGrantedCb (DtHlaTimeManagementControl *tmControl) |
| Updates myEffectiveFederationTime and sets this new time in the exercise connection. | |
| virtual void | processSetTimeMultiplier (const DtIfSetTimeMultiplier &timeMultiplerData) |
| Sets time multiplier with value given in message. | |
Protected Attributes | |
| DtExerciseConn * | myExerciseConn |
| DtHlaTimeManagementControl * | myTimeManagementControl |
| RTI::FedTime * | myInitialFederationTime |
| This time is set when simulation start time is set. | |
| DtTime | myInitialSimTime |
| RTI::FedTime * | myFederationTime |
| RTI::FedTime * | myEffectiveFederationTime |
| RTI::FedTime * | myLookahead |
Private Member Functions | |
| DtHlaExerciseClock (const DtHlaExerciseClock &orig) | |
| copy constructor - not implemented | |
| DtHlaExerciseClock & | operator= (const DtHlaExerciseClock &orig) |
| assignment operator - not implemented | |
DtHlaClock is a clock that is capable of supporting HLA the time management concepts time-constrained and time-regulating.
| DtHlaExerciseClock::DtHlaExerciseClock | ( | DtSimManager * | simManager, |
| DtExerciseConn * | exerciseConn | ||
| ) |
constructor
| virtual DtHlaExerciseClock::~DtHlaExerciseClock | ( | ) | [virtual] |
destructor
| DtHlaExerciseClock::DtHlaExerciseClock | ( | const DtHlaExerciseClock & | orig | ) | [private] |
copy constructor - not implemented
| virtual void DtHlaExerciseClock::init | ( | ) | [virtual] |
Initializes the clock - must be called before any other member functions are called.
Reimplemented from DtExerciseClock.
| virtual void DtHlaExerciseClock::tick | ( | ) | [virtual] |
If in time constrained mode, call advanceFedTime() to advance federation (logical) time by my_dT.
Reimplemented from DtExerciseClock.
| virtual DtTime DtHlaExerciseClock::fedTime | ( | ) | const [virtual] |
HLA federation (logical) time.
| virtual DtTime DtHlaExerciseClock::lookahead | ( | ) | const [virtual] |
| virtual DtTime DtHlaExerciseClock::effectiveSimTime | ( | ) | const [virtual] |
| virtual void DtHlaExerciseClock::setInitialSimTime | ( | DtTime | time | ) | [virtual] |
Set the initial simulation time (time recorded in a scenario file).
Initializes myInitialSimTime and myInitialFederationTime (if in time management mode). Then calls down to base class setSimTime().
| virtual bool DtHlaExerciseClock::enableTimeManagementMode | ( | DtTime | lookaheadInterval | ) | [virtual] |
Returns whether or not exercise clock is in HLA time management mode (i.e.
is time regulating and constrained).
| virtual bool DtHlaExerciseClock::disableTimeManagementMode | ( | ) | [virtual] |
| virtual bool DtHlaExerciseClock::isInTimeManagementMode | ( | ) | const [virtual] |
| static void DtHlaExerciseClock::timeAdvanceGrantedCb | ( | DtHlaTimeManagementControl * | tmControl, |
| void * | usr | ||
| ) | [static] |
Called when time advance request is granted by RTI.
| virtual bool DtHlaExerciseClock::startRegulatingTime | ( | DtTime | lookaheadInterval | ) | [protected, virtual] |
HLA time regulating mode.
Applications that expect to send interactions in time management mode should be time regulating.
| virtual bool DtHlaExerciseClock::stopRegulatingTime | ( | ) | [protected, virtual] |
| virtual bool DtHlaExerciseClock::isTimeRegulating | ( | ) | const [protected, virtual] |
| virtual bool DtHlaExerciseClock::enableTimeConstrainedMode | ( | ) | [protected, virtual] |
HLA time constrained mode.
| virtual bool DtHlaExerciseClock::disableTimeConstrainedMode | ( | ) | [protected, virtual] |
| virtual bool DtHlaExerciseClock::isTimeConstrained | ( | ) | const [protected, virtual] |
| virtual RTI::FedTime* DtHlaExerciseClock::createFederationTime | ( | DtTime | time = 0.0 | ) | const [protected, virtual] |
| virtual RTI::FedTime* DtHlaExerciseClock::createFederationTimeInterval | ( | DtTime | time = 0.0 | ) | const [protected, virtual] |
| virtual DtHlaTimeManagementControl* DtHlaExerciseClock::createTimeManagementControl | ( | ) | const [protected, virtual] |
Called by init() to create myTimeManagementControl member.
| virtual void DtHlaExerciseClock::processTimeAdvanceGrantedCb | ( | DtHlaTimeManagementControl * | tmControl | ) | [protected, virtual] |
Updates myEffectiveFederationTime and sets this new time in the exercise connection.
| virtual void DtHlaExerciseClock::processSetTimeMultiplier | ( | const DtIfSetTimeMultiplier & | timeMultiplerData | ) | [protected, virtual] |
Sets time multiplier with value given in message.
Override to disable and re-enable time management mode if necessary.
Reimplemented from DtExerciseClock.
| DtHlaExerciseClock& DtHlaExerciseClock::operator= | ( | const DtHlaExerciseClock & | orig | ) | [private] |
assignment operator - not implemented
DtExerciseConn* DtHlaExerciseClock::myExerciseConn [protected] |
RTI::FedTime* DtHlaExerciseClock::myInitialFederationTime [protected] |
This time is set when simulation start time is set.
Used to compute the current simulation time.
DtTime DtHlaExerciseClock::myInitialSimTime [protected] |
RTI::FedTime* DtHlaExerciseClock::myFederationTime [protected] |
RTI::FedTime* DtHlaExerciseClock::myEffectiveFederationTime [protected] |
RTI::FedTime* DtHlaExerciseClock::myLookahead [protected] |