@Service
public class CapacityControlService
extends org.powertac.common.interfaces.TimeslotPhaseProcessor
implements org.powertac.common.interfaces.CapacityControl, org.powertac.common.interfaces.InitializationService
| Constructor and Description |
|---|
CapacityControlService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.joda.time.Instant time,
int phaseNumber)
Activation applies pending ratio controls to subscriptions for the current
timeslot.
|
void |
exerciseBalancingControl(org.powertac.common.msg.BalancingOrder order,
double kwh,
double payment) |
org.powertac.common.RegulationCapacity |
getRegulationCapacity(org.powertac.common.msg.BalancingOrder order) |
String |
initialize(org.powertac.common.Competition competition,
List<String> completedInits) |
void |
postEconomicControl(org.powertac.common.msg.EconomicControlEvent event) |
void |
setDefaults() |
public void exerciseBalancingControl(org.powertac.common.msg.BalancingOrder order,
double kwh,
double payment)
exerciseBalancingControl in interface org.powertac.common.interfaces.CapacityControlpublic void postEconomicControl(org.powertac.common.msg.EconomicControlEvent event)
postEconomicControl in interface org.powertac.common.interfaces.CapacityControlpublic org.powertac.common.RegulationCapacity getRegulationCapacity(org.powertac.common.msg.BalancingOrder order)
getRegulationCapacity in interface org.powertac.common.interfaces.CapacityControlpublic void activate(org.joda.time.Instant time,
int phaseNumber)
activate in class org.powertac.common.interfaces.TimeslotPhaseProcessorpublic void setDefaults()
setDefaults in interface org.powertac.common.interfaces.InitializationServiceCopyright © 2014 Power TAC. All Rights Reserved.