moeoDiversityAssignment.h

00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
00002 
00003 //-----------------------------------------------------------------------------
00004 // moeoDiversityAssignment.h
00005 // (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007
00006 /*
00007     This library...
00008 
00009     Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr
00010  */
00011 //-----------------------------------------------------------------------------
00012 
00013 #ifndef MOEODIVERSITYASSIGNMENT_H_
00014 #define MOEODIVERSITYASSIGNMENT_H_
00015 
00016 #include <eoFunctor.h>
00017 #include <eoPop.h>
00018 
00022 template < class MOEOT >
00023 class moeoDiversityAssignment : public eoUF < eoPop < MOEOT > &, void >
00024 {
00025 public:
00026 
00028     typedef typename MOEOT::ObjectiveVector ObjectiveVector;
00029 
00030 
00036     virtual void updateByDeleting(eoPop < MOEOT > & _pop, ObjectiveVector & _objVec) = 0;
00037 
00038 
00044     void updateByDeleting(eoPop < MOEOT > & _pop, MOEOT & _moeo)
00045     {
00046         updateByDeleting(_pop, _moeo.objectiveVector());
00047     }
00048 
00049 };
00050 
00051 #endif /*MOEODIVERSITYASSIGNMENT_H_*/

Generated on Tue Jun 26 15:13:04 2007 for ParadisEO-MOEO by  doxygen 1.4.7