|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--utilities.GraphIO
A class for importing and exporting graph object into Individuals
Constructor Summary | |
GraphIO()
|
Method Summary | |
static Individual[] |
adjacencyMatrix(int[][] m)
Turns an adjacency matrix into a collection of Individuals. |
static java.util.HashSet |
readJobsFile(java.lang.String fn)
A function to read jobs files. |
static int[][] |
stringMatrix(java.lang.String s)
A function to turn a string representing an adjacency matrix into an integer matrix. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphIO()
Method Detail |
public static java.util.HashSet readJobsFile(java.lang.String fn) throws ModelError, java.io.FileNotFoundException, java.io.IOException
fn
- The file name of the jobs file
ModelError
java.io.FileNotFoundException
java.io.IOException
public static int[][] stringMatrix(java.lang.String s) throws ModelError
s
- The string to be processed
ModelError
public static Individual[] adjacencyMatrix(int[][] m)
m
- The adjacency matrix
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |