|
||||||||||
| 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 |
isRunning()
True if a simulation (boot or sim) session is currently running. |
boolean |
loginBroker(String username)
Attempts to log in a broker by username. |
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. |
void |
shutDown()
Stops a running simulation, and sends out the SimEnd message to brokers. |
| Method Detail |
|---|
boolean isBootstrapMode()
void registerTimeslotPhase(TimeslotPhaseProcessor thing,
int phase)
boolean loginBroker(String username)
void setAuthorizedBrokerList(List<String> brokerList)
void runOnce(boolean bootstrapMode)
boolean isRunning()
void shutDown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||