|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompetitionControl
This is the core of the Power TAC simulation framework, responsible for starting, running, and completing a competition. Plugins that are designed to run in the main simulation loop can be activated at the proper phase during each timeslot by registering themselves by phase number.
| Method Summary | |
|---|---|
boolean |
isBootstrapMode()
True just in case the sim is running in bootstrap mode - generating bootstrap data. |
boolean |
loginBroker(String username)
Attempts to log in a broker by username. |
void |
receiveMessage(org.powertac.common.msg.PauseRelease msg)
|
void |
receiveMessage(org.powertac.common.msg.PauseRequest msg)
Processes simulation pause messages |
void |
registerTimeslotPhase(TimeslotPhaseProcessor thing,
int phase)
Registers the caller to be activated during each timeslot in the proper phase sequence. |
void |
runOnce(boolean bootstrapMode)
Waits for broker login, then starts and runs a simulation. |
void |
setAuthorizedBrokerList(List<String> brokerList)
Sets the list of brokers authorized to log in to the next game. |
| Method Detail |
|---|
boolean isBootstrapMode()
void registerTimeslotPhase(TimeslotPhaseProcessor thing,
int phase)
boolean loginBroker(String username)
void setAuthorizedBrokerList(List<String> brokerList)
void runOnce(boolean bootstrapMode)
void receiveMessage(org.powertac.common.msg.PauseRequest msg)
void receiveMessage(org.powertac.common.msg.PauseRelease msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||