00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __topology_h
00010 #define __topology_h
00011
00012 #include <vector>
00013
00014 #include "cooperative.h"
00015
00016 class Topology {
00017
00018 public:
00019
00020 virtual ~Topology ();
00021
00022 void add (Cooperative & __mig);
00023
00024 virtual void setNeighbors (Cooperative * __mig,
00025 std :: vector <Cooperative *> & __from,
00026 std :: vector <Cooperative *> & __to) = 0;
00027
00028 protected:
00029
00030 std :: vector <Cooperative *> mig ;
00031 };
00032
00033 #endif