Responsible for Alarm functions. More...
#include <Alarmable.h>

Protected Member Functions | |
| void | SubmitRegistration (float t, AlarmableManager::ALARM_ID id) |
| Called when wanting to start an alarm. | |
| void | SubmitDeregistration (AlarmableManager::ALARM_ID id) |
| Called when wanting to cancel an alarm. | |
Private Member Functions | |
| void | AddTime (AlarmableManager::ALARM_ID id, float f) |
| Adjusts the time of an alarm. | |
| bool | AlarmActive (AlarmableManager::ALARM_ID id) |
| Returns true if an alarm is active or pending registration. | |
| float | TimeUntil (AlarmableManager::ALARM_ID id) |
| Returns time until alarm activates. | |
| virtual void | Alarm0 () |
| virtual void | Alarm1 () |
| virtual void | Alarm2 () |
| virtual void | Alarm3 () |
| virtual void | Alarm4 () |
Responsible for Alarm functions.
|
private |
Adjusts the time of an alarm.
This function adds or subtracts time to a given alarm id. If time is subtracted past the remaining time, then the alarm will set itself off.
| id | |
| f |
|
privatevirtual |
|
privatevirtual |
|
privatevirtual |
|
privatevirtual |
|
privatevirtual |
|
private |
Returns true if an alarm is active or pending registration.
| id |
|
protected |
Called when wanting to cancel an alarm.
Example:
| id |
|
protected |
Called when wanting to start an alarm.
Use this function to specify the amount of time you want for your alarm as well as its given id.
Example:
| t | |
| id |
|
private |
Returns time until alarm activates.
Returns -1 if an alarm is not currently active.
| t | |
| id |