|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.man.bioinf.sequence.AbstractSequence
|
+--uk.ac.man.bioinf.sequence.AbstractMutableSequence
|
+--uk.ac.man.bioinf.sequence.complex.AbstractComplexSequence
|
+--uk.ac.man.bioinf.sequence.complex.DefaultGappedComplexSequence
DefaultGappedComplexSequence.java Created: Tue Dec 5 16:55:11 2000
| Constructor Summary | |
DefaultGappedComplexSequence(Element[] elements,
ComplexSequenceType type)
|
|
| Method Summary | |
void |
deleteGapAt(int param1)
Delete the element at index. |
void |
deleteGapAt(int param1,
int param2)
Delete the elements starting at index for the specified length |
ComplexElement |
getComplexElementAt(int index)
|
Element |
getElementAt(int index)
Returns an element at a given location. |
char |
getElementAtAsChar(int param1)
Returns the character of an target element. |
GappedSequence |
getElementsAsGappedSequence(Element[] param1,
SequenceType param2)
|
GappedSequence |
getElementsAsGappedSequence(Element[] param1,
SequenceType param2,
Identifier param3)
|
Element |
getGappedElementAt(int index)
|
char |
getGappedElementAtAsChar(int param1)
|
int |
getGappedLength()
Returns the gapped length of this sequence. |
int |
getGappedPositionOf(int param1)
Translate between the gapped index, and the ungapped index |
char[] |
getGappedSequenceAsChars()
|
Element[] |
getGappedSequenceAsElements()
|
GappedSequence |
getGappedSubSequence(int param1,
int param2)
|
Identifier |
getIdentifier()
|
int |
getLength()
Returns the length of the sequence. |
char[] |
getSequenceAsChars()
Returns the sequence as an array of characters. |
ComplexElement[] |
getSequenceAsComplexElements()
|
Element[] |
getSequenceAsElements()
Returns the sequence as an array of elements. |
Sequence |
getSubSequence(int param1,
int param2)
Returns a sub-sequence from the current sequence. |
int |
getUngappedPositionOf(int param1)
Translate between the gapped position and the ungapped position. |
void |
insertGapAt(int param1)
|
void |
insertGapAt(int param1,
int param2)
Inserts the elements at this position. |
protected ComplexElement |
setElementAtQuietly(ComplexElement elem,
int index)
|
| Methods inherited from class uk.ac.man.bioinf.sequence.complex.AbstractComplexSequence |
addModificationAt, checkComplexSequenceType, checkComplexSequenceType, checkSequenceType, checkSequenceType, getComplexElementAtAsChar, getComplexSequenceAsChars, getComplexSequenceTypeException, getComplexType, removeModificationAt |
| Methods inherited from class uk.ac.man.bioinf.sequence.AbstractMutableSequence |
addSequenceListener, addVetoableSequenceListener, fireSequenceEvent, fireVetoableSequenceEvent, hasListeners, removeSequenceListener, removeVetoableSequenceListener |
| Methods inherited from class uk.ac.man.bioinf.sequence.AbstractSequence |
checkRange, getSequenceIndexException, getSequenceType, getSequenceTypeException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.man.bioinf.sequence.Sequence |
getSequenceType |
| Methods inherited from interface uk.ac.man.bioinf.sequence.event.SequenceEventProvider |
addSequenceListener, addVetoableSequenceListener, removeSequenceListener, removeVetoableSequenceListener |
| Methods inherited from interface uk.ac.man.bioinf.sequence.complex.ComplexSequence |
addModificationAt, getComplexElementAtAsChar, getComplexSequenceAsChars, removeModificationAt |
| Constructor Detail |
public DefaultGappedComplexSequence(Element[] elements,
ComplexSequenceType type)
| Method Detail |
public ComplexElement getComplexElementAt(int index)
getComplexElementAt in interface ComplexSequencepublic Element getElementAt(int index)
Sequence
getElementAt in interface Sequenceindex - the location of the target element
public Element getGappedElementAt(int index)
getGappedElementAt in interface GappedSequencepublic ComplexElement[] getSequenceAsComplexElements()
protected ComplexElement setElementAtQuietly(ComplexElement elem,
int index)
setElementAtQuietly in class AbstractComplexSequencepublic Identifier getIdentifier()
getIdentifier in interface Identifiable
public GappedSequence getElementsAsGappedSequence(Element[] param1,
SequenceType param2,
Identifier param3)
public GappedSequence getElementsAsGappedSequence(Element[] param1,
SequenceType param2)
public Element[] getSequenceAsElements()
Sequence
getSequenceAsElements in interface Sequencepublic int getLength()
Sequence
getLength in interface Sequence
public GappedSequence getGappedSubSequence(int param1,
int param2)
getGappedSubSequence in interface GappedSequencepublic Element[] getGappedSequenceAsElements()
getGappedSequenceAsElements in interface GappedSequencepublic int getGappedLength()
GappedSequence
getGappedLength in interface GappedSequencepublic int getGappedPositionOf(int param1)
GappedSequence
getGappedPositionOf in interface GappedSequenceparam1 - the ungapped position
public int getUngappedPositionOf(int param1)
GappedSequence
getUngappedPositionOf in interface GappedSequenceparam1 -
public void insertGapAt(int param1)
throws SequenceVetoException
insertGapAt in interface GappedSequenceSequenceVetoException
public void insertGapAt(int param1,
int param2)
throws SequenceVetoException
GappedSequence
insertGapAt in interface GappedSequenceparam1 - the index at which to insert
SequenceVetoException
public void deleteGapAt(int param1)
throws SequenceVetoException
GappedSequence
deleteGapAt in interface GappedSequenceparam1 - the index to delete
SequenceVetoException
public void deleteGapAt(int param1,
int param2)
throws SequenceVetoException
GappedSequence
deleteGapAt in interface GappedSequenceparam1 - the index to start atparam2 - the length to delete
SequenceVetoExceptionpublic char getGappedElementAtAsChar(int param1)
getGappedElementAtAsChar in interface GappedSequencepublic char[] getGappedSequenceAsChars()
getGappedSequenceAsChars in interface GappedSequence
public Sequence getSubSequence(int param1,
int param2)
Sequence
getSubSequence in interface SequencegetSubSequence in class AbstractSequenceparam1 - the initial index of the sub-sequence
public char[] getSequenceAsChars()
Sequence
getSequenceAsChars in interface SequencegetSequenceAsChars in class AbstractSequencepublic char getElementAtAsChar(int param1)
Sequence
getElementAtAsChar in interface SequencegetElementAtAsChar in class AbstractSequenceparam1 - the location of the target element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||