|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.PermutationToTrace
public class PermutationToTrace
The PermutationToTrace class contains utility methods which convert permutation elements to trace elements and vice-versa
Constructor Summary | |
---|---|
PermutationToTrace()
|
Method Summary | |
---|---|
static int[] |
arrayOfBytesToReversal(int[] positions,
boolean isLinear,
byte[] element)
|
static int[] |
arrayOfBytesToReversal(Permutation permutation,
byte[] element)
|
static int[] |
bitTraceElementToReversal(Permutation permutation,
BitList element)
Generates a reversal from a trace element |
static int[] |
byteTraceElementToReversal(Permutation permutation,
byte[] element)
Generates a reversal from a trace element |
static BitList |
reversalToBitTraceElement(Permutation permutation,
int start,
int end)
Generates a TraceElement from a reversal |
static byte[] |
reversalToByteTraceElement(Permutation permutation,
int start,
int end)
Generates a TraceElement from a reversal |
static byte[] |
reversalToUnsignedArrayOfBytes(Permutation permutation,
int start,
int end)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermutationToTrace()
Method Detail |
---|
public static byte[] reversalToUnsignedArrayOfBytes(Permutation permutation, int start, int end)
public static int[] arrayOfBytesToReversal(int[] positions, boolean isLinear, byte[] element)
public static int[] arrayOfBytesToReversal(Permutation permutation, byte[] element)
public static byte[] reversalToByteTraceElement(Permutation permutation, int start, int end)
permutation
- the permutationstart
- the start position of a reversalend
- the end position of a reversal
public static int[] byteTraceElementToReversal(Permutation permutation, byte[] element)
permutation
- the given permutation
public static BitList reversalToBitTraceElement(Permutation permutation, int start, int end)
permutation
- the permutationstart
- the start position of a reversalend
- the end position of a reversal
public static int[] bitTraceElementToReversal(Permutation permutation, BitList element)
permutation
- the given permutation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |