@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)
Called to evaluate tariffs.
|
double |
getBrokerSwitchFactor(boolean isSuperseding)
Returns the inconvenience of switching brokers.
|
double |
getCapacityKWh() |
CapacityProfile |
getCapacityProfile(Tariff tariff)
Returns a capacity profile for the given tariff.
|
double |
getChargeEfficiency() |
CustomerInfo |
getCustomerInfo()
Returns the CustomerInfo instance for this customer model.
|
double |
getInertiaSample()
Returns a [0,1] random value used to choose whether individual customers
evaluate tariffs or not.
|
double |
getMaxChargeKW() |
double |
getMaxDischargeKW() |
String |
getName()
Returns the name of this model
|
double |
getSelfDischargeRate() |
double |
getShiftingInconvenienceFactor(Tariff tariff) |
double |
getTariffChoiceSample()
Returns a [0,1] random value used to make choices using the logit choice
model.
|
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)
Sets the name for this model
|
void |
setSelfDischargeRate(double value) |
void |
step()
Called to run the model forward one 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()
CustomerModelAccessorgetCustomerInfo in interface CustomerModelAccessorpublic void step()
AbstractCustomerstep in class AbstractCustomerpublic String getName()
AbstractCustomergetName in class AbstractCustomerpublic void setName(String name)
AbstractCustomersetName 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)
CustomerModelAccessorgetBrokerSwitchFactor in interface CustomerModelAccessorpublic double getTariffChoiceSample()
CustomerModelAccessorgetTariffChoiceSample in interface CustomerModelAccessorpublic double getInertiaSample()
CustomerModelAccessorgetInertiaSample in interface CustomerModelAccessorpublic void evaluateTariffs(List<Tariff> tariffs)
AbstractCustomerevaluateTariffs in class AbstractCustomerpublic double getShiftingInconvenienceFactor(Tariff tariff)
getShiftingInconvenienceFactor in interface CustomerModelAccessorpublic CapacityProfile getCapacityProfile(Tariff tariff)
CustomerModelAccessorgetCapacityProfile in interface CustomerModelAccessorCopyright © 2017 Power TAC. All rights reserved.