generator_lib
Class GeneratorOutput

java.lang.Object
  extended by generator_lib.GeneratorOutput

public class GeneratorOutput
extends java.lang.Object

The GeneratorOutput class assists the TraceGenerator driver program in writing data to the trace file


Field Summary
private  Globals GLOBALS
          The Network parameterization object
private  java.io.PrintWriter out
          Output stream to the trace file
 
Constructor Summary
GeneratorOutput(java.lang.String output, Globals GLOBALS)
          Construct a GeneratorOutput object
 
Method Summary
 void shutdown()
          Shutdown (flush and close) the output stream
 void writeHeader()
          Write the header (mostly GLOBAL variables) data to the trace file.
 void writeLibraries(Network nw)
          Write file library data to the trace file
 void writeTrans(Transaction trans)
          Write a single transaction to the trace file
 void writeUsers(Network nw)
          Write User library data to the trace file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBALS

private final Globals GLOBALS
The Network parameterization object


out

private java.io.PrintWriter out
Output stream to the trace file

Constructor Detail

GeneratorOutput

public GeneratorOutput(java.lang.String output,
                       Globals GLOBALS)
Construct a GeneratorOutput object

Parameters:
output - Filename/path of the trace file to be written
GLOBALS - The Network parameterization object
Method Detail

writeHeader

public void writeHeader()
Write the header (mostly GLOBAL variables) data to the trace file.


writeUsers

public void writeUsers(Network nw)
Write User library data to the trace file

Parameters:
nw - The Network whose User data to write

writeLibraries

public void writeLibraries(Network nw)
Write file library data to the trace file

Parameters:
nw - The Network whose file data to write

writeTrans

public void writeTrans(Transaction trans)
Write a single transaction to the trace file

Parameters:
trans - The Transaction whose data to write

shutdown

public void shutdown()
Shutdown (flush and close) the output stream