|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.net.ConfigurationTemplate
cdx.scorebot.net.CompetitionConfiguration
public class CompetitionConfiguration
This contains only the IP addresses of teams and the IP addresses and ports of the services which are to be tested from a template NetworkTestPackage. It allows for the easy re-use and mass-modification of NetworkTestPackages across many teams.
Nested Class Summary | |
---|---|
class |
CompetitionConfiguration.TeamInfo
Contains the skeleton information for a team |
Field Summary | |
---|---|
static java.lang.String |
EXT
extension to use for files holding this type |
Fields inherited from class cdx.scorebot.net.ConfigurationTemplate |
---|
ntp, pathToNTP, suiteInfo |
Constructor Summary | |
---|---|
CompetitionConfiguration(java.lang.String fn)
create a CompetitionConfiguration NetworkTestPackage from the NetworkTestPackage in the specified file |
Method Summary | |
---|---|
void |
addTeam(java.lang.String name)
adds a team |
boolean |
equals(java.lang.Object o)
|
java.util.Vector<java.lang.String> |
getFilenames()
gets the filenames each team's template will be saved to by makeConfigs |
java.lang.String |
getName()
gets the name of the competition this applies to |
java.util.Vector<CompetitionConfiguration.TeamInfo> |
getTeamInfo()
gets the names and ip/hostname prefixes of the teams participating in this competition |
void |
makeConfigs()
make configuration files for each team |
Methods inherited from class cdx.scorebot.net.ConfigurationTemplate |
---|
addMissingSuites, equals, gentleLoadNTP, getPathToNTP, getSuiteInfo, getUnconfiguredNTP, indexOfSkel, loadNTP, refreshSuites, setPathToNTP |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXT
Constructor Detail |
---|
public CompetitionConfiguration(java.lang.String fn) throws com.thoughtworks.xstream.core.BaseException, java.io.FileNotFoundException
fn
- where to load the NetworkTestPackage from (best if this is a relative path)
com.thoughtworks.xstream.core.BaseException
- if the object cannot be deserialized
java.io.FileNotFoundException
- occurs if the file is not foundMethod Detail |
---|
public java.lang.String getName()
public void addTeam(java.lang.String name)
public java.util.Vector<CompetitionConfiguration.TeamInfo> getTeamInfo()
public java.util.Vector<java.lang.String> getFilenames()
public void makeConfigs() throws com.thoughtworks.xstream.core.BaseException, java.io.FileNotFoundException
com.thoughtworks.xstream.core.BaseException
java.io.FileNotFoundException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |