![]() |
VR-Forces 5.0.3 Developer's Guide
|
Description: The Exercise Clock keeps track of current simulated time. When 'ticked', it advances simulation time based on elapsed real time since the last time it was ticked and a time-multiplier that allows the exercise clock to run faster or slower than real-time. The exercise clock also supports a pause/resume capability.

Protected Types | |
| enum | FrameMode { FmRunToComplete, FmFixed, FmHybrid } |
Additional Inherited Members | |
Static Public Member Functions inherited from DtSimClock | |
| static DtTime | stringToSeconds (const DtString &timeString) |
| static DtString & | secondsToElapsedTimeString (DtTime seconds, DtString &strBuffer) |
| static DtString & | secondsToExerciseTimeString (DtTime seconds, DtString &strBuffer) |
| static void | secondsToDaysHoursMinutesSeconds (DtTime secondsInput, int &days, int &hours, int &minutes, DtTime &seconds) |
| static DtTime | daysHoursMinutesSecondsToSeconds (DtTime days, DtTime hours, DtTime minutes, DtTime seconds) |
| static bool | processElapsedTimeString (const char *input, int &numDigitsFound, int &value1, int &value2, int &value3, int &value4) |
|
protected |
| DtExerciseClock::DtExerciseClock | ( | ) |
default constructor
| DtExerciseClock::DtExerciseClock | ( | const DtExerciseClock & | orig | ) |
copy constructor
|
virtual |
destructor
| DtExerciseClock& DtExerciseClock::operator= | ( | const DtExerciseClock & | orig | ) |
assignment operator
|
virtual |
Initializes the clock - must be called before any other member functions are called.
Reimplemented in makVrf::DtHlaExerciseClock.
|
virtual |
Initialize the clock to 00:00:00 elapsed time.
|
virtual |
Advance simulation time, if not paused.
Reimplemented in makVrf::DtHlaExerciseClock.
|
virtual |
Tell tick() not to advance simulation time.
|
virtual |
Tells tick() to resume advancing simluation time.
|
inlinevirtual |
Returns true if system is paused, false otherwise.
References myPaused.
|
virtual |
Tells the exercise clock to use a best effort fixed frame (constant dT).
|
virtual |
|
virtual |
Go into variable frame (run to complete) mode.
|
virtual |
|
virtual |
Go into a hybrid mode of fixed dT run-to complete.
|
virtual |
|
virtual |
Change the value to be used in fixed frame or hybrid frame mode. This will have no effect in run to complete frame mode.
|
virtual |
Get the curent rate if in fixed frame or hybrid frame mode; otherwise, returns 0.0.
|
virtual |
Set faster or slower than real-time operation (the range of values for which the system will perform in a rational manner have yet to be determined.)
|
virtual |
Returns time multiplier, a real scalar.
|
virtual |
Sets the fast forward settings.
Returns elapsed time as a string in the form ddd:hh:mm:ss.
|
virtual |
Set exercise start time in seconds.
|
virtual |
Use this to get the time the exercise started, expressed in seconds.
|
virtual |
Returns current exercise time (exercise start time + elapsed time).
|
virtual |
|
virtual |
Force a dT value (if called after tick!); note - this does not update elapsed time.
|
virtual |
Returns dT, in seconds.
|
virtual |
|
inline |
|
virtual |
|
virtual |
Adds a callback to be called when the time multiplier changes.
|
virtual |
Removes a callback to be called when the time multiplier changes.
|
protected |
|
protected |
|
protected |
Referenced by isPaused().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |