@Domain
@ConfigurableInstance
public class LiftTruck
extends org.powertac.customer.AbstractCustomer
implements org.powertac.common.interfaces.CustomerModelAccessor
| 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<org.powertac.common.Tariff> tariffs) |
double |
getBatteryCapacity() |
double |
getBrokerSwitchFactor(boolean isSuperseding) |
double |
getCapacityInUse() |
org.powertac.common.CapacityProfile |
getCapacityProfile(org.powertac.common.Tariff tariff) |
double |
getChargeEfficiency() |
org.powertac.common.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(org.powertac.common.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 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="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 org.powertac.common.CapacityProfile getCapacityProfile(org.powertac.common.Tariff tariff)
getCapacityProfile in interface org.powertac.common.interfaces.CustomerModelAccessorpublic 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.CustomerModelAccessorCopyright © 2016 Power TAC. All Rights Reserved.