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

rt::Frontend Class Reference

Manages the option acquisition from and result presentation to the user. More...

#include <robfrontend.h>

Inheritance diagram for rt::Frontend:

Inheritance graph
[legend]
List of all members.

Public Types

enum  FightType {
  ftSingle = 0, ftCharts = 1, ftTop = 10, ftTopWithOld = 11,
  ftAllInOne = 30
}
 The tournament type.


Public Methods

virtual FrontendPlugin * findPlugin (const String &name)
 returns a pointer to the plugin with given 'name', if there is one otherwise returns NULL.

virtual ~Frontend ()
virtual void reset ()
 reset the Frontend for a new tournament.

bool interpreteParams (const Array< String > &params)
 Calls interpreteParams() of the plugins, then the impl() method.

virtual void fillOptions (SimOptions &options)
 Derived classes should call Frontend::fillOptions() in their xxxFrontend::fillOptions() somewhere to process the standard things (noRandom, numRepeats, optionFile).

virtual SimManager * getManager ()
 creates the manager first if not already done.


Public Attributes

bool doAllAgain
 do another tournament? normally false.

FightType fightType
 The tournament type.

int fightTypeParam
 A type-specific parameter to the tournament type.

String competitionFolder
 The competition folder (not only for top mode!) This does apply to robot files (on the command line) and to results files.

bool noRandom
 Create reproducable results (as far as possible).

int numRepeats
 Repeat amount for each simulation.

String optionFile
 The option ("RCO") file (or resource) containing all global settings.

Vector< String > files
 The robot files.


Protected Methods

virtual void initPlugins ()
 adds a plugin of every type to the plugin list.

 Frontend ()
 inits the plugins.

virtual bool interpreteParamsImpl (const Array< String > &params, Array< bool > &used)=0
 Return true if you want to continue creating a sim, using these params, or false if they're somehow invalid. More...


Protected Attributes

List< FrontendPlugin * > plugins
 Contains one of all available frontend plugins.

SimManager * manager

Detailed Description

Manages the option acquisition from and result presentation to the user.


Member Function Documentation

virtual bool rt::Frontend::interpreteParamsImpl (  const Array< String > &    params,
Array< bool > &    used
)  [protected, pure virtual]
 

Return true if you want to continue creating a sim, using these params, or false if they're somehow invalid.

Parameters:
used  Note: Size is one larger than params. (to make your life easier)


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