Add topology to IslandModel, sending messages mecanism, rewrite Bimap container
This commit is contained in:
parent
95b7b80f19
commit
b3f83717d6
10 changed files with 162 additions and 63 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue