diva.compat.trace
Class TraceModel

java.lang.Object
  extended by diva.compat.trace.TraceModel

public class TraceModel
extends Object

A model that contains data for a TracePane.

Version:
$Revision: 1.11 $
Author:
John Reekie (johnr@eecs.berkeley.edu)

Nested Class Summary
static class TraceModel.Element
          A single element of a trace
static class TraceModel.Trace
          The data contained along a single trace
 
Constructor Summary
TraceModel()
          Create a new TraceModel with an unspecified initial capacity.
TraceModel(int capacity)
          Create a new TraceModel with the given initial capacity.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceModel

public TraceModel()
Create a new TraceModel with an unspecified initial capacity.


TraceModel

public TraceModel(int capacity)
Create a new TraceModel with the given initial capacity.

Method Detail

addTrace

public void addTrace(Object key,
                     TraceModel.Trace trace)
Add a new trace


clear

public void clear()
Remove all data from the model


getTrace

public TraceModel.Trace getTrace(String key)
Get the trace at the given key


getTrace

public TraceModel.Trace getTrace(int index)
Get the trace at the given index


size

public int size()
Get the number of traces


traceKeys

public Iterator traceKeys()
Get an iterator over all trace keys


traces

public Iterator traces()
Get an iterator over all traces



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