diva.compat.trace
Class TraceModel.Element

java.lang.Object
  extended by diva.compat.trace.TraceModel.Element
Enclosing class:
TraceModel

public static class TraceModel.Element
extends Object

A single element of a trace


Field Summary
 int closure
          The closure status
 int intValue
          The integer value
static int OPEN_END
          Say that the element is open at the end
static int OPEN_START
          Say that the element is open at the start
 double startTime
          The start time
 double stopTime
          The end time
 Object userObject
          The object value
 
Constructor Summary
TraceModel.Element()
          Create a new element with no values set.
TraceModel.Element(double startTime, double stopTime, int value)
          Create a new element with the given start time, stop time, and integer value.
TraceModel.Element(double startTime, double stopTime, int value, Object o)
          Create a new element with the given start time, stop time, integer value, and user object.
 
Method Summary
 int getID()
          Get the id of the element.
 TraceModel.Trace getTrace()
          Get the trace that owns this element.
 String toString()
          Print a string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPEN_START

public static final int OPEN_START
Say that the element is open at the start

See Also:
Constant Field Values

OPEN_END

public static final int OPEN_END
Say that the element is open at the end

See Also:
Constant Field Values

closure

public int closure
The closure status


startTime

public double startTime
The start time


stopTime

public double stopTime
The end time


intValue

public int intValue
The integer value


userObject

public Object userObject
The object value

Constructor Detail

TraceModel.Element

public TraceModel.Element()
Create a new element with no values set.


TraceModel.Element

public TraceModel.Element(double startTime,
                          double stopTime,
                          int value)
Create a new element with the given start time, stop time, and integer value.


TraceModel.Element

public TraceModel.Element(double startTime,
                          double stopTime,
                          int value,
                          Object o)
Create a new element with the given start time, stop time, integer value, and user object.

Method Detail

getID

public int getID()
Get the id of the element. Once the element has been added to a trace, the if is guaranteed to be unique within that trace.


getTrace

public TraceModel.Trace getTrace()
Get the trace that owns this element.


toString

public String toString()
Print a string representation

Overrides:
toString in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.