eduni.simdiag
Class TraceEventObject
java.lang.Object
|
+--java.util.EventObject
|
+--eduni.simdiag.TraceEventObject
- All Implemented Interfaces:
- java.io.Serializable, Traceable
- public class TraceEventObject
- extends java.util.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
- Version:
- 1.1
- See Also:
TimingDiagram
,
TraceListener
, Serialized Form
Field Summary |
(package private) int |
cmd
|
(package private) java.lang.String |
traceline
|
Fields inherited from class java.util.EventObject |
source |
Method Summary |
int |
getCmd()
Returns the trace command |
java.lang.String |
getLine()
Returns the trace line |
void |
set(int cmd)
Sets this command to one of the Traceable commands |
void |
set(java.lang.String traceline)
Sets this command to a trace line string |
void |
set(TraceEventObject t)
Sets this command to a trace object |
java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
traceline
java.lang.String traceline
cmd
int cmd
TraceEventObject
public TraceEventObject(java.lang.Object o,
java.lang.String traceline)
- Creates a trace event object with a string
TraceEventObject
public TraceEventObject(java.lang.Object o,
TraceEventObject t)
- Creates a trace event object from another
TraceEventObject
public TraceEventObject(java.lang.Object o,
int cmd)
- Creates a trace event command
- See Also:
Traceable
set
public void set(java.lang.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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.EventObject
getLine
public java.lang.String getLine()
- Returns the trace line
getCmd
public int getCmd()
- Returns the trace command