|
AIM
|
#include <Clock.h>
Public Member Functions | |
| double | getTime () |
| double | getPreviousTime () |
| void | scheduleTimer (Timer timer) |
| void | clearTimers () |
| void | advanceToTime (double time) |
| AIMValue | getRequirement () const |
| bool | isRequirementUpdated (bool reset=true) const |
| void | setPreviousTime (double time) |
Clock class that is responsible for handling timer. This class needs the latest time as input. It handles the requiremenrt needed to set timers in AIM.
| void CoachingEngine::Clock::clearTimers | ( | ) |
Clear all timers. This might affect the requirement of the clock.
|
inline |
Return previous time of the clock.
| AIMValue CoachingEngine::Clock::getRequirement | ( | ) | const |
Returnthe requirement.
|
inline |
Return time of the clock.
| bool CoachingEngine::Clock::isRequirementUpdated | ( | bool | reset = true | ) | const |
Return wether the requirement has been updated since the last call to this function.
| reset | If false, don't reset whether the requirement has been updated. |
| void CoachingEngine::Clock::scheduleTimer | ( | Timer | timer | ) |
Schedule a new timer. This might affect the requirement of the clock.
| timer | the timer to be scheduled |
|
inline |
set the previous time