Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cost.h

Go to the documentation of this file.
00001 /* unit_cost.h    $Revision: 1.2 $ $Date: 2005/12/10 20:33:54 $
00002    Copyright (C) 2000 University of Bonn.
00003    http://www.ikp.uni-bonn.de/boss
00004 
00005    This program is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU General Public License
00007    as published by the Free Software Foundation; either version 2
00008    of the License, or (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA  02111-1307, USA.
00019 */
00020 
00028 #ifndef COST_H
00029 #define COST_H
00030 
00031 using namespace std;
00032 
00033 #include "boss_node.h"
00034 #include "boss_utility/boss_config.h"
00035 
00044 class Cost {
00045  protected:
00047   BOSS::Config & cl;
00048 
00049  public:
00051   Cost(BOSS::Config & __cl) : cl(__cl) {}
00053   virtual ~Cost() {}
00055   virtual float operator () (const BOSS_Node * l, const BOSS_Node * r) = 0;
00057   virtual double operator () (const BOSS_Node * u) const = 0;
00058 
00059 };
00060  //end of boss_unitselection group
00062 #endif
00063 

Generated on Tue Dec 20 23:14:38 2005 for BOSS by doxygen 1.3.6