|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sequence.java This interface is designed to model a biological sequence. It is non-specific in the manor in which a sequence may be implemented. The default implementation of this sequence will be imutable, and all sequence numbering will start at 1 NOT 0. This may be a set of rules worth following. For a mutable sequence, see the interface MutableSequence.
Created: Fri Feb 25 19:21:55 2000
Method Summary | |
Element |
getElementAt(int index)
Returns an element at a given location. |
char |
getElementAtAsChar(int index)
Returns the character of an target element. |
int |
getLength()
Returns the length of the sequence. |
char[] |
getSequenceAsChars()
Returns the sequence as an array of characters. |
Element[] |
getSequenceAsElements()
Returns the sequence as an array of elements. |
SequenceType |
getSequenceType()
Returns the type of sequence. |
Sequence |
getSubSequence(int from,
int length)
Returns a sub-sequence from the current sequence. |
Methods inherited from interface uk.ac.man.bioinf.sequence.identifier.Identifiable |
getIdentifier |
Method Detail |
public Sequence getSubSequence(int from, int length)
from
- the initial index of the sub-sequence
public char[] getSequenceAsChars()
public Element[] getSequenceAsElements()
public char getElementAtAsChar(int index)
index
- the location of the target element
public Element getElementAt(int index)
index
- the location of the target element
public SequenceType getSequenceType()
public int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |