baobab.trace
Class TraceSortedSet

java.lang.Object
  extended by baobab.trace.TraceSortedSet

public class TraceSortedSet
extends java.lang.Object

The TraceSortedSet class represents a set of traces on 1..elementSize (all traces have the same number of elements). The intern organization of this set allows automatic partial and required global compression of its data.

Version:
1.0, August 2006
Author:
Marilia Dias Vieira Braga

Constructor Summary
TraceSortedSet(int elementSize, int elementsByRule, boolean automaticCompression, int x, int y, int z)
           
 
Method Summary
 int addRule(Trace rule)
           
 int freeze(boolean compress)
           
 int freezeUntilHeight(int newFrozenHeight, boolean compress)
           
 long[] getSolutionsByHeight()
           
 java.util.Vector<Trace> getTraces()
           
 int[] getTracesByHeight()
           
 int[] getTracesByWidth()
           
 boolean isEmpty()
           
 Trace removeFirst()
           
 void setSolutionsByHeight(long[] solutionsByHeight)
           
 void setTracesByHeight(int[] tracesByHeight)
           
 void setTracesByWidth(int[] tracesByWidth)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TraceSortedSet

public TraceSortedSet(int elementSize,
                      int elementsByRule,
                      boolean automaticCompression,
                      int x,
                      int y,
                      int z)
Method Detail

isEmpty

public boolean isEmpty()

size

public int size()

getTraces

public java.util.Vector<Trace> getTraces()

removeFirst

public Trace removeFirst()

freezeUntilHeight

public int freezeUntilHeight(int newFrozenHeight,
                             boolean compress)

freeze

public int freeze(boolean compress)

addRule

public int addRule(Trace rule)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSolutionsByHeight

public long[] getSolutionsByHeight()

setSolutionsByHeight

public void setSolutionsByHeight(long[] solutionsByHeight)

getTracesByHeight

public int[] getTracesByHeight()

setTracesByHeight

public void setTracesByHeight(int[] tracesByHeight)

getTracesByWidth

public int[] getTracesByWidth()

setTracesByWidth

public void setTracesByWidth(int[] tracesByWidth)