|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.counter.PermutationCounterCoder
public class PermutationCounterCoder
The TraceCoder class codifies a trace as a bidimensional array of bytes.
Constructor Summary | |
---|---|
PermutationCounterCoder(int permutationSize)
Constructs a TraceCoder |
Method Summary | |
---|---|
int[] |
code(PermutationCounter decoded,
byte[][] coded,
int pos1,
int pos2)
|
byte[][] |
code(java.util.Vector<PermutationCounter> rules)
Codes a vector of objects as a bidimensional array of bytes. |
java.util.Vector<PermutationCounter> |
decode(byte[][] codedElement,
int numberOfCodedPermutations)
Decodes a bidimensional array of bytes as a vector of objects. |
PermutationCounter |
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 |
Constructor Detail |
---|
public PermutationCounterCoder(int permutationSize)
Method Detail |
---|
public int[] code(PermutationCounter decoded, byte[][] coded, int pos1, int pos2)
public PermutationCounter decode(byte[][] coded, int pos1, int len1, int pos2, int len2)
public byte[][] code(java.util.Vector<PermutationCounter> rules)
Coder
code
in interface Coder<PermutationCounter>
rules
- A vector of objects
public java.util.Vector<PermutationCounter> decode(byte[][] codedElement, int numberOfCodedPermutations)
Coder
decode
in interface Coder<PermutationCounter>
codedElement
- the coded objects as a bidimensional array of bytesnumberOfCodedPermutations
- the number of objects that are coded
public int getCodedArrayLength()
getCodedArrayLength
in interface Coder<PermutationCounter>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |