SimJava
v2.0

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

TraceSaver Stores trace events in a file.


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
 void handleTrace(TraceEventObject e)
          Responds to a trace input event by writing it on to the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceSaver

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

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

SimJava
v2.0

The University of Edinburgh, 2002