public class Person extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.logging.log4j.Logger |
log
logger for trace logging -- use log.info(), log.warn(), and log.error()
appropriately.
|
protected org.powertac.common.repo.RandomSeedRepo |
randomSeedRepo |
| Constructor and Description |
|---|
Person() |
| Modifier and Type | Method and Description |
|---|---|
void |
fillDailyRoutine(int day)
This function fills out the daily routine of the person, taking into
account the different variables and occupations, if he is sick or on
vacation etc.
|
Vector<Status> |
getDailyRoutine()
This function returns the daily routine of a person.
|
Vector<Vector<Status>> |
getWeeklyRoutine()
This function returns the weekly routine of a person.
|
void |
initialize(String AgentName,
Properties conf,
Vector<Integer> publicVacationVector,
int seed)
This is the initialization function.
|
void |
refresh(Properties config)
At the end of each week the person models refresh their schedule.
|
void |
setMemberOf(Office house)
This function sets the office in which the person is working on.
|
void |
showInfo()
This is the function utilized to show the information regarding the person
in question, its variables values etc.
|
void |
test() |
String |
toString() |
protected static org.apache.logging.log4j.Logger log
@Autowired protected org.powertac.common.repo.RandomSeedRepo randomSeedRepo
public void initialize(String AgentName, Properties conf, Vector<Integer> publicVacationVector, int seed)
AgentName - conf - publicVacationVector - gen - public Vector<Vector<Status>> getWeeklyRoutine()
public Vector<Status> getDailyRoutine()
public void setMemberOf(Office house)
public void fillDailyRoutine(int day)
day - vacationAbsence - gen - public void showInfo()
public void test()
public void refresh(Properties config)
conf - gen - Copyright © 2016 Power TAC. All Rights Reserved.