Class AlarmclockAgent.AlarmGoal

  • Enclosing class:
    AlarmclockAgent

    public static class AlarmclockAgent.AlarmGoal
    extends java.lang.Object
    Check alarm time and trigger notification if necessary.
    • Field Detail

      • alarm

        protected Alarm alarm
        The alarm to monitor.
    • Constructor Detail

      • AlarmGoal

        public AlarmGoal​(Alarm alarm)
        Create an alarm goal.
    • Method Detail

      • getAlarm

        public Alarm getAlarm()
        Get the alarm.
      • hashCode

        public int hashCode()
        Get the hash code.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test for equality.
        Overrides:
        equals in class java.lang.Object