|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object and.Mapping.Mapping
public class Mapping
Class representing the tasks mapping on clusters and/or nodes
Constructor Summary | |
---|---|
Mapping()
Default constructor |
Method Summary | |
---|---|
void |
addMapping(Association _a)
Add a mapping association in the general mapping. |
void |
addMapping(Cluster c,
java.util.ArrayList<GTask> at)
Add in the mapping an association between a cluster and tasks set. |
int |
calcDepExt()
Return the amount of external tasks dependencies, in cluster point of view. |
int |
getIdOfAssociation(GNode _g)
Return the position of the association containing the GNode _g. |
java.util.ArrayList<GNode> |
getMappedGNodes()
Return the list of GNodes on which tasks are mapped, in order of the task number. |
java.util.ArrayList<Association> |
getMapping()
Return the mapping done. |
void |
initMapping()
Initialization of the Mapping variables |
void |
insertMapping(Association _a)
Insert the association at the right place. |
void |
print()
Print the status of the mapping done, according to its type. |
GTask |
removeGNode(GNode _deadNode)
Remove a failed node from the mapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mapping()
Method Detail |
---|
public void initMapping()
public void addMapping(Cluster c, java.util.ArrayList<GTask> at)
c
- Cluster of the associationat
- Tasks set to be associatedpublic void addMapping(Association _a)
_a
- Association between a task and a nodepublic void insertMapping(Association _a)
_a
- The association to be insertedpublic GTask removeGNode(GNode _deadNode)
_deadNode
- The failed node
public java.util.ArrayList<GNode> getMappedGNodes()
public void print()
public java.util.ArrayList<Association> getMapping()
public int getIdOfAssociation(GNode _g)
_g
- The GNode to be search
public int calcDepExt()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |