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

rt::SimSupervisor Class Reference

This interface can be implemented if you want to plug into a running simulation. More...

#include <robbase.h>

Inheritance diagram for rt::SimSupervisor:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~SimSupervisor ()
virtual SimSuperPosition getPreferredPosition ()
 Return the preferred position of your supervisor in the simulation's supervisor list. More...

virtual unsigned long getStepCycles ()=0
 Return the number of cycles after which your supervisor should be called again.

virtual void initSim (Simulation *const curSim)
 Init your supervisor to this new simulation. More...

virtual GameState exec (Simulation *const curSim)=0
 Execute your supervisor. More...

virtual void exitSim (Simulation *const curSim, const GameState &simResult)
 Process the end of a simulation. More...


Protected Methods

 SimSupervisor ()

Detailed Description

This interface can be implemented if you want to plug into a running simulation.


Member Function Documentation

virtual GameState rt::SimSupervisor::exec (  Simulation *const    curSim )  [pure virtual]
 

Execute your supervisor.

This method will be called about every getStepCycles() cycles.

Returns:
The new simulation state.

Implemented in rt::StdBotCreator.

void rt::SimSupervisor::exitSim (  Simulation *const    curSim,
const GameState &    simResult
)  [virtual]
 

Process the end of a simulation.

The method of class SimSupervisor just does nothing. This method will be called on every SimSupervisor exactly once after the current simulation has finished.

Parameters:
curSim  The finished simulation.
simResult  The simulation result.

SimSuperPosition rt::SimSupervisor::getPreferredPosition (    )  [virtual]
 

Return the preferred position of your supervisor in the simulation's supervisor list.

(The list order implies the execution order.) The method of class SimSupervisor returns supPosDontCare, which means that the supervisor does not rely on a certain list position.

Reimplemented in rt::StdBotCreator.

void rt::SimSupervisor::initSim (  Simulation *const    curSim )  [virtual]
 

Init your supervisor to this new simulation.

The method of class SimSupervisor just does nothing. This method will be called on every registered SimSupervisor exactly once before the new simulation starts.

Reimplemented in rt::StdBotCreator.


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