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

rt::StdBotCreator Class Reference

Creates a robot for each Program at the beginning of the Simulation. More...

#include <robsupervis.h>

Inheritance diagram for rt::StdBotCreator:

Inheritance graph
[legend]
List of all members.

Public Methods

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

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

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

virtual GameState exec (Simulation *const sim)
 Execute your supervisor. More...


Detailed Description

Creates a robot for each Program at the beginning of the Simulation.


Member Function Documentation

SimSupervisor::GameState rt::StdBotCreator::exec (  Simulation *const    sim )  [virtual]
 

Execute your supervisor.

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

Returns:
The new simulation state.

Implements rt::SimSupervisor.

SimSuperPosition rt::StdBotCreator::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 from rt::SimSupervisor.

void rt::StdBotCreator::initSim (  Simulation *const    sim )  [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 from rt::SimSupervisor.


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