|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.powertac.server.CompetitionSetupService
@Service public class CompetitionSetupService
Manages command-line and file processing for pre-game simulation setup. A simulation can be started in one of two ways:
PowerTacServer, orpreGame() method to
set up the environment and allow configuration of the next game, through
a web (or REST) interface.
| Constructor Summary | |
|---|---|
CompetitionSetupService()
Standard constructor |
|
| Method Summary | |
|---|---|
String |
bootSession(String bootFilename,
String config,
String logSuffix)
|
void |
preGame()
Pre-game server setup - creates the basic configuration elements to make them accessible to the web-based game-setup functions. |
boolean |
preGame(URL bootFile)
Sets up the simulator, with config overrides provided in a file containing a sequence of PluginConfig instances. |
void |
processCmdLine(String[] args)
Processes command-line arguments, which means looking for the specified script file and processing that |
String |
simSession(String bootData,
String config,
String jmsUrl,
String logfileSuffix,
List<String> brokerUsernames)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompetitionSetupService()
| Method Detail |
|---|
public void processCmdLine(String[] args)
public String bootSession(String bootFilename,
String config,
String logSuffix)
bootSession in interface org.powertac.common.interfaces.CompetitionSetup
public String simSession(String bootData,
String config,
String jmsUrl,
String logfileSuffix,
List<String> brokerUsernames)
simSession in interface org.powertac.common.interfaces.CompetitionSetuppublic void preGame()
preGame in interface org.powertac.common.interfaces.CompetitionSetuppublic boolean preGame(URL bootFile)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||