SimJava 2.0.1

eduni.simdiag
Class TraceEventObject

Object
  extended by EventObject
      extended by TraceEventObject
All Implemented Interfaces:
Traceable, Serializable

public class TraceEventObject
extends EventObject
implements Traceable

Timing diagram event object. This stores a single event for updating a timing diagram. The event format is described in the design document

See Also:
TimingDiagram, TraceListener, Serialized Form

Field Summary
(package private)  int cmd
           
(package private)  String traceline
           
 
Fields inherited from class EventObject
source
 
Fields inherited from interface Traceable
DISPLAY, LAYOUT, PAUSE, RUN, STOP, TRACE
 
Constructor Summary
TraceEventObject(Object o, int cmd)
          Creates a trace event command
TraceEventObject(Object o, String traceline)
          Creates a trace event object with a string
TraceEventObject(Object o, TraceEventObject t)
          Creates a trace event object from another
 
Method Summary
 int getCmd()
          Returns the trace command
 String getLine()
          Returns the trace line
 void set(int cmd)
          Sets this command to one of the Traceable commands
 void set(String traceline)
          Sets this command to a trace line string
 void set(TraceEventObject t)
          Sets this command to a trace object
 
Methods inherited from class EventObject
getSource, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

traceline

String traceline

cmd

int cmd
Constructor Detail

TraceEventObject

public TraceEventObject(Object o,
                        String traceline)
Creates a trace event object with a string


TraceEventObject

public TraceEventObject(Object o,
                        TraceEventObject t)
Creates a trace event object from another


TraceEventObject

public TraceEventObject(Object o,
                        int cmd)
Creates a trace event command

See Also:
Traceable
Method Detail

set

public void set(String traceline)
Sets this command to a trace line string


set

public void set(TraceEventObject t)
Sets this command to a trace object


set

public void set(int cmd)
Sets this command to one of the Traceable commands


getLine

public String getLine()
Returns the trace line


getCmd

public int getCmd()
Returns the trace command


SimJava 2.0.1

The University of Edinburgh, 2009