|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.compat.trace.TraceModel.Trace
public static class TraceModel.Trace
The data contained along a single trace
Constructor Summary | |
---|---|
TraceModel.Trace()
Create a new Trace with an unspecified initial capacity |
|
TraceModel.Trace(int capacity)
Create a new Trace with the given initial capacity |
Method Summary | |
---|---|
void |
add(TraceModel.Element elt)
Append an element to the trace. |
Iterator |
elements()
Get an iterator over all elements |
TraceModel.Element |
get(double location)
Get the element that overlaps the given time, or null if there isn't one. |
TraceModel.Element |
get(int index)
Get an element at the specified index. |
int |
getID()
Get the id of the trace. |
Object |
getUserObject()
Get the user object. |
void |
insert(TraceModel.Element elt)
Insert an element according to its start time The ID of the element will be set to a unique value within this trace. |
void |
setUserObject(Object o)
Set the user object. |
void |
truncate(double startTime)
Truncate the trace by removing all elements less than the given start time. |
void |
truncateEnd(double endTime)
Truncate the trace by removing all elements greater than the given end time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TraceModel.Trace()
public TraceModel.Trace(int capacity)
Method Detail |
---|
public void add(TraceModel.Element elt)
public Iterator elements()
public TraceModel.Element get(int index)
public TraceModel.Element get(double location)
public int getID()
public Object getUserObject()
public void insert(TraceModel.Element elt)
public void setUserObject(Object o)
public void truncate(double startTime)
public void truncateEnd(double endTime)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |