ccvisu
Class ReaderDataGraphCVS

java.lang.Object
  extended byccvisu.ReaderData
      extended byccvisu.ReaderDataGraph
          extended byccvisu.ReaderDataGraphCVS

public class ReaderDataGraphCVS
extends ReaderDataGraph

Reader for CVS log files. Extracts the co-change graph from the CVS log info.

Version:
$Revision: 1.3 $; $Date: 2005/09/30 15:28:09 $
Author:
Dirk Beyer

Nested Class Summary
private  class ReaderDataGraphCVS.Revision
          Represents a CVS revision entry (an abstraction of it).
 
Field Summary
private  int timeWindow
          Time-window constant for transaction recovery, in milli-seconds.
 
Fields inherited from class ccvisu.ReaderDataGraph
endl
 
Fields inherited from class ccvisu.ReaderData
in
 
Constructor Summary
ReaderDataGraphCVS(java.io.BufferedReader in, int timeWindow)
          Constructor.
 
Method Summary
private  java.lang.Long parseDate(java.lang.String dateStr)
          Parses the date entry.
protected  java.util.Vector readEdges()
          Reads the edges of a graph in CVS log format from stream reader in, and stores them in a list (of GraphEdgeString elements).
private  java.util.Vector readRevisionList()
          Parses the CVS log data and extracts revisions.
private  void recoverTransactions(java.util.Vector revisionList)
          Recovers the change transactions for the co-change graph from the revision information, i.e., it assignes the transaction ids for the revisions.
 
Methods inherited from class ccvisu.ReaderDataGraph
read, readGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeWindow

private int timeWindow
Time-window constant for transaction recovery, in milli-seconds.

Constructor Detail

ReaderDataGraphCVS

public ReaderDataGraphCVS(java.io.BufferedReader in,
                          int timeWindow)
Constructor.

Parameters:
in - Stream reader object.
timeWindow - Time window for transaction recovery, in milli-seconds (default: 180'000).
Method Detail

readEdges

protected java.util.Vector readEdges()
Reads the edges of a graph in CVS log format from stream reader in, and stores them in a list (of GraphEdgeString elements).

Specified by:
readEdges in class ReaderDataGraph
Returns:
List of string edges.

parseDate

private java.lang.Long parseDate(java.lang.String dateStr)
Parses the date entry.

Parameters:
dateStr - The CVS date entry string.
Returns:
Long value of the date, or null if dateStr is not a valid date entry.

readRevisionList

private java.util.Vector readRevisionList()
Parses the CVS log data and extracts revisions.

Returns:
List of revisions.

recoverTransactions

private void recoverTransactions(java.util.Vector revisionList)
Recovers the change transactions for the co-change graph from the revision information, i.e., it assignes the transaction ids for the revisions.

Parameters:
revisionList - is a list of revisions. IN/OUT parameter.