com.speckled.specksim.datagen
Class DataGenerator

java.lang.Object
  extended by com.speckled.specksim.datagen.DataGenerator
All Implemented Interfaces:
ProgressListener

public class DataGenerator
extends java.lang.Object
implements ProgressListener

Class that performs a series of data generation runs, according to the configuration files passed in on the command line

Author:
ryanm

Constructor Summary
DataGenerator(java.io.File file)
          Attempts to perform a datageneration run on the supplied file
 
Method Summary
 void pointProgress(float progress)
          Called to indicate progress on the next data point
 void processFile()
          Begins processing of the file.
 void processFile(java.io.File outputBase)
          Begins processing of the file.
static void processRunFiles(java.util.List<java.io.File> files)
          Processes each of the input run files in turn
 void repetitionProgress(float progress)
          Called to indicate progress on the current repetition of the generation
 void runEnded()
          Called to indicate that the run has ended
 void runProgress(float progress)
          Called to indicate progress on the current run.
 void runStarted()
          Called to indicate that the run has started
 void writingFile()
          Called to indicate that the output file is being written
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataGenerator

public DataGenerator(java.io.File file)
Attempts to perform a datageneration run on the supplied file

Parameters:
file - The input data generatio run file
Method Detail

processRunFiles

public static void processRunFiles(java.util.List<java.io.File> files)
Processes each of the input run files in turn

Parameters:
files -

processFile

public void processFile()
Begins processing of the file. Progress, if any, will be posted to stdOut


processFile

public void processFile(java.io.File outputBase)
Begins processing of the file. Progress, if any, will be posted to stdOut

Parameters:
outputBase - The base directory for the output file. Null for the current directory

pointProgress

public void pointProgress(float progress)
Description copied from interface: ProgressListener
Called to indicate progress on the next data point

Specified by:
pointProgress in interface ProgressListener
Parameters:
progress - The progress so far. 0 = no progress, 1 = finished

repetitionProgress

public void repetitionProgress(float progress)
Description copied from interface: ProgressListener
Called to indicate progress on the current repetition of the generation

Specified by:
repetitionProgress in interface ProgressListener
Parameters:
progress - The progress so far. 0 = no points completed, 1 = all points completed

runEnded

public void runEnded()
Description copied from interface: ProgressListener
Called to indicate that the run has ended

Specified by:
runEnded in interface ProgressListener

runProgress

public void runProgress(float progress)
Description copied from interface: ProgressListener
Called to indicate progress on the current run.

Specified by:
runProgress in interface ProgressListener
Parameters:
progress - The progress so far. 0 = no progress, 1 = all repetitions completed

runStarted

public void runStarted()
Description copied from interface: ProgressListener
Called to indicate that the run has started

Specified by:
runStarted in interface ProgressListener

writingFile

public void writingFile()
Description copied from interface: ProgressListener
Called to indicate that the output file is being written

Specified by:
writingFile in interface ProgressListener