Package jadex.bdiv3.examples.alarmclock
Class AlarmclockAgent.AlarmGoal
- java.lang.Object
-
- jadex.bdiv3.examples.alarmclock.AlarmclockAgent.AlarmGoal
-
- Enclosing class:
- AlarmclockAgent
public static class AlarmclockAgent.AlarmGoal extends java.lang.Object
Check alarm time and trigger notification if necessary.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlarmclockAgent.AlarmGoal
checkCreate(Alarm alarm)
Creation condition for creating a goal for every alarm.boolean
equals(java.lang.Object obj)
Test for equality.Alarm
getAlarm()
Get the alarm.int
hashCode()
Get the hash code.
-
-
-
Field Detail
-
alarm
protected Alarm alarm
The alarm to monitor.
-
-
Constructor Detail
-
AlarmGoal
public AlarmGoal(Alarm alarm)
Create an alarm goal.
-
-
Method Detail
-
checkCreate
public static AlarmclockAgent.AlarmGoal checkCreate(Alarm alarm)
Creation condition for creating a goal for every alarm.
-
getAlarm
public Alarm getAlarm()
Get the alarm.
-
hashCode
public int hashCode()
Get the hash code.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Overrides:
equals
in classjava.lang.Object
-
-