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

robrating.h

Go to the documentation of this file.
00001 /*
00002  * robrating.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00021 #ifndef __RT_RATING__
00022 #define __RT_RATING__
00023 
00024 #include "robfrontend.h"
00025 #include "robmanage.h"
00026 #include "robbase.h"
00027 
00028 #include <rtsystem.h>
00029 
00030 using namespace lrt;
00031 
00032 namespace rt {
00033 
00037 class RatingPlugin : public FrontendPlugin  
00038 {
00039 public:
00040         virtual FpInterpretePos getInterpretePos();
00041         virtual String getName();
00042         virtual String getHelpText();
00043         virtual bool interpreteParams(const Array<String>& params, Array<bool>& used);
00044         virtual void fillOptions(SimOptions& options);
00045         RatingPlugin(Frontend* parent);
00046         ~RatingPlugin() {}
00047 private:
00048         int endCycles;
00049 };
00050 
00051 class RatingSimSupervisor : public SimSupervisor 
00052 {
00053 public:
00054         RatingSimSupervisor(int endCycles);
00055         virtual SimSuperPosition getPreferredPosition();
00056         virtual unsigned long getStepCycles();
00057         virtual GameState exec(Simulation* const curSim);
00058         virtual void exitSim(Simulation* const curSim, const GameState& simResult);
00059 private:
00060         int endCycles;
00061         GameState retState;
00062 };
00063 
00064 } // namespace
00065 
00066 #endif
00067 

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer