00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Robot Group Leipzig * 00003 * martius@informatik.uni-leipzig.de * 00004 * fhesse@informatik.uni-leipzig.de * 00005 * der@informatik.uni-leipzig.de * 00006 * guettler@informatik.uni-leipzig.de * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This program is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU General Public License * 00019 * along with this program; if not, write to the * 00020 * Free Software Foundation, Inc., * 00021 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00022 *************************************************************************** 00023 * * 00024 * DESCRIPTION * 00025 * Interface for any type of measure. * 00026 * * 00027 * $Log: imeasure.h,v $ 00028 * Revision 1.1 2009/03/27 06:16:57 guettler 00029 * support for gcc 4.3 compatibility (has to be checked), StatisticTools moves from utils to statistictools 00030 * * 00031 * * 00032 **************************************************************************/ 00033 /* 00034 * imeasure.h 00035 * 00036 * Created on: 26.01.2009 00037 * Author: guettler 00038 */ 00039 00040 #ifndef IMEASURE_H_ 00041 #define IMEASURE_H_ 00042 00043 /** 00044 * Class used by StatisticTools. 00045 * Provides an interface for any kind of time series analysis. 00046 * Every step the StatisticTools calls step. 00047 * @sa StatisticTools 00048 * @sa HUDStatisticsManager 00049 * @sa AbstractMeasure 00050 */ 00051 class IMeasure { 00052 public: 00053 00054 virtual ~IMeasure() {}; 00055 00056 virtual void step() = 0; 00057 00058 virtual std::string getName() const = 0; 00059 00060 virtual double getValue() const = 0; 00061 00062 virtual double& getValueAddress() = 0; 00063 00064 virtual void setStepSize(int newStepSize) = 0; 00065 00066 virtual int getStepSize() const = 0; 00067 00068 virtual long getActualStep() const = 0; 00069 }; 00070 00071 #endif /* IMEASURE_H_ */