Add topology to IslandModel, sending messages mecanism, rewrite Bimap container

This commit is contained in:
quemy 2012-11-24 15:26:11 +01:00
commit b3f83717d6
10 changed files with 162 additions and 63 deletions

View file

@ -52,13 +52,13 @@ public :
* Return a vector containing the index of nearby nodes according to the topology
* @param idIsland index of the node of which you want the neighbors.
*/
virtual std::vector<unsigned> getIdNeighbors(unsigned idIsland) const =0;
virtual std::vector<unsigned> getIdNeighbors(unsigned idIsland) const = 0;
/**
* Construct or re-construct a topology with the given number of nodes.
* @param nbIsland number of nodes for the topology
*/
virtual void construct(unsigned nbIsland) =0;
virtual void construct(unsigned nbIsland) = 0;
};
}

View file

@ -27,6 +27,9 @@ ParadisEO WebSite : http://paradiseo.gforge.inria.fr
Contact: paradiseo-help@lists.gforge.inria.fr
*/
#ifndef TOPOLOGY_H_
#define TOPOLOGY_H_
#include <vector>
#include <topology/abstractTopology.h>
@ -76,3 +79,5 @@ private :
}
}
#endif