decisionMakingSystem
Class ScheduleEntry

Package class diagram package ScheduleEntry
java.lang.Object
  extended by decisionMakingSystem.ScheduleEntry
All Implemented Interfaces:
Serializable

public class ScheduleEntry
extends Object
implements Serializable

This structure is used to store the schedule entries, example: when we want agent to go to school for few months we add to the planing.xml a record with:
intention = IStudy
weeks = list of intervals of weeks -> (0-12) will tell him to go there for first 3 months
executionTimes - [(1, 1, 1.0) ; (2, 2, 0.5) ; (4, 3, 0)] will say, that bot studies every monday morning, tuesday afternoon on fifty percent and is not studying thursday evenings (though this is implicit and doesn't have to be included)

Author:
Ondrej
See Also:
Serialized Form

Field Summary
 String intention
           
 
Method Summary
 double probabilityOfPerformance(int day, int part, int week)
          Return probability of the execution in the given time
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

intention

public String intention
Method Detail

probabilityOfPerformance

public double probabilityOfPerformance(int day,
                                       int part,
                                       int week)
Return probability of the execution in the given time

Parameters:
day - - day of the week
part - - part of the day -> 0: all day, 1: morning, 2: afternoon, 3: evening
week - - week from the beginning of the simulation
Returns:

toString

public String toString()
Overrides:
toString in class Object


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