public class Household extends Object
| Modifier and Type | Field and Description |
|---|---|
Village |
householdOf
This variable is pointing to the village that this household is part of.
|
protected static org.apache.logging.log4j.Logger |
log
logger for trace logging -- use log.info(), log.warn(), and log.error()
appropriately.
|
| Constructor and Description |
|---|
Household() |
| Modifier and Type | Method and Description |
|---|---|
void |
findDominantAppliance()
This function returns the dominant appliance of the household.
|
Vector<Appliance> |
getAppliances()
This is a function that returns the appliances of the household.
|
Appliance |
getDominantAppliance()
This function returns the dominant appliance of the household.
|
double |
getDominantConsumption(int hour)
This is a function returning the dominant Consumption Load for a certain
hour.
|
Vector<Person> |
getMembers()
This is a function that returns the members of the household.
|
double |
getNonDominantConsumption(int hour)
This is a function returning the non dominant Consumption Load for a
certain hour.
|
int |
getWeek()
This is a function that returns the week of refresh.
|
void |
initialize(String HouseName,
Properties conf,
Vector<Integer> publicVacationVector,
int seed)
This is the initialization function.
|
boolean |
isEmpty(int weekday,
int quarter)
This function checks if all the inhabitants of the household are out of the
household.
|
boolean |
isOnVacation(int day)
This function checks if all the inhabitants of the household are away on
vacation on a certain day
|
int |
tenantsNumber(int weekday,
int quarter)
This function checks the number of tenants in the house in a specific
quarter, either sick or normal.
|
String |
toString() |
void |
weatherCheck(int day,
int hour,
org.joda.time.Instant now,
double temperature)
This function is checking the current weather conditions and the existence
of weather sensitive appliances and if the temperature is over/under a
certain threshold, the appliances begin or stop their operation.
|
protected static org.apache.logging.log4j.Logger log
public Village householdOf
public void initialize(String HouseName, Properties conf, Vector<Integer> publicVacationVector, int seed)
HouseName - conf - publicVacationVector - seed - public int getWeek()
public Vector<Appliance> getAppliances()
public Vector<Person> getMembers()
public double getDominantConsumption(int hour)
public double getNonDominantConsumption(int hour)
public void findDominantAppliance()
public Appliance getDominantAppliance()
public boolean isEmpty(int weekday,
int quarter)
weekday - quarter - public int tenantsNumber(int weekday,
int quarter)
weekday - quarter - public boolean isOnVacation(int day)
day - public void weatherCheck(int day,
int hour,
org.joda.time.Instant now,
double temperature)
Copyright © 2017 Power TAC. All rights reserved.