decisionMakingSystem
Class Scheduler

Package class diagram package Scheduler
java.lang.Object
  extended by decisionMakingSystem.Scheduler
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProbabilisticScheduler

public class Scheduler
extends Object
implements Serializable

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

Author:
Ondrej
See Also:
Serialized Form

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

allIntentions

protected ArrayList<Intention> allIntentions
all available intentions - loaded at the beginning


nameToIntention

protected HashMap<String,Intention> nameToIntention
just a mapping between the ArrayList and intentions, so we can access it a bit faster;)


log

protected transient Logger log
log


freeTime

protected ArrayList<Interval> freeTime
list of intervals, when a bot has some time during the day


freePartsOfTheDay

protected ArrayList<Boolean> freePartsOfTheDay
free part of the day - 0 morning, 1 afternoon, 2 evening


daySchedule

protected ArrayList<Intention> daySchedule
a day schedule, which is than returned


activityScheduling

protected ArrayList<ScheduleEntry> activityScheduling
entries from the planning.xml


extraScheduling

protected ArrayList<ScheduleEntry> extraScheduling
entries from the extraPlanning.xml which contains planning of less usual things like a weekend in the


rnd

protected Random rnd

agentsAlarm

protected int agentsAlarm
time (in minutes) when agent wakes up

Constructor Detail

Scheduler

public Scheduler(ArrayList<Intention> intentions,
                 Logger log,
                 String directory,
                 String planningFilename)
Parameters:
intentions -
log -
directory -

Scheduler

public Scheduler()
Method Detail

scheduleNewDay

public ArrayList<Intention> scheduleNewDay(int counter)
modifies the activation intervals of intentions stored in intentions => new day timetable


setLog

protected void setLog(Logger log)

changeLifestyle

public void changeLifestyle(String directory,
                            String planningFilename,
                            int alarm)
Changes the plan of the agent.

Parameters:
directory -
planningFilename -


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.