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 RandomSeedRepo |
randomSeedRepo |
| Constructor and Description |
|---|
Person() |
| Modifier and Type | Method and Description |
|---|---|
void |
fillDailyRoutine(int day,
double vacationAbsence)
This function fills out the daily routine of the person, taking into
account the different variables and occupations, if he is sick or working
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(Household house)
This function sets the household in which the person is living in.
|
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 RandomSeedRepo randomSeedRepo
public void initialize(String AgentName, Properties conf, Vector<Integer> publicVacationVector, int seed)
AgentName - conf - publicVacationVector - seed - public Vector<Vector<Status>> getWeeklyRoutine()
public Vector<Status> getDailyRoutine()
public void setMemberOf(Household house)
public void fillDailyRoutine(int day,
double vacationAbsence)
day - vacationAbsence - public void showInfo()
public void refresh(Properties config)
config - public void test()
Copyright © 2017 Power TAC. All rights reserved.