|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.ObjectdecisionMakingSystem.Scheduler
public class Scheduler
Scheduler creates everyday plans according to the information given in the planning.xml. It first schedules thinks like satisfying basic biological needs - eating, hygiene, etc. then some scheduled actions - like go to school on monday, thursday, friday, go to a training of frisbee three evenings etc. And after all it ends up with using the rest of the place for any planable action
| Field Summary | |
|---|---|
protected ArrayList<ScheduleEntry> |
activityScheduling
entries from the planning.xml |
protected int |
agentsAlarm
time (in minutes) when agent wakes up |
protected ArrayList<Intention> |
allIntentions
all available intentions - loaded at the beginning |
protected ArrayList<Intention> |
daySchedule
a day schedule, which is than returned |
protected ArrayList<ScheduleEntry> |
extraScheduling
entries from the extraPlanning.xml which contains planning of less usual things like a weekend in the |
protected ArrayList<Boolean> |
freePartsOfTheDay
free part of the day - 0 morning, 1 afternoon, 2 evening |
protected ArrayList<Interval> |
freeTime
list of intervals, when a bot has some time during the day |
protected Logger |
log
log |
protected HashMap<String,Intention> |
nameToIntention
just a mapping between the ArrayList and intentions, so we can access it a bit faster;) |
protected Random |
rnd
|
| Constructor Summary | |
|---|---|
Scheduler()
|
|
Scheduler(ArrayList<Intention> intentions,
Logger log,
String directory,
String planningFilename)
|
|
| Method Summary | |
|---|---|
void |
changeLifestyle(String directory,
String planningFilename,
int alarm)
Changes the plan of the agent. |
ArrayList<Intention> |
scheduleNewDay(int counter)
modifies the activation intervals of intentions stored in intentions => new day timetable |
protected void |
setLog(Logger log)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList<Intention> allIntentions
protected HashMap<String,Intention> nameToIntention
protected transient Logger log
protected ArrayList<Interval> freeTime
protected ArrayList<Boolean> freePartsOfTheDay
protected ArrayList<Intention> daySchedule
protected ArrayList<ScheduleEntry> activityScheduling
protected ArrayList<ScheduleEntry> extraScheduling
protected Random rnd
protected int agentsAlarm
| Constructor Detail |
|---|
public Scheduler(ArrayList<Intention> intentions,
Logger log,
String directory,
String planningFilename)
intentions - log - directory - public Scheduler()
| Method Detail |
|---|
public ArrayList<Intention> scheduleNewDay(int counter)
protected void setLog(Logger log)
public void changeLifestyle(String directory,
String planningFilename,
int alarm)
directory - planningFilename -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||