@Service public class MarketManagerService extends Object implements MarketManager, Initializable, Activatable
Constructor and Description |
---|
MarketManagerService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(int timeslotIndex)
Compute needed quantities for each open timeslot, then submit orders
for those quantities.
|
double |
getMeanMarketPrice()
Returns the mean price observed in the market
|
void |
handleMessage(BalanceReport report)
Receives a BalanceReport containing information about imbalance in the
current timeslot.
|
void |
handleMessage(BalancingTransaction tx)
Handles a BalancingTransaction message.
|
void |
handleMessage(CapacityTransaction dt)
Handles a CapacityTransaction - a charge for contribution to overall
peak demand over the recent past.
|
void |
handleMessage(ClearedTrade ct)
Handles a ClearedTrade message - this is where you would want to keep
track of market prices.
|
void |
handleMessage(Competition comp)
Handles the Competition instance that arrives at beginning of game.
|
void |
handleMessage(DistributionTransaction dt)
Handles a DistributionTransaction - charges for transporting power
|
void |
handleMessage(MarketBootstrapData data)
Receives a MarketBootstrapData message, reporting usage and prices
for the bootstrap period.
|
void |
handleMessage(MarketPosition posn)
Receives a MarketPosition message, representing our commitments on
the wholesale market
|
void |
handleMessage(MarketTransaction tx)
Receives a new MarketTransaction.
|
void |
handleMessage(Orderbook orderbook)
Receives market orderbooks.
|
void |
handleMessage(WeatherForecast forecast)
Receives a new WeatherForecast.
|
void |
handleMessage(WeatherReport report)
Receives a new WeatherReport.
|
void |
initialize(BrokerContext broker)
Initializes a service prior to logging in to the server.
|
public void initialize(BrokerContext broker)
Initializable
initialize
in interface Initializable
public double getMeanMarketPrice()
getMeanMarketPrice
in interface MarketManager
public void handleMessage(Competition comp)
public void handleMessage(BalancingTransaction tx)
public void handleMessage(ClearedTrade ct)
public void handleMessage(DistributionTransaction dt)
public void handleMessage(CapacityTransaction dt)
public void handleMessage(MarketBootstrapData data)
public void handleMessage(MarketPosition posn)
public void handleMessage(MarketTransaction tx)
public void handleMessage(Orderbook orderbook)
public void handleMessage(WeatherForecast forecast)
public void handleMessage(WeatherReport report)
public void handleMessage(BalanceReport report)
public void activate(int timeslotIndex)
activate
in interface Activatable
Activatable.activate(int)
Copyright © 2019 Power TAC. All rights reserved.