|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.data.Sequence
de.jstacs.data.sequences.RecursiveSequence
public abstract class RecursiveSequence
This is the main class for subsequences, composite sequences, ... . All these sequences are defined on an existing sequence.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.data.Sequence |
|---|
Sequence.CompositeSequence, Sequence.SubSequence |
| Field Summary | |
|---|---|
protected Sequence |
content
The internal sequence |
| Fields inherited from class de.jstacs.data.Sequence |
|---|
alphabetCon, annotation, rc |
| Constructor Summary | |
|---|---|
RecursiveSequence(AlphabetContainer alphabet,
Sequence seq)
This constructor creates a recursive sequence using the annotation of the given sequence. |
|
RecursiveSequence(AlphabetContainer alphabet,
SequenceAnnotation[] annotation,
Sequence seq)
This constructor creates a recursive sequence. |
|
| Method Summary | |
|---|---|
double |
continuousVal(int pos)
Returns the continuous value of position pos. |
int |
discreteVal(int pos)
Returns the discrete value of position pos. |
protected abstract int |
getIndex(int pos)
Returns the index in the internal sequence. |
| Methods inherited from class de.jstacs.data.Sequence |
|---|
annotate, compareTo, complement, complement, create, create, create, equals, flatCloneWithoutAnnotation, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getLength, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, reverse, reverse, reverseComplement, reverseComplement, toDiscrete, toString, toString, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Sequence content
| Constructor Detail |
|---|
public RecursiveSequence(AlphabetContainer alphabet,
SequenceAnnotation[] annotation,
Sequence seq)
alphabet - the AlphabetContainerannotation - the annotation of the recursive sequenceseq - the sequence
public RecursiveSequence(AlphabetContainer alphabet,
Sequence seq)
alphabet - the AlphabetContainerseq - the sequence| Method Detail |
|---|
public final double continuousVal(int pos)
Sequencepos.
continuousVal in class Sequencepos - the position
pospublic final int discreteVal(int pos)
Sequencepos.
discreteVal in class Sequencepos - the position
posprotected abstract int getIndex(int pos)
pos - the index in the external sequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||