|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.officecomplexcustomer.appliances.Appliance
public class Appliance
A appliance domain instance represents a single appliance inside a household. There are different kinds of appliances utilized by the persons inhabiting the premises. Some of them are functioning automatically, some are only used when someone is present etc.
| Field Summary | |
|---|---|
protected Office |
applianceOf
The household that the appliance is installed at. |
protected int |
cycleDuration
This variable equals the duration of the operation cycle of the appliance. |
protected static org.apache.log4j.Logger |
log
logger for trace logging -- use log.info(), log.warn(), and log.error() appropriately. |
protected String |
name
The appliance name. |
protected int |
power
This variable shows the power (in Watts) that are consumed when using this appliance. |
protected double |
saturation
This variable shows the possibility (%) that this appliance is contained in a house. |
| Constructor Summary | |
|---|---|
Appliance()
|
|
| Method Summary | |
|---|---|
void |
createWeeklyPossibilityOperationVector()
This function is used to create the weekly possibility operation vector of each appliance taking into consideration the times that this appliance could be able to function. |
long[] |
dailyShifting(org.powertac.common.Tariff tariff,
org.joda.time.Instant now,
int day,
Random gen)
This is a complex function that changes the appliance's function in order to have the most cost effective operation load in a day schedule. |
void |
fillDailyOperation(int times,
Random gen)
This function fills out all the quarters of the appliance functions for a single day of the week. |
void |
fillWeeklyOperation(Random gen)
This function fills out all the days of the appliance functions for each day of the week. |
Office |
getApplianceOf()
This function returns the household where the appliance is installed. |
int |
getDuration()
This function returns the duration variable of the appliance. |
int |
getPower()
This function returns the power variable of the appliance. |
double |
getSaturation()
This function returns the saturation variable of the appliance. |
Vector<Vector<Integer>> |
getWeeklyLoadVector()
This function returns the weekly load vector of the appliance. |
Vector<Vector<Boolean>> |
getWeeklyOperation()
This function returns the weekly operation vector of the appliance. |
void |
initialize(String office,
Properties conf,
Random gen)
This is the initialization function. |
void |
refresh(Random gen)
At the end of each week the appliance models refresh their schedule. |
void |
setApplianceOf(Office office)
This function sets the household in which the appliance is installed in. |
void |
setOperationDays()
This is an function to fill the maps utilized by Services in order to keep the vectors of each appliance during the runtime. |
void |
showStatus()
This is the function utilized to show the information regarding the appliance in question, its variables values etc. |
String |
toString()
|
void |
weatherDailyFunction(int day,
int hour,
double temp)
This function fills out the daily function of an appliance for the day. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
protected String name
protected Office applianceOf
protected double saturation
protected int power
protected int cycleDuration
| Constructor Detail |
|---|
public Appliance()
| Method Detail |
|---|
public int getPower()
public Office getApplianceOf()
public double getSaturation()
public int getDuration()
public Vector<Vector<Boolean>> getWeeklyOperation()
public Vector<Vector<Integer>> getWeeklyLoadVector()
public void setApplianceOf(Office office)
public void createWeeklyPossibilityOperationVector()
public void initialize(String office,
Properties conf,
Random gen)
household - conf - gen -
public long[] dailyShifting(org.powertac.common.Tariff tariff,
org.joda.time.Instant now,
int day,
Random gen)
gen - tariff - now - day -
public void fillDailyOperation(int times,
Random gen)
gen - public void fillWeeklyOperation(Random gen)
gen - public void showStatus()
public void weatherDailyFunction(int day,
int hour,
double temp)
public void refresh(Random gen)
conf - gen - public void setOperationDays()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||