|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object and.Mapping.Algo and.Mapping.DefaultMapping
public class DefaultMapping
Implementation of JaceP2P default mapping
Field Summary |
---|
Fields inherited from class and.Mapping.Algo |
---|
gl, gr, mp |
Constructor Summary | |
---|---|
DefaultMapping()
Default constructor. |
|
DefaultMapping(Graph _gr,
Grid _gd,
java.util.ArrayList<GNode> _gnodes)
Constructor. |
Method Summary | |
---|---|
GNode |
getOtherGNode(java.util.ArrayList<GNode> _ag)
Find a new node, which may not takes part into the computation process. |
void |
map()
Mapping function. |
GNode |
replaceNode(GNode _dead,
java.util.ArrayList<GNode> _ag)
Replace a fallen node by a new one, according to the mapping policy. |
Methods inherited from class and.Mapping.Algo |
---|
getMapping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMapping()
public DefaultMapping(Graph _gr, Grid _gd, java.util.ArrayList<GNode> _gnodes)
_gr
- Tasks graph to be mapped_gd
- Grid graphMethod Detail |
---|
public void map()
Algo
map
in class Algo
public GNode replaceNode(GNode _dead, java.util.ArrayList<GNode> _ag)
Algo
replaceNode
in class Algo
_dead
- The fallen node to be replaced_ag
- The list of all available computing nodes
public GNode getOtherGNode(java.util.ArrayList<GNode> _ag)
Algo
getOtherGNode
in class Algo
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |