public interface AlarmSystem
Input
.void setAlarm(java.lang.String name, int time, boolean repeat)
Input
.name
- The name for the alarm, used as the data by the Input.getEvent()
method and used by the user to stop an alarm.time
- Time, in milliseconds, before the alarm is raised.repeat
- If true, the alarm will repeat itself over and over again.void stopAlarm(java.lang.String name)
name
- The name of the alarm, provided as an argument
at setAlarm(String, int, boolean)
.