SimJava 2.0.1

eduni.simdiag
Class TraceSaver

Object
  extended by TraceSaver
All Implemented Interfaces:
Traceable, TraceListener, EventListener

public class TraceSaver
extends Object
implements Traceable, TraceListener

TraceSaver Stores trace events in a file.


Field Summary
 
Fields inherited from interface Traceable
DISPLAY, LAYOUT, PAUSE, RUN, STOP, TRACE
 
Constructor Summary
TraceSaver(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceSaver

public TraceSaver(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

SimJava 2.0.1

The University of Edinburgh, 2009