Package org.powertac.factoredcustomer
Class DefaultCapacityBundle
- java.lang.Object
-
- org.powertac.factoredcustomer.DefaultCapacityBundle
-
- All Implemented Interfaces:
CapacityBundle,StructureInstance
public class DefaultCapacityBundle extends Object implements CapacityBundle, StructureInstance
A simple collection of capacity originators, all with the same base capacity type; i.e., CONSUMPTION or PRODUCTION.- Author:
- Prashant Reddy, John Collins
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancanNegotiateprotected List<CapacityOriginator>capacityOriginatorsprotected doublecontrollableKWprotected intcountprotected StringcustomerSizeprotected doubledownRegulationKWprotected booleanisAdaptiveprotected booleanmultiContractingprotected Stringnameprotected intpopulationprotected FactoredCustomerServiceserviceprotected doublestorageCapacityprotected Stringtypeprotected doubleupRegulationKW
-
Constructor Summary
Constructors Constructor Description DefaultCapacityBundle(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CapacityOriginatorcreateCapacityOriginator(CapacityStructure capacityStructure)List<CapacityOriginator>getCapacityOriginators()intgetCount()CustomerInfogetCustomerInfo()StringgetName()ProfileOptimizerStructuregetOptimizerStructure()intgetPopulation()PowerTypegetPowerType()TariffSubscriberStructuregetSubscriberStructure()voidinitialize(FactoredCustomerService service, CustomerStructure customerStructure)booleanisAllIndividual()True just in case all CapacityOriginators in this bundle are INDIVIDUAL
-
-
-
Field Detail
-
service
protected FactoredCustomerService service
-
name
protected String name
-
count
@ConfigurableValue(description="Number of capacity structures expected", valueType="Integer", dump=false) protected int count
-
population
@ConfigurableValue(valueType="Integer") protected int population
-
type
@ConfigurableValue(description="PowerType for this bundle", valueType="String", dump=false) protected String type
-
customerSize
@ConfigurableValue(valueType="String", dump=false) protected String customerSize
-
multiContracting
@ConfigurableValue(description="If true, then this bundle can divide itself among multiple tariffs", valueType="Boolean", dump=false) protected boolean multiContracting
-
canNegotiate
@ConfigurableValue(description="Unsupported, value ignored", valueType="Boolean", dump=false) protected boolean canNegotiate
-
controllableKW
@ConfigurableValue(description="Maximum curtailment per timeslot", valueType="Double", dump=false) protected double controllableKW
-
upRegulationKW
@ConfigurableValue(description="Maximum storage discharge per timeslot", valueType="Double", dump=false) protected double upRegulationKW
-
downRegulationKW
@ConfigurableValue(description="Maximum down-regulation (energy absorbed) per timeslot", valueType="Double", dump=false) protected double downRegulationKW
-
storageCapacity
@ConfigurableValue(description="", valueType="Double", dump=false) protected double storageCapacity
-
isAdaptive
@ConfigurableValue(valueType="Boolean", dump=false) protected boolean isAdaptive
-
capacityOriginators
protected List<CapacityOriginator> capacityOriginators
-
-
Constructor Detail
-
DefaultCapacityBundle
public DefaultCapacityBundle(String name)
-
-
Method Detail
-
initialize
public void initialize(FactoredCustomerService service, CustomerStructure customerStructure)
- Specified by:
initializein interfaceCapacityBundle
-
createCapacityOriginator
protected CapacityOriginator createCapacityOriginator(CapacityStructure capacityStructure)
-
getName
public String getName()
- Specified by:
getNamein interfaceCapacityBundle- Specified by:
getNamein interfaceStructureInstance
-
getCount
public int getCount()
- Specified by:
getCountin interfaceCapacityBundle
-
getPopulation
public int getPopulation()
- Specified by:
getPopulationin interfaceCapacityBundle
-
getPowerType
public PowerType getPowerType()
- Specified by:
getPowerTypein interfaceCapacityBundle
-
getCustomerInfo
public CustomerInfo getCustomerInfo()
- Specified by:
getCustomerInfoin interfaceCapacityBundle
-
getSubscriberStructure
public TariffSubscriberStructure getSubscriberStructure()
- Specified by:
getSubscriberStructurein interfaceCapacityBundle
-
getOptimizerStructure
public ProfileOptimizerStructure getOptimizerStructure()
- Specified by:
getOptimizerStructurein interfaceCapacityBundle
-
getCapacityOriginators
public List<CapacityOriginator> getCapacityOriginators()
- Specified by:
getCapacityOriginatorsin interfaceCapacityBundle
-
isAllIndividual
public boolean isAllIndividual()
Description copied from interface:CapacityBundleTrue just in case all CapacityOriginators in this bundle are INDIVIDUAL- Specified by:
isAllIndividualin interfaceCapacityBundle
-
-