baobab.trace
Class TraceSortedSet
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TraceSortedSet
public TraceSortedSet(int elementSize,
int elementsByRule,
boolean automaticCompression,
int x,
int y,
int z)
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)