@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) |
double |
getBatteryCapacity() |
double |
getBrokerSwitchFactor(boolean isSuperseding) |
double |
getCapacityInUse() |
CapacityProfile |
getCapacityProfile(Tariff tariff) |
double |
getChargeEfficiency() |
CustomerInfo |
getCustomerInfo() |
double |
getEnergyCharging() |
double |
getEnergyInUse() |
double |
getInertiaSample() |
double |
getMaxChargeKW() |
int |
getMinPlanningHorizon() |
String |
getName() |
int |
getNBatteries() |
int |
getNChargers() |
int |
getPlanningHorizon() |
List<String> |
getShiftData() |
double |
getShiftingInconvenienceFactor(Tariff tariff) |
double |
getTariffChoiceSample() |
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) |
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() |
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()
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="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)
getCapacityProfile in interface CustomerModelAccessorpublic 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 CustomerModelAccessorCopyright © 2017 Power TAC. All rights reserved.