public class Appliance extends Object
| Modifier and Type | Field and Description |
|---|---|
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 |
overallPower |
protected int |
power
This variable shows the power (in Watts) that are consumed when using this
appliance.
|
protected org.powertac.common.repo.RandomSeedRepo |
randomSeedRepo |
protected double |
saturation
This variable shows the possibility (%) that this appliance is contained in
a house.
|
| Constructor and Description |
|---|
Appliance() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateOverallPower()
This is an function created to estimate the overall power consumption of a
certain appliance in a single operation the vectors of each appliance
during the runtime.
|
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.
|
double[] |
dailyShifting(org.powertac.common.Tariff tariff,
double[] nonDominantLoad,
org.powertac.common.TariffEvaluationHelper tariffEvalHelper,
int day,
org.joda.time.Instant start)
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)
This function fills out all the quarters of the appliance functions for a
single day of the week.
|
void |
fillWeeklyOperation()
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.
|
Vector<Boolean> |
getOperationDaysVector()
This function returns the operation days vector of the appliance.
|
int |
getOverallPower()
This function returns the power 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,
int seed)
This is the initialization function.
|
void |
refresh()
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.
|
protected static org.apache.log4j.Logger log
@Autowired protected org.powertac.common.repo.RandomSeedRepo randomSeedRepo
protected String name
protected Office applianceOf
protected double saturation
protected int power
protected int overallPower
protected int cycleDuration
public int getPower()
public int getOverallPower()
public Office getApplianceOf()
public double getSaturation()
public int getDuration()
public Vector<Vector<Boolean>> getWeeklyOperation()
public Vector<Vector<Integer>> getWeeklyLoadVector()
public Vector<Boolean> getOperationDaysVector()
public void setApplianceOf(Office office)
public void createWeeklyPossibilityOperationVector()
public void initialize(String office, Properties conf, int seed)
household - conf - gen - public double[] dailyShifting(org.powertac.common.Tariff tariff,
double[] nonDominantLoad,
org.powertac.common.TariffEvaluationHelper tariffEvalHelper,
int day,
org.joda.time.Instant start)
gen - tariff - now - day - start - public void fillDailyOperation(int times)
gen - public void fillWeeklyOperation()
gen - public void showStatus()
public void weatherDailyFunction(int day,
int hour,
double temp)
public void refresh()
conf - gen - public void setOperationDays()
public void calculateOverallPower()
Copyright © 2015 Power TAC. All Rights Reserved.