#include <Alarmable.h>
◆ Alarmable() [1/2]
◆ ~Alarmable()
Alarmable::~Alarmable |
( |
| ) |
|
|
virtual |
◆ Alarmable() [2/2]
◆ AddTime()
Adds a time to 'id'.
- Author
- Jack Campbell
- Date
- 3/12/2017
- Parameters
-
t | The float to process. |
id | The identifier. |
- Returns errcode::failure if id is not registered. Otherwise deregisters the alarm and registers with the time left plus the added time
- Returns
- An errcode.
◆ AlarmDeregistration()
◆ AlarmRegistration()
◆ ChangeTime()
Change time.
- Author
- Jack Campbell
- Date
- 3/12/2017
- Parameters
-
t | The float to process. |
id | The identifier. |
- Returns errcode::failure if id is not registered. Otherwise deregisters the alarm and registers with the new time.
- Returns
- An errcode.
◆ GetDeletionIter()
◆ IsRegistered()
Query if 'id' is registered.
- Author
- Jack Campbell
- Date
- 3/12/2017
- Parameters
-
- Returns whether the alarm at the ID is currently set to fire or not.
- Returns
- True if registered, false if not.
◆ operator=()
◆ SetDeletionIter()
◆ SetRegistrationState()
◆ SubtractTime()
Subtract time.
- Author
- Jack Campbell
- Date
- 3/12/2017
- Parameters
-
t | The float to process. |
id | The identifier. |
- Returns errcode::failure if id is not registered. Otherwise deregisters the alarm and registers with the time left minues the subtracted time
- Returns
- An errcode.
◆ TimeLeft()
Time left on one of the alarms.
- Author
- Jack Campbell
- Date
- 3/12/2017
- Parameters
-
- You can use this method to query how much time remains on a registered alarm. Calling this on a deregistered alarm returns 0.
- Returns
- A float.
◆ TriggerAlarm()
◆ AlarmableManager
◆ AlarmDeregistrationCommand
◆ AlarmRegistrationCommand
◆ RegData
The documentation for this class was generated from the following files: