Class AlarmclockAgent


  • public class AlarmclockAgent
    extends java.lang.Object
    Alarm clock that notifies on alarm.
    • Field Detail

      • settingsfile

        protected java.lang.String settingsfile
        The filename of the alarm clock settings.
      • settings

        protected Settings settings
        The loaded settings.
      • alarms

        protected java.util.Set<Alarm> alarms
        The alarms that have been set.
    • Constructor Detail

      • AlarmclockAgent

        public AlarmclockAgent()
    • Method Detail

      • getSettings

        public Settings getSettings()
        Get the settings.
      • setSettings

        public void setSettings​(Settings settings)
        Set the settings and update the alarms.
      • getGui

        public ClockFrame getGui()
        Get the gui.
      • addAlarm

        public void addAlarm​(Alarm alarm)
        Add an alarm.
      • removeAlarm

        public void removeAlarm​(Alarm alarm)
        Remove an alarm.
      • getAlarms

        public Alarm[] getAlarms()
        Get the alarms