org.powertac.householdcustomer.persons
Class MostlyPresentPerson

java.lang.Object
  extended by org.powertac.householdcustomer.persons.Person
      extended by org.powertac.householdcustomer.persons.MostlyPresentPerson

public class MostlyPresentPerson
extends Person

This is the instance of the person type that spents most of its time inside the house. Such types are children or elderly people. These persons don't work at all, so they have more 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
MostlyPresentPerson()
           
 
Method Summary
 void initialize(String AgentName, Properties conf, Vector<Integer> publicVacationVector, int seed)
          This is the initialization function.
 void refresh(Properties conf)
          At the end of each week the person models refresh their schedule.
 void showInfo()
          This is the function utilized to show the information regarding the person in question, its variables values etc.
 
Methods inherited from class org.powertac.householdcustomer.persons.Person
fillDailyRoutine, getDailyRoutine, getWeeklyRoutine, setMemberOf, test, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MostlyPresentPerson

public MostlyPresentPerson()
Method Detail

initialize

public void initialize(String AgentName,
                       Properties conf,
                       Vector<Integer> publicVacationVector,
                       int seed)
Description copied from class: Person
This is the initialization function. It uses the variable values for the configuration file to create the person as it should for this type.

Overrides:
initialize in class Person

showInfo

public void showInfo()
Description copied from class: Person
This is the function utilized to show the information regarding the person in question, its variables values etc.

Overrides:
showInfo in class Person

refresh

public void refresh(Properties conf)
Description copied from class: Person
At 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.

Overrides:
refresh in class Person


Copyright © 2013 Power TAC. All Rights Reserved.