@Service public class BalancingMarketService extends TimeslotPhaseProcessor implements BalancingMarket, SettlementContext, InitializationService
| Constructor and Description |
|---|
BalancingMarketService() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.joda.time.Instant time,
int phaseNumber)
This method gets called once during each timeslot.
|
Map<Broker,ChargeInfo> |
balanceTimeslot(List<Broker> brokerList,
org.powertac.balancemkt.BalancingMarketService.DoubleWrapper report)
Generates a list of Transactions that balance the overall market.
|
Double |
getBalancingCost()
Returns the per-timeslot charge for running the balancing market
|
double |
getDefaultSpotPrice()
Returns the value used for spot price per MWh if unavailable from
wholesale market.
|
double |
getMarketBalance(Broker broker)
Returns the difference between a broker's current market position and its
net load.
|
double |
getPMinus()
Returns the minimum price for energy in the current timeslot
|
double |
getPMinusPrime()
Returns the slope of cost curve for down-regulation.
|
double |
getPPlus()
Returns the maximum price for energy in the current timeslot.
|
double |
getPPlusPrime()
Returns the slope of cost curve for up-regulation.
|
double |
getRegulation(Broker broker)
Returns the net balancing result for a given broker.
|
String |
initialize(Competition competition,
List<String> completedInits)
Computes actual distribution and balancing costs by random selection
|
init, setTimeslotPhasepublic String initialize(Competition competition, List<String> completedInits)
initialize in interface InitializationServicepublic void activate(org.joda.time.Instant time,
int phaseNumber)
TimeslotPhaseProcessoractivate in class TimeslotPhaseProcessorpublic Map<Broker,ChargeInfo> balanceTimeslot(List<Broker> brokerList, org.powertac.balancemkt.BalancingMarketService.DoubleWrapper report)
public double getMarketBalance(Broker broker)
getMarketBalance in interface BalancingMarketpublic double getRegulation(Broker broker)
getRegulation in interface BalancingMarketpublic double getPPlus()
getPPlus in interface SettlementContextpublic double getPMinus()
getPMinus in interface SettlementContextpublic double getPPlusPrime()
BalancingMarketgetPPlusPrime in interface BalancingMarketpublic double getPMinusPrime()
BalancingMarketgetPMinusPrime in interface BalancingMarketpublic Double getBalancingCost()
BalancingMarketgetBalancingCost in interface BalancingMarketpublic double getDefaultSpotPrice()
BalancingMarketgetDefaultSpotPrice in interface BalancingMarketCopyright © 2017 Power TAC. All rights reserved.