Class RandomlyAbsentPerson
- java.lang.Object
-
- org.powertac.householdcustomer.persons.Person
-
- org.powertac.householdcustomer.persons.WorkingPerson
-
- org.powertac.householdcustomer.persons.RandomlyAbsentPerson
-
public class RandomlyAbsentPerson extends WorkingPerson
This is the instance of the person type that works in shifts that may vary form week to week or from month to month. The consequence is that he has little time for leisure activities.- Version:
- 1.5, Date: 2.25.12
- Author:
- Antonios Chrysopoulos
-
-
Field Summary
-
Fields inherited from class org.powertac.householdcustomer.persons.Person
log, randomSeedRepo
-
-
Constructor Summary
Constructors Constructor Description RandomlyAbsentPerson()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(String AgentName, Properties conf, Vector<Integer> publicVacationVector, int seed)This is the initialization function.voidrefresh(Properties conf)At the end of each week the person models refresh their schedule.-
Methods inherited from class org.powertac.householdcustomer.persons.WorkingPerson
showInfo
-
Methods inherited from class org.powertac.householdcustomer.persons.Person
fillDailyRoutine, getDailyRoutine, getWeeklyRoutine, setMemberOf, test, toString
-
-
-
-
Method Detail
-
initialize
public void initialize(String AgentName, Properties conf, Vector<Integer> publicVacationVector, int seed)
Description copied from class:PersonThis is the initialization function. It uses the variable values for the configuration file to create the person as it should for this type.- Overrides:
initializein classPerson
-
refresh
public void refresh(Properties conf)
Description copied from class:PersonAt the end of each week the person models refresh their schedule. This way we have a realistic and dynamic model, changing working hours, leisure activities and so on.
-
-