#include <robtopmgr.h>
Inheritance diagram for rt::TopManager:

Public Methods | |
| TopManager (bool importOld, int size, const String &competitionFolder) | |
| Creates a new TopManager. More... | |
| virtual | ~TopManager () |
| virtual void | setup (SimOptions *const options) |
| creates supervisors, results and programs. | |
| virtual void | run () |
| String | getResultFileName (const String &botname) |
| String | getInfoFileName (const String &botname) |
| String | getId (const String &botname) |
| bool | setIfInTop (const String &botname, const String &top) |
| bool | saveRes (const String &bot1, const String &bot2, int wins, int looses, int ties) |
| TopInfo * | updateBotInfo (const String &botname) |
| bool | doFights (const String &botname) |
| void | readCharts (const IniFile &charts, Vector< TopTourResult > &store) |
| Reads the charts ini file into the given store, which is cleared first. More... | |
| void | calcCharts (const IniFile &charts, Vector< TopTourResult > &store) |
| Calculates the charts store from the results files. More... | |
| void | sortCharts (Vector< TopTourResult > &store) |
| Sorts the store so that it is ordered after points, highest first. | |
| void | checkChartsLength (IniFile &charts, Vector< TopTourResult > &store) |
| Removes all entries from the store and the charts which are not eligible for the charts anymore. | |
| bool | updateCharts (IniFile &charts, const Array< TopTourResult > &store) |
| Updates the charts with the values from the given store. | |
| bool | addAndCheck (const String &botname) |
| Try to add a program to the currently loaded programs. More... | |
Protected Methods | |
| TourInitInfo | getTourInitInfo () |
Can replace RobServ.
|
||||||||||||||||
|
Creates a new TopManager.
|
|
|
Try to add a program to the currently loaded programs.
Checks if the new program can be assembled correctly. If it doesn't, it is not added and |
|
||||||||||||
|
Calculates the charts store from the results files. The store is cleared first. When done, sorts the store so that it is ordered after points, highest first. |
|
||||||||||||
|
Reads the charts ini file into the given store, which is cleared first. This method is not intended for usage in TopManager itself (which should always calculate the results from the results files, not from the charts), but for usage in HTML (or other readable formats) generators. |