|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object and.Mapping.Grid
public class Grid
Class representing a computing grid, composed of multiple clusters
Constructor Summary | |
---|---|
Grid()
Default constructor |
Method Summary | |
---|---|
void |
addCluster(Cluster c)
Add a cluster in the grid. |
void |
addClusters(java.util.ArrayList<Cluster> al)
Add a clusters list in the grid. |
java.util.ArrayList<Cluster> |
getClusters()
Return the grid in a clusters list view. |
double |
getDistance(GNode _g1,
GNode _g2)
Compute and return the distance between two clusters. |
java.util.ArrayList<GNode> |
getGNodes()
Return the list of computing nodes in the grid. |
double |
getHeterogenityDegre()
Compute the heterogeneity degree of the grid. |
int |
getNbCluster()
Return the amount of clusters in the grid. |
int |
getNbGNode()
Return the amount of computing nodes in the grid. |
void |
initClusters()
Initialization of clusters. |
void |
print()
Print a comprehensible text version of the grid. |
void |
removeGNode(GNode _dead)
Remove a computing node from the grid. |
void |
updateGrid(java.util.ArrayList<GNode> _gnodes)
Plop !! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grid()
Method Detail |
---|
public void addCluster(Cluster c)
c
- Cluster to be addpublic void addClusters(java.util.ArrayList<Cluster> al)
al
- List of clusters to be addpublic int getNbCluster()
public int getNbGNode()
public java.util.ArrayList<Cluster> getClusters()
public void initClusters()
public double getDistance(GNode _g1, GNode _g2)
_g1
- First cluster_g2
- Second cluster
public java.util.ArrayList<GNode> getGNodes()
public void updateGrid(java.util.ArrayList<GNode> _gnodes)
_gnodes
- public void removeGNode(GNode _dead)
_dead
- The node to be removedpublic double getHeterogenityDegre()
public void print()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |