public class WashingMachine extends Appliance
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dryerFlag
This variable is utilized to show if there's a dryer in the household or
not.
|
protected int |
dryerIndex
This variable is utilized to find dryer in the household.
|
protected int |
dryerPower
This variable is utilized to show the dryer's power load.
|
applianceOf, cycleDuration, log, name, overallPower, power, randomSeedRepo, saturation| Constructor and Description |
|---|
WashingMachine() |
| 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.
|
double[] |
dailyShifting(org.powertac.common.Tariff tariff,
double[] nonDominantUsage,
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 weekday)
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.
|
Vector<Integer> |
getDays()
This function returns days vector of the appliance
|
boolean |
getDryerFlag() |
int |
getDryerIndex() |
int |
getDryerOverallPower() |
int |
getTimesForDay(int day)
This function returns the times of operation for a certain day of the
appliance
|
void |
initialize(String household,
Properties conf,
int seed)
The function reaction of the washing machine.
|
void |
refresh()
At the end of each week the appliance models refresh their schedule.
|
createWeeklyPossibilityOperationVector, getApplianceOf, getDuration, getOperationDaysVector, getOverallPower, getPower, getSaturation, getTimes, getWeeklyLoadVector, getWeeklyOperation, setApplianceOf, setOperationDays, toString, weatherDailyOperationprotected boolean dryerFlag
protected int dryerPower
protected int dryerIndex
public void initialize(String household, Properties conf, int seed)
initialize in class Appliancepublic void fillDailyOperation(int weekday)
AppliancefillDailyOperation in class Appliancepublic double[] dailyShifting(org.powertac.common.Tariff tariff,
double[] nonDominantUsage,
org.powertac.common.TariffEvaluationHelper tariffEvalHelper,
int day,
org.joda.time.Instant start)
AppliancedailyShifting in class Appliancepublic boolean getDryerFlag()
public int getDryerIndex()
public void calculateOverallPower()
AppliancecalculateOverallPower in class Appliancepublic int getDryerOverallPower()
public void refresh()
Appliancepublic int getTimesForDay(int day)
public void fillWeeklyOperation()
AppliancefillWeeklyOperation in class ApplianceCopyright © 2015 Power TAC. All Rights Reserved.