|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object and.Mapping.Algo
public abstract class Algo
Abstract class defining the structure for mapping algorithms
Field Summary | |
---|---|
protected Grid |
gl
|
protected Graph |
gr
|
protected Mapping |
mp
|
Constructor Summary | |
---|---|
Algo()
Default constructor. |
|
Algo(Graph _gr,
Grid _gl)
Constructor. |
Method Summary | |
---|---|
Mapping |
getMapping()
Return mapping done. |
abstract GNode |
getOtherGNode(java.util.ArrayList<GNode> _ag)
Find a new node, which may not takes part into the computation process. |
abstract void |
map()
Mapping function. |
abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Graph gr
protected Grid gl
protected Mapping mp
Constructor Detail |
---|
public Algo()
public Algo(Graph _gr, Grid _gl)
_gr
- Tasks graph to be mapped_gl
- Grid graphMethod Detail |
---|
public abstract void map()
public abstract GNode replaceNode(GNode _dead, java.util.ArrayList<GNode> _ag)
_dead
- The fallen node to be replaced_ag
- The list of all available computing nodes
public abstract GNode getOtherGNode(java.util.ArrayList<GNode> _ag)
public Mapping getMapping()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |