|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccvisu.ReaderData
ccvisu.ReaderDataGraph
public abstract class ReaderDataGraph
Reader for input graphs.
Different concrete graph readers return what they read in String format
(list of edges of type GraphEdgeString
)
when readEdges()
is called.
One single transformation method (readGraph()
of this class)
transforms the string representation into the final format
(GraphData
object with edges of type GraphEdgeInt
).
Field Summary | |
---|---|
protected static java.lang.String |
endl
End of line. |
Fields inherited from class ccvisu.ReaderData |
---|
in |
Constructor Summary | |
---|---|
ReaderDataGraph(java.io.BufferedReader in)
Constructor. |
Method Summary | |
---|---|
void |
read(GraphData graph)
Reads the graph data from stream reader in . |
protected abstract java.util.Vector |
readEdges()
Reads the edges of a graph from stream reader in ,
and stores them in a list (of GraphEdgeString elements). |
static void |
readGraph(GraphData graph,
java.util.Vector stringEdges)
Reads the graph data from list of string edges (see class comment). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String endl
Constructor Detail |
---|
public ReaderDataGraph(java.io.BufferedReader in)
in
- Stream reader object.Method Detail |
---|
public void read(GraphData graph)
in
.
read
in class ReaderData
graph
- GraphData
object to store the graph data in.public static void readGraph(GraphData graph, java.util.Vector stringEdges)
protected abstract java.util.Vector readEdges()
in
,
and stores them in a list (of GraphEdgeString
elements).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |