|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--NetData
Class for reading datasets from files. Every dataset is defined by a base name and consists of two files,
Field Summary | |
(package private) java.util.HashMap |
edges
HashMap holding edge-data. |
(package private) java.util.HashMap |
knots
HashMap holding knot-data. |
Constructor Summary | |
NetData(java.lang.String baseFileName)
Read data from Files specified by baseFileName. |
Method Summary | |
Edge |
getEdge(int id)
Return Edge object for edge with specified id. |
java.util.HashMap |
getEdges()
Return HashMap holding edge data. |
Knot |
getKnot(int id)
Return Knot object for knot with specified id. |
java.util.HashMap |
getKnots()
Return HashMap holding knot data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.HashMap knots
java.util.HashMap edges
Constructor Detail |
public NetData(java.lang.String baseFileName) throws java.io.FileNotFoundException, java.lang.NumberFormatException, java.util.NoSuchElementException, java.io.IOException
baseFileName
- Basename of files to read.
java.io.FileNotFoundException
- If any of the data files could not be found.
java.lang.NumberFormatException
- If there is an error in any of the data files.
java.io.IOException
- If there is a problem reading any of the data files.
java.util.NoSuchElementException
Method Detail |
public java.util.HashMap getKnots()
public java.util.HashMap getEdges()
public Knot getKnot(int id)
id
- ID of the knot.
public Edge getEdge(int id)
id
- ID of the edge.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |