Package jadex.bdiv3.examples.alarmclock
Class AlarmclockAgent
- java.lang.Object
- 
- jadex.bdiv3.examples.alarmclock.AlarmclockAgent
 
- 
 public class AlarmclockAgent extends java.lang.ObjectAlarm clock that notifies on alarm.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAlarmclockAgent.AlarmGoalCheck alarm time and trigger notification if necessary.static classAlarmclockAgent.NotifyGoalNotify about an alarmstatic classAlarmclockAgent.PlaySongGoalPlay a song
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Set<Alarm>alarmsThe alarms that have been set.protected ClockFrameguiThe gui.protected SettingssettingsThe loaded settings.protected java.lang.StringsettingsfileThe filename of the alarm clock settings.
 - 
Constructor SummaryConstructors Constructor Description AlarmclockAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlarm(Alarm alarm)Add an alarm.IFuture<java.lang.Void>body(IInternalAccess agent)Start the agentAlarm[]getAlarms()Get the alarmsClockFramegetGui()Get the gui.SettingsgetSettings()Get the settings.voidremoveAlarm(Alarm alarm)Remove an alarm.voidsetSettings(Settings settings)Set the settings and update the alarms.
 
- 
- 
- 
Field Detail- 
settingsfileprotected java.lang.String settingsfile The filename of the alarm clock settings.
 - 
settingsprotected Settings settings The loaded settings.
 - 
guiprotected ClockFrame gui The gui.
 - 
alarmsprotected java.util.Set<Alarm> alarms The alarms that have been set.
 
- 
 - 
Method Detail- 
bodypublic IFuture<java.lang.Void> body(IInternalAccess agent) Start the agent
 - 
getSettingspublic Settings getSettings() Get the settings.
 - 
setSettingspublic void setSettings(Settings settings) Set the settings and update the alarms.
 - 
getGuipublic ClockFrame getGui() Get the gui.
 - 
addAlarmpublic void addAlarm(Alarm alarm) Add an alarm.
 - 
removeAlarmpublic void removeAlarm(Alarm alarm) Remove an alarm.
 - 
getAlarmspublic Alarm[] getAlarms() Get the alarms
 
- 
 
-