org.geworkbench.bison.datastructure.bioobjects.sequence
Interface DSSequence

All Superinterfaces:
DSBioObject, DSDescribable, DSExtendable, DSIdentifiable, DSNamed, DSSequential, java.io.Serializable
All Known Implementing Classes:
CSSequence

public interface DSSequence
extends DSBioObject

This interface defines a generic sequence. It is either a DNA or a protein sequence.


Method Summary
 java.lang.String getSequence()
          Gets the sequence as a String.
 int length()
          Gets the length of the sequence.
 void setSequence(java.lang.String sequence)
          Sets this sequence.
 void shuffle()
          Randomize the order of the characters in the sequence
 
Methods inherited from interface org.geworkbench.bison.datastructure.properties.DSExtendable
addNameValuePair, allowMultipleValues, clearName, forceUniqueValue, getValuesForName, isUniqueValue
 
Methods inherited from interface org.geworkbench.bison.datastructure.properties.DSDescribable
getDescription, setDescription
 
Methods inherited from interface org.geworkbench.bison.datastructure.properties.DSIdentifiable
getID, setID
 
Methods inherited from interface org.geworkbench.bison.datastructure.properties.DSSequential
getSerial, setSerial
 
Methods inherited from interface org.geworkbench.bison.datastructure.properties.DSNamed
getLabel, setLabel
 

Method Detail

getSequence

java.lang.String getSequence()
Gets the sequence as a String.

Returns:
the string representation of this sequence.

setSequence

void setSequence(java.lang.String sequence)
Sets this sequence.

Parameters:
sequence - the String representation of the sequence.

length

int length()
Gets the length of the sequence.

Returns:
the number of characters in the sequence.

shuffle

void shuffle()
Randomize the order of the characters in the sequence