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 boolean
canNegotiate
protected List<CapacityOriginator>
capacityOriginators
protected double
controllableKW
protected int
count
protected String
customerSize
protected double
downRegulationKW
protected boolean
isAdaptive
protected boolean
multiContracting
protected String
name
protected int
population
protected FactoredCustomerService
service
protected double
storageCapacity
protected String
type
protected double
upRegulationKW
-
Constructor Summary
Constructors Constructor Description DefaultCapacityBundle(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CapacityOriginator
createCapacityOriginator(CapacityStructure capacityStructure)
List<CapacityOriginator>
getCapacityOriginators()
int
getCount()
CustomerInfo
getCustomerInfo()
String
getName()
ProfileOptimizerStructure
getOptimizerStructure()
int
getPopulation()
PowerType
getPowerType()
TariffSubscriberStructure
getSubscriberStructure()
void
initialize(FactoredCustomerService service, CustomerStructure customerStructure)
boolean
isAllIndividual()
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:
initialize
in interfaceCapacityBundle
-
createCapacityOriginator
protected CapacityOriginator createCapacityOriginator(CapacityStructure capacityStructure)
-
getName
public String getName()
- Specified by:
getName
in interfaceCapacityBundle
- Specified by:
getName
in interfaceStructureInstance
-
getCount
public int getCount()
- Specified by:
getCount
in interfaceCapacityBundle
-
getPopulation
public int getPopulation()
- Specified by:
getPopulation
in interfaceCapacityBundle
-
getPowerType
public PowerType getPowerType()
- Specified by:
getPowerType
in interfaceCapacityBundle
-
getCustomerInfo
public CustomerInfo getCustomerInfo()
- Specified by:
getCustomerInfo
in interfaceCapacityBundle
-
getSubscriberStructure
public TariffSubscriberStructure getSubscriberStructure()
- Specified by:
getSubscriberStructure
in interfaceCapacityBundle
-
getOptimizerStructure
public ProfileOptimizerStructure getOptimizerStructure()
- Specified by:
getOptimizerStructure
in interfaceCapacityBundle
-
getCapacityOriginators
public List<CapacityOriginator> getCapacityOriginators()
- Specified by:
getCapacityOriginators
in interfaceCapacityBundle
-
isAllIndividual
public boolean isAllIndividual()
Description copied from interface:CapacityBundle
True just in case all CapacityOriginators in this bundle are INDIVIDUAL- Specified by:
isAllIndividual
in interfaceCapacityBundle
-
-