|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.Main
bot.Coordinator
Handles building stuff.
| Constructor Summary | |
Coordinator()
|
|
| Method Summary | |
static BoardGenerator |
constructBoardGenerator(String boardName)
Given a String either make a Generator for that board name, or make a generator of that name. |
static BotFactory |
constructBotGenerator(String bot)
Turn that string into something real. |
Runner |
createRunner(BotFactory botF,
BoardGenerator boardF)
This builds the runner--if you want a different kind of runner but want to keep the coordination stuff, override this method. |
Runner |
createRunner(String botName,
String boardName)
Create a Runner. |
static BoardGenerator |
friendlyConstructBoardGenerator(String boardName)
Friendly methods handle errors. |
static BotFactory |
friendlyConstructBotFactory(String botName)
Friendly methods handle errors. |
protected static String |
getFlagValue(String flag)
|
protected static boolean |
hasFlag(String flag)
|
protected static String[] |
stripFlags(String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Coordinator()
| Method Detail |
public Runner createRunner(String botName,
String boardName)
public Runner createRunner(BotFactory botF,
BoardGenerator boardF)
If both parameters are null, Runner is responsible for prompting to get bot and board.
public static BoardGenerator constructBoardGenerator(String boardName)
public static BotFactory constructBotGenerator(String bot)
public static BoardGenerator friendlyConstructBoardGenerator(String boardName)
public static BotFactory friendlyConstructBotFactory(String botName)
protected static boolean hasFlag(String flag)
protected static String getFlagValue(String flag)
protected static String[] stripFlags(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||