@Domain @ConfigurableInstance public class Battery extends AbstractCustomer implements CustomerModelAccessor
allCustomerInfos, customerInfos, name, rs1, service| 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<Tariff> tariffs) |
double |
getBrokerSwitchFactor(boolean isSuperseding) |
double |
getCapacityKWh() |
CapacityProfile |
getCapacityProfile(Tariff tariff) |
double |
getChargeEfficiency() |
CustomerInfo |
getCustomerInfo() |
double |
getInertiaSample() |
double |
getMaxChargeKW() |
double |
getMaxDischargeKW() |
String |
getName() |
double |
getSelfDischargeRate() |
double |
getShiftingInconvenienceFactor(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 AbstractCustomerpublic CustomerInfo getCustomerInfo()
getCustomerInfo in interface CustomerModelAccessorpublic void step()
step in class AbstractCustomerpublic String getName()
getName in class AbstractCustomerpublic void setName(String name)
setName in class 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 CustomerModelAccessorpublic double getTariffChoiceSample()
getTariffChoiceSample in interface CustomerModelAccessorpublic double getInertiaSample()
getInertiaSample in interface CustomerModelAccessorpublic void evaluateTariffs(List<Tariff> tariffs)
evaluateTariffs in class AbstractCustomerpublic double getShiftingInconvenienceFactor(Tariff tariff)
getShiftingInconvenienceFactor in interface CustomerModelAccessorpublic CapacityProfile getCapacityProfile(Tariff tariff)
getCapacityProfile in interface CustomerModelAccessorCopyright © 2017 Power TAC. All rights reserved.