|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.trace.TraceCoder
public class TraceCoder
The TraceCoder class codifies a trace as a bidimensional array of bytes.
Method Summary | |
---|---|
byte[][] |
code(Trace decoded)
|
int[] |
code(Trace decoded,
byte[][] coded,
int pos1,
int pos2)
|
byte[][] |
code(java.util.Vector<Trace> rules)
Codes a vector of objects as a bidimensional array of bytes. |
Trace |
decode(byte[][] coded)
|
java.util.Vector<Trace> |
decode(byte[][] codedElement,
int numberOfCodedTraces)
Decodes a bidimensional array of bytes as a vector of objects. |
Trace |
decode(byte[][] coded,
int pos1,
int len1,
int pos2,
int len2)
|
int |
getCodedArrayLength()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public byte[][] code(Trace decoded)
public Trace decode(byte[][] coded)
public int[] code(Trace decoded, byte[][] coded, int pos1, int pos2)
public Trace decode(byte[][] coded, int pos1, int len1, int pos2, int len2)
public byte[][] code(java.util.Vector<Trace> rules)
Coder
code
in interface Coder<Trace>
rules
- A vector of objects
public java.util.Vector<Trace> decode(byte[][] codedElement, int numberOfCodedTraces)
Coder
decode
in interface Coder<Trace>
codedElement
- the coded objects as a bidimensional array of bytesnumberOfCodedTraces
- the number of objects that are coded
public int getCodedArrayLength()
getCodedArrayLength
in interface Coder<Trace>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |