public static class TraceModel.Trace extends Object
Constructor and Description |
---|
Trace()
Create a new Trace with an unspecified initial capacity
|
Trace(int capacity)
Create a new Trace with the given initial capacity
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Trace()
public Trace(int capacity)
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)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.