ccvisu
Class ReaderDataGraph

java.lang.Object
  extended by ccvisu.ReaderData
      extended by ccvisu.ReaderDataGraph
Direct Known Subclasses:
ReaderDataGraphAUX, ReaderDataGraphCVS, ReaderDataGraphDOX, ReaderDataGraphFilter, ReaderDataGraphRSF, ReaderDataGraphSVN

public abstract class ReaderDataGraph
extends ReaderData

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).

Version:
$Revision: 1.43 $; $Date: 2007/12/15 02:03:35 $
Author:
Dirk Beyer

Field Summary
protected static java.lang.String endl
          End of line.
 
Fields inherited from class ccvisu.ReaderData
mIn, mVerbosity
 
Constructor Summary
ReaderDataGraph(java.io.BufferedReader in, Options.Verbosity pVerbosity)
          Constructor.
 
Method Summary
private  void initializeGraph(GraphData pGraph)
          Reads the graph data from list of string edges (see class comment).
 void read(GraphData pGraph)
          Reads the graph data from stream reader in.
abstract  Relation readTuples()
          Reads the edges of a graph from stream reader in, and stores them in a list (of GraphEdgeString elements).
 
Methods inherited from class ccvisu.ReaderData
mkExtensionFileFilter, mkExtensionFileFilter, mkExtensionFileFilter, readEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endl

protected static final java.lang.String endl
End of line.

Constructor Detail

ReaderDataGraph

public ReaderDataGraph(java.io.BufferedReader in,
                       Options.Verbosity pVerbosity)
Constructor.

Parameters:
in - Stream reader object.
Method Detail

read

public void read(GraphData pGraph)
Reads the graph data from stream reader in.

Specified by:
read in class ReaderData
Parameters:
pGraph - GraphData object to store the graph data in.

initializeGraph

private void initializeGraph(GraphData pGraph)
Reads the graph data from list of string edges (see class comment).


readTuples

public abstract Relation readTuples()
Reads the edges of a graph from stream reader in, and stores them in a list (of GraphEdgeString elements).

Returns:
List of string edges.