public class TraceModel extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TraceModel.Element
A single element of a trace
|
static class |
TraceModel.Trace
The data contained along a single trace
|
Constructor and Description |
---|
TraceModel()
Create a new TraceModel with an unspecified initial capacity.
|
TraceModel(int capacity)
Create a new TraceModel with the given initial capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
addTrace(Object key,
TraceModel.Trace trace)
Add a new trace
|
void |
clear()
Remove all data from the model
|
TraceModel.Trace |
getTrace(int index)
Get the trace at the given index
|
TraceModel.Trace |
getTrace(String key)
Get the trace at the given key
|
int |
size()
Get the number of traces
|
Iterator |
traceKeys()
Get an iterator over all trace keys
|
Iterator |
traces()
Get an iterator over all traces
|
public TraceModel()
public TraceModel(int capacity)
public void addTrace(Object key, TraceModel.Trace trace)
public void clear()
public TraceModel.Trace getTrace(String key)
public TraceModel.Trace getTrace(int index)
public int size()
public Iterator traceKeys()
public Iterator traces()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.