@Domain
@ConfigurableInstance
public class Battery
extends org.powertac.customer.AbstractCustomer
implements org.powertac.common.interfaces.CustomerModelAccessor
| Constructor and Description |
|---|
Battery()
Default constructor, requires manual setting of name
|
Battery(String name)
Standard constructor for named configurable type
|
| Modifier and Type | Method and Description |
|---|---|
void |
evaluateTariffs(List<org.powertac.common.Tariff> tariffs) |
double |
getBrokerSwitchFactor(boolean isSuperseding) |
double |
getCapacityKWh() |
org.powertac.common.CapacityProfile |
getCapacityProfile(org.powertac.common.Tariff tariff) |
double |
getChargeEfficiency() |
org.powertac.common.CustomerInfo |
getCustomerInfo() |
double |
getInertiaSample() |
double |
getMaxChargeKW() |
double |
getMaxDischargeKW() |
String |
getName() |
double |
getSelfDischargeRate() |
double |
getShiftingInconvenienceFactor(org.powertac.common.Tariff tariff) |
double |
getTariffChoiceSample() |
void |
initialize()
Initialization must provide accessor to Customer instance and time.
|
void |
setCapacityKWh(double value) |
void |
setChargeEfficiency(double value) |
void |
setMaxChargeKW(double value) |
void |
setMaxDischargeKW(double value) |
void |
setName(String name) |
void |
setSelfDischargeRate(double value) |
void |
step() |
addCustomerInfo, changeSubscription, getCurrentSubscriptions, getCurrentSubscriptions, getCustId, getCustomerInfo, getCustomerInfoList, getCustomerInfos, getId, getPopulation, lastSunday, nextStartOfDay, saveBootstrapState, setServiceAccessor, setTariffMarket, startOfDay, toStringpublic Battery()
public Battery(String name)
public void initialize()
initialize in class org.powertac.customer.AbstractCustomerpublic org.powertac.common.CustomerInfo getCustomerInfo()
getCustomerInfo in interface org.powertac.common.interfaces.CustomerModelAccessorpublic void step()
step in class org.powertac.customer.AbstractCustomerpublic String getName()
getName in class org.powertac.customer.AbstractCustomerpublic void setName(String name)
setName in class org.powertac.customer.AbstractCustomer@ConfigurableValue(valueType="Double",
description="size of battery in kWh")
@StateChange
public void setCapacityKWh(double value)
public double getCapacityKWh()
@ConfigurableValue(valueType="Double",
description="maximum charge rate")
@StateChange
public void setMaxChargeKW(double value)
public double getMaxChargeKW()
@ConfigurableValue(valueType="Double",
description="Maximum discharge rate")
public void setMaxDischargeKW(double value)
public double getMaxDischargeKW()
@ConfigurableValue(valueType="Double",
description="ratio of charge energy to battery energy")
@StateChange
public void setChargeEfficiency(double value)
public double getChargeEfficiency()
@ConfigurableValue(valueType="Double",
description="hourly charge lost as proportion of capacity")
public void setSelfDischargeRate(double value)
public double getSelfDischargeRate()
public double getBrokerSwitchFactor(boolean isSuperseding)
getBrokerSwitchFactor in interface org.powertac.common.interfaces.CustomerModelAccessorpublic double getTariffChoiceSample()
getTariffChoiceSample in interface org.powertac.common.interfaces.CustomerModelAccessorpublic double getInertiaSample()
getInertiaSample in interface org.powertac.common.interfaces.CustomerModelAccessorpublic void evaluateTariffs(List<org.powertac.common.Tariff> tariffs)
evaluateTariffs in class org.powertac.customer.AbstractCustomerpublic double getShiftingInconvenienceFactor(org.powertac.common.Tariff tariff)
getShiftingInconvenienceFactor in interface org.powertac.common.interfaces.CustomerModelAccessorpublic org.powertac.common.CapacityProfile getCapacityProfile(org.powertac.common.Tariff tariff)
getCapacityProfile in interface org.powertac.common.interfaces.CustomerModelAccessorCopyright © 2016 Power TAC. All Rights Reserved.