|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.counter.PermutationCounter
public class PermutationCounter
Constructor Summary | |
---|---|
PermutationCounter(int[] permutation,
long numberOfOccurrences)
Constructs a PermutationCounter |
Method Summary | |
---|---|
long |
getNumberOfOccurrences()
Gets the number of occurrences of this trace |
int[] |
getPermutation()
|
java.lang.String |
getPermutationAsString()
Produces a string representation of a permutation counter |
void |
incrementOccurrences(long add)
Increments the number of occurrences this permutation |
boolean |
isEmpty()
Tests whether this joinable object is empty |
void |
join(PermutationCounter counter)
Join (merge) the object joinable to this object |
void |
split(PermutationCounter counter)
Split the object joinable from this object |
java.lang.String |
toString()
Produces a string representation of a permutation counter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PermutationCounter(int[] permutation, long numberOfOccurrences)
permutation
- the permutationnumberOfOccurrences
- the number of occurrencesMethod Detail |
---|
public void incrementOccurrences(long add)
add
- the number of occurrences to addpublic long getNumberOfOccurrences()
public int[] getPermutation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPermutationAsString()
public void join(PermutationCounter counter)
Joinable
join
in interface Joinable<PermutationCounter>
counter
- the object to be joinedpublic void split(PermutationCounter counter)
Joinable
split
in interface Joinable<PermutationCounter>
counter
- the object to be splittedpublic boolean isEmpty()
Joinable
isEmpty
in interface Joinable<PermutationCounter>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |