@Service public class PortfolioManagerService extends Object implements PortfolioManager, Initializable, Activatable
Constructor and Description |
---|
PortfolioManagerService()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
activate(int timeslotIndex)
Called after TimeslotComplete msg received.
|
double |
collectUsage(int index)
Returns total usage for a given timeslot (represented as a simple index).
|
void |
handleMessage(BalancingControlEvent bce)
Handles a BalancingControlEvent, sent when a BalancingOrder is
exercised by the DU.
|
void |
handleMessage(CustomerBootstrapData cbd)
Handles CustomerBootstrapData by populating the customer model
corresponding to the given customer and power type.
|
void |
handleMessage(TariffRevoke tr)
Handles a TariffRevoke message from the server, indicating that some
tariff has been revoked.
|
void |
handleMessage(TariffSpecification spec)
Handles a TariffSpecification.
|
void |
handleMessage(TariffStatus ts)
Handles a TariffStatus message.
|
void |
handleMessage(TariffTransaction ttx)
Handles a TariffTransaction.
|
void |
initialize(BrokerContext context)
Per-game initialization.
|
public void initialize(BrokerContext context)
initialize
in interface Initializable
public double collectUsage(int index)
collectUsage
in interface PortfolioManager
public void handleMessage(CustomerBootstrapData cbd)
public void handleMessage(TariffSpecification spec)
public void handleMessage(TariffStatus ts)
public void handleMessage(TariffTransaction ttx)
public void handleMessage(TariffRevoke tr)
public void handleMessage(BalancingControlEvent bce)
public void activate(int timeslotIndex)
activate
in interface Activatable
Copyright © 2019 Power TAC. All rights reserved.