public class AlarmclockBDI
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AlarmclockBDI.AlarmGoal
Check alarm time and trigger notification if necessary.
|
static class |
AlarmclockBDI.NotifyGoal
Notify about an alarm
|
static class |
AlarmclockBDI.PlaySongGoal
Play a song
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Alarm> |
alarms
The alarms that have been set.
|
protected ClockFrame |
gui
The gui.
|
protected Settings |
settings
The loaded settings.
|
protected java.lang.String |
settingsfile
The filename of the alarm clock settings.
|
Constructor and Description |
---|
AlarmclockBDI() |
Modifier and Type | Method and Description |
---|---|
void |
addAlarm(Alarm alarm)
Add an alarm.
|
jadex.commons.future.IFuture<java.lang.Void> |
body(jadex.bridge.IInternalAccess agent)
Start the agent
|
Alarm[] |
getAlarms()
Get the alarms
|
ClockFrame |
getGui()
Get the gui.
|
Settings |
getSettings()
Get the settings.
|
void |
removeAlarm(Alarm alarm)
Remove an alarm.
|
void |
setSettings(Settings settings)
Set the settings and update the alarms.
|
protected java.lang.String settingsfile
protected Settings settings
protected ClockFrame gui
protected java.util.Set<Alarm> alarms
public jadex.commons.future.IFuture<java.lang.Void> body(jadex.bridge.IInternalAccess agent)
public Settings getSettings()
public void setSettings(Settings settings)
public ClockFrame getGui()
public void addAlarm(Alarm alarm)
public void removeAlarm(Alarm alarm)
public Alarm[] getAlarms()