|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object and.Mapping.Utils
public class Utils
Class providing some tools to the library
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static GNode |
createGNode()
Creation of the representation of the node in the Mapping point of view. |
static Grid |
createGridG5k(java.util.ArrayList<GNode> _an)
Creation of the representation of the grid, according to clusters into sites. |
static Graph |
readGraph(java.lang.String _path,
java.lang.String _file)
Read an application Graph from a file. |
static Grid |
readGrid(java.lang.String _path,
java.lang.String _file)
Read a Grid graph from a file. |
static void |
writeGraph(Graph _gr,
java.lang.String _file,
java.lang.String _path)
Write an application Graph in a file. |
static void |
writeGrid(Grid _gl,
java.lang.String _file,
java.lang.String _path)
Write the Grid object in an XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static GNode createGNode()
public static Grid createGridG5k(java.util.ArrayList<GNode> _an)
_an
- the list of computing nodes connected
public static void writeGrid(Grid _gl, java.lang.String _file, java.lang.String _path)
_gl
- Grid graph to be write_file
- File's name_path
- File's pathpublic static void writeGraph(Graph _gr, java.lang.String _file, java.lang.String _path)
_gr
- Application Graph to be write_file
- File's name_path
- File's pathpublic static Graph readGraph(java.lang.String _path, java.lang.String _file)
_file
- File's name_path
- File's path
public static Grid readGrid(java.lang.String _path, java.lang.String _file)
_file
- File's name_path
- File's path
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |