eduni.simdiag
Class TraceSaver

java.lang.Object
  |
  +--eduni.simdiag.TraceSaver
All Implemented Interfaces:
java.util.EventListener, Traceable, TraceListener

public class TraceSaver
extends java.lang.Object
implements Traceable, TraceListener

Stores trace events in a file. Currently not used in the Job Shop Simulator, but might be usefull in a future implemnitation.

Version:
1.1

Field Summary
private  java.lang.String fname
           
private  boolean isBroke
           
private  java.io.PrintWriter trcstream
           
 
Fields inherited from interface eduni.simdiag.Traceable
DISPLAY, LAYOUT, PAUSE, RUN, STOP, TRACE
 
Constructor Summary
TraceSaver(java.lang.String fname)
          Creates a trace saver with the given filename
 
Method Summary
(package private)  void close()
           
 void handleTrace(TraceEventObject e)
          Responds to a trace input event by writing it on to the file.
(package private)  void open()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

trcstream

private java.io.PrintWriter trcstream

fname

private java.lang.String fname

isBroke

private boolean isBroke
Constructor Detail

TraceSaver

public TraceSaver(java.lang.String fname)
Creates a trace saver with the given filename
Method Detail

open

void open()

close

void close()

handleTrace

public void handleTrace(TraceEventObject e)
Responds to a trace input event by writing it on to the file.
Specified by:
handleTrace in interface TraceListener