|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.startup.StartServer
This class is the startup routine for the server, that parses all configuration files, and sets everything up.
Field Summary | |
private ActionProcessor |
actionProcessor
Description of the Field |
private ActsOfGod |
actsOfGod
Description of the Field |
private String |
actsofgodConfFileName
Description of the Field |
private Class |
automatonClass
Description of the Field |
private BufferedReader |
bufReader
Description of the Field |
private HashMap |
colorToState
Description of the Field |
private int |
connectionPort
Description of the Field |
private int |
currentLine
Description of the Field |
private String |
game
Description of the Field |
private String |
globalConfFileName
Description of the Field |
private Set |
godseyeRoles
Description of the Field |
private String |
logFileName
Description of the Field |
private LogManager |
logManager
Description of the Field |
private AutomatonMap |
map
Description of the Field |
private int |
mapX
Description of the Field |
private int |
mapY
Description of the Field |
private QManager |
qManager
Description of the Field |
private Set |
roles
Description of the Field |
private String |
rolesConfFileName
Description of the Field |
private UnitManager |
unitManager
Description of the Field |
private String |
unitsConfFileName
Description of the Field |
private String |
unitTypesConfFileName
Description of the Field |
private VisibilityManager |
visibilityManager
Description of the Field |
Constructor Summary | |
StartServer(CommandLineProperties props)
Constructor for the StartServer object |
Method Summary | |
private static void |
abort(String message,
int exitStatus)
Description of the Method |
private Reader |
getConfFile(String name)
|
private byte[] |
getImage(String name)
|
static void |
main(String[] args)
The main program for the StartServer class |
private void |
parseActsOfGod(Reader in)
Parses the Acts of God configuration file. |
private void |
parseGlobal(Reader in)
Parses the global configuration file. |
private void |
parseRoles(Reader in)
Parses the Roles configuration file. |
private void |
parseUnits(Reader in)
Parses the Units configuration file. |
private void |
parseUnitTypes(Reader in)
Parses the Unit Types configuration file. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private final String globalConfFileName
private final String rolesConfFileName
private final String unitTypesConfFileName
private final String unitsConfFileName
private final String actsofgodConfFileName
private final String logFileName
private BufferedReader bufReader
private int currentLine
private Class automatonClass
private int connectionPort
private String game
private UnitManager unitManager
private QManager qManager
private ActsOfGod actsOfGod
private VisibilityManager visibilityManager
private ActionProcessor actionProcessor
private LogManager logManager
private Set roles
private Set godseyeRoles
private AutomatonMap map
private int mapX
private int mapY
private HashMap colorToState
Constructor Detail |
public StartServer(CommandLineProperties props) throws FileNotFoundException, IOException, SyntaxErrorException, ParseErrorException
props
- Description of ParameterFileNotFoundException
- Description of ExceptionIOException
- Description of ExceptionSyntaxErrorException
- Description of ExceptionParseErrorException
- Description of ExceptionMethod Detail |
private Reader getConfFile(String name) throws FileNotFoundException
private byte[] getImage(String name) throws FileNotFoundException, IOException
private void parseGlobal(Reader in) throws IOException, SyntaxErrorException, ParseErrorException
theStream
- The file stream.IOException
- Description of ExceptionSyntaxErrorException
- Description of ExceptionParseErrorException
- Description of Exceptionprivate void parseRoles(Reader in) throws IOException, SyntaxErrorException, ParseErrorException
theStream
- The file stream.IOException
- Description of ExceptionSyntaxErrorException
- Description of ExceptionParseErrorException
- Description of Exceptionprivate void parseUnitTypes(Reader in) throws IOException, SyntaxErrorException, ParseErrorException
theStream
- The file stream.IOException
- Description of ExceptionSyntaxErrorException
- Description of ExceptionParseErrorException
- Description of Exceptionprivate void parseUnits(Reader in) throws IOException, SyntaxErrorException, ParseErrorException
theStream
- The file stream.IOException
- Description of ExceptionSyntaxErrorException
- Description of ExceptionParseErrorException
- Description of Exceptionprivate void parseActsOfGod(Reader in) throws IOException, SyntaxErrorException, ParseErrorException
theStream
- The file stream.IOException
- Description of ExceptionSyntaxErrorException
- Description of ExceptionParseErrorException
- Description of Exceptionpublic static void main(String[] args)
args
- The command line argumentsprivate static void abort(String message, int exitStatus)
message
- Description of ParameterexitStatus
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |