Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

rt::SimManager Class Reference

Manages a tournament. More...

#include <robmanage.h>

Inheritance diagram for rt::SimManager:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual void setup (SimOptions *const options)
 creates supervisors, results and programs.

virtual void run ()=0
virtual ~SimManager ()
 destroys managerSupervisors and programs, but NOT options.


Protected Methods

virtual void createSupervisors ()
 creates a StdBotCreator and a StdVictorySupervisor. More...

void createPrograms ()
 creates Programs and empty results for them.

TourStatusType doStdSim (const lrt::Array< int > &programNums)
 Do one sim between the given programs, using standard scoring.

TourStatusType doAllStdSims (const lrt::Array< int > &programNums)
 Do all (i.e.\ options->numRepeats) sims between the given programs.

virtual TourInitInfo getTourInitInfo ()=0
 SimManager ()

Protected Attributes

SimOptions * options
Simulation * curSim
lrt::Vector< SimSupervisor * > managerSupervisors
lrt::Vector< Program * > programs
lrt::Vector< TourResult > results

Detailed Description

Manages a tournament.

Loads the programs and sets up the simulations.


Member Function Documentation

void rt::SimManager::createSupervisors (    )  [protected, virtual]
 

creates a StdBotCreator and a StdVictorySupervisor.

If you'd like different ones, just override this method.


The documentation for this class was generated from the following files:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer