baobab.trace
Class DecomposedTrace

java.lang.Object
  extended by baobab.trace.Trace
      extended by baobab.trace.DecomposedTrace
All Implemented Interfaces:
Joinable<Trace>

public class DecomposedTrace
extends Trace

The DecomposedTrace class represents a decomposed trace.

Author:
Marilia Dias Vieira Braga

Constructor Summary
DecomposedTrace(int[] decomposition, Trace[] parts, int elementSize)
          Constructs a DecomposedTrace
 
Method Summary
 void addElements(java.util.Vector<BitList> elements, int elementSize, int prevNumberOfElements)
          Adds a new element to this trace
 java.lang.String toString(int elementSize, int numberOfElements)
          Produces a string representation of a trace
 java.lang.String toString(int elementSize, int numberOfElements, java.lang.String[] mapIntToName, java.util.Hashtable<java.lang.String,java.util.TreeSet<java.lang.String>> mapNamesToDescriptions, boolean condenseNames)
          Produces a string representation of a decomposed trace
 
Methods inherited from class baobab.trace.Trace
addElement, getBytes, getDebugElementData, getElements, getElementsAsBitLists, getHeightOf, getNumberOfOccurrences, height, incrementDebugNumberOfElements, incrementOccurrences, isEmpty, join, normalFormString, normalFormString, parse, parse, parseBitList, reverse, setDebugElementData, split, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecomposedTrace

public DecomposedTrace(int[] decomposition,
                       Trace[] parts,
                       int elementSize)
Constructs a DecomposedTrace

Parameters:
decomposition - the number of elements in each component trace
parts - the component traces
elementSize - the maximum value for all elements
Method Detail

addElements

public void addElements(java.util.Vector<BitList> elements,
                        int elementSize,
                        int prevNumberOfElements)
Adds a new element to this trace

Parameters:
elements - the elements to be added, represented a vector of BitList
elementSize - the maximum value for all elements of this trace
prevNumberOfElements - the previous number of elements on this trace

toString

public java.lang.String toString(int elementSize,
                                 int numberOfElements)
Produces a string representation of a trace

Overrides:
toString in class Trace
Parameters:
elementSize - the maximum value for all elements of this trace
numberOfElements - the number of elements on this trace
Returns:
a string

toString

public java.lang.String toString(int elementSize,
                                 int numberOfElements,
                                 java.lang.String[] mapIntToName,
                                 java.util.Hashtable<java.lang.String,java.util.TreeSet<java.lang.String>> mapNamesToDescriptions,
                                 boolean condenseNames)
Produces a string representation of a decomposed trace

Overrides:
toString in class Trace
Parameters:
elementSize - the maximum value for all elements of this trace
numberOfElements - the number of elements on this trace
Returns:
a string