randoop.experiments
Class DataFlowOutput

Object
  extended by DataFlowOutput
All Implemented Interfaces:
Serializable

public class DataFlowOutput
extends Object
implements Serializable

The output created by DataFlow consists of a collection of results, one for each sequence. Each result contains the sequence analyzed, the frontier branch that the sequence reaches, and the set of "interesting" variables affecting the outcome of the frontier branch.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 List<DFResultsOneSeq> results
           
 
Constructor Summary
Constructor and Description
DataFlowOutput(List<DFResultsOneSeq> results)
           
 
Method Summary
Modifier and Type Method and Description
static DataFlowOutput parse(String filename)
          Create a new DataFlowOutput from a test file.
 void toParseableFile(String outFile)
          Output this DataFlowOutput object as a text file.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

results

public List<DFResultsOneSeq> results
Constructor Detail

DataFlowOutput

public DataFlowOutput(List<DFResultsOneSeq> results)
Method Detail

parse

public static DataFlowOutput parse(String filename)
Create a new DataFlowOutput from a test file. The text file consists of a list of records, each as follows: START DFRESULT VARS ... ... ... END DFRESULT Where: is a string that can be parsed by the method cov.OneBranchInfo.parse(String). is a string that can be parsed by the method randoop.SequenceParser.parse(String). is the number of "interesting" variables in the sequence. Each ... is an interesting variable followed by interesting values for the variable, all on a single line and separated with whitespace. There are lines. Blank lines and comments between records are allowed and ignored. Comments are lines starting with "#". The records are used to create the list of DFResultsOneSeq objects. TODO potential problems: (1) last statement is sequence begins with "VARS"; (2) some is a string with whitespace.


toParseableFile

public void toParseableFile(String outFile)
Output this DataFlowOutput object as a text file.

Parameters:
outFile - The file where output is to be written. If outFile ends in ".gz" it will be output as a compressed file.

toString

public String toString()
Overrides:
toString in class Object