@Domain @ConfigurableInstance public class LiftTruck extends AbstractCustomer implements CustomerModelAccessor
allCustomerInfos, customerInfos, name, rs1, service| Constructor and Description |
|---|
LiftTruck()
Default constructor, requires manual setting of name
|
LiftTruck(String name)
Standard constructor for named configurable type
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEnergyCharging(double kwh) |
void |
addEnergyInUse(double kwh) |
void |
evaluateTariffs(List<Tariff> tariffs)
Called to evaluate tariffs.
|
double |
getBatteryCapacity() |
double |
getBrokerSwitchFactor(boolean isSuperseding)
Returns the inconvenience of switching brokers.
|
double |
getCapacityInUse() |
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 |
getEnergyCharging() |
double |
getEnergyInUse() |
double |
getInertiaSample()
Returns a [0,1] random value used to choose whether individual customers
evaluate tariffs or not.
|
double |
getMaxChargeKW() |
int |
getMinPlanningHorizon() |
String |
getName()
Returns the name of this model
|
int |
getNBatteries() |
int |
getNChargers() |
int |
getPlanningHorizon() |
List<String> |
getShiftData() |
double |
getShiftingInconvenienceFactor(Tariff tariff) |
double |
getTariffChoiceSample()
Returns a [0,1] random value used to make choices using the logit choice
model.
|
double |
getTruckKW() |
double |
getTruckStd() |
void |
initialize()
Initialization must provide accessor to Customer instance and time.
|
void |
setBatteryCapacity(double value) |
void |
setCapacityInUse(double kwh)
Updates the total capacity of in-use batteries
|
void |
setChargeEfficiency(double value) |
void |
setEnergyCharging(double kwh)
Updates the energy content of offline batteries
|
void |
setEnergyInUse(double kwh)
Updates the energy content of in-use batteries
|
void |
setMaxChargeKW(double value) |
void |
setMinPlanningHorizon(int horizon) |
void |
setName(String name)
Sets the name for this model
|
void |
setNBatteries(int value) |
void |
setNChargers(int value) |
void |
setPlanningHorizon(int horizon) |
void |
setShiftData(List<String> data)
Converts a list of Strings to a sorted list of Shifts.
|
void |
setTruckKW(double value) |
void |
setTruckStd(double stdDev) |
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 LiftTruck()
public LiftTruck(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="mean power usage when truck is in use") @StateChange public void setTruckKW(double value)
public double getTruckKW()
@ConfigurableValue(valueType="Double", description="Std dev of truck power usage") @StateChange public void setTruckStd(double stdDev)
public double getTruckStd()
@ConfigurableValue(valueType="List", description="shift spec [block, shift, ..., block, shift, ...]") public void setShiftData(List<String> data)
@ConfigurableValue(valueType="Double", description="size of battery pack in kWh") @StateChange public void setBatteryCapacity(double value)
public double getBatteryCapacity()
@ConfigurableValue(valueType="Integer", description="total number of battery packs") @StateChange public void setNBatteries(int value)
public int getNBatteries()
@ConfigurableValue(valueType="Integer", description="number of battery chargers") @StateChange public void setNChargers(int value)
public int getNChargers()
@ConfigurableValue(valueType="Double", description="maximum charge rate of one truck\'s battery pack") @StateChange public void setMaxChargeKW(double value)
public double getMaxChargeKW()
@ConfigurableValue(valueType="Double", description="ratio of charge energy to battery energy") @StateChange public void setChargeEfficiency(double value)
public double getChargeEfficiency()
@ConfigurableValue(valueType="Integer", description="planning horizon in timeslots - should be at least 48") @StateChange public void setPlanningHorizon(int horizon)
public int getPlanningHorizon()
@ConfigurableValue(valueType="Integer", description="minimum useful horizon of existing plan") @StateChange public void setMinPlanningHorizon(int horizon)
public int getMinPlanningHorizon()
@StateChange public void setEnergyCharging(double kwh)
public double getEnergyCharging()
public void addEnergyCharging(double kwh)
@StateChange public void setEnergyInUse(double kwh)
public double getEnergyInUse()
public void addEnergyInUse(double kwh)
@StateChange public void setCapacityInUse(double kwh)
public double getCapacityInUse()
public CapacityProfile getCapacityProfile(Tariff tariff)
CustomerModelAccessorgetCapacityProfile in interface CustomerModelAccessorpublic 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 CustomerModelAccessorCopyright © 2017 Power TAC. All rights reserved.