|
|
Class BFSharedServerSpecificRepository At first, BrotFruchtSharedServerSpecificRepository will be a Singleton object, that will only contain one single element: a vector with the names of all participating friendly robots
BFSharedServerSpecificRepository* Instance ()
throw (bad_exception) | Instance |
[static]
Method to obtain the one and only object of this class
void reset ()
throw (bad_exception) | reset |
Method to reset the repositories (clears all names out of the vector
Reimplemented from SpecificRepository.
void appendRobotName (const string& robotName)
throw (bad_exception) | appendRobotName |
Appends the own robot name to the vector
const string& getRobotName (int i)
throw (bad_exception, out_of_range) | getRobotName |
[const]
Gets the name of the roboter with the given index
int getRobotNumber ()
throw () | getRobotNumber |
[const]
Get the number of (friendly) robots
~BFSharedServerSpecificRepository ()
throw () | ~BFSharedServerSpecificRepository |
Destructor (does nothing)
Logger* getLogger ()
throw() | getLogger |
[const]
Get the shared logger for all server brotfrucht strategy states
static auto_ptr | _instance |
[private]
vector | _robotNames |
[private]
auto_ptr | _logger |
[private]
BFSharedServerSpecificRepository ()
throw (StrategyException, bad_exception) | BFSharedServerSpecificRepository |
[private]
Constructor
Generated by: jonico on sc8-pr-shell1.sourceforge.net on Fri May 27 06:03:12 2005, using kdoc 2.0a54. |