public abstract class FilteredSequence extends java.lang.Object implements Sequence
Attributable.Utils| Constructor and Description |
|---|
FilteredSequence(Sequence source)
Creates a FilteredSequence wrapper to the given source sequence.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributeMap()
Gets the entire attribute map.
|
java.util.Set<java.lang.String> |
getAttributeNames() |
int |
getLength()
Returns the length of the sequence
|
SequenceType |
getSequenceType() |
State |
getState(int site) |
byte[] |
getStateIndices() |
State[] |
getStates() |
java.lang.String |
getString() |
Taxon |
getTaxon() |
void |
removeAttribute(java.lang.String name) |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an named attribute for this object.
|
java.lang.String |
toString() |
public FilteredSequence(Sequence source)
source - public SequenceType getSequenceType()
getSequenceType in interface Sequencepublic java.lang.String getString()
public State[] getStates()
public byte[] getStateIndices()
getStateIndices in interface Sequencepublic State getState(int site)
public int getLength()
public Taxon getTaxon()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setAttribute(java.lang.String name,
java.lang.Object value)
AttributablesetAttribute in interface Attributablename - the name of the attribute.value - the new value of the attribute.public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface Attributablename - the name of the attribute of interest, or null if the attribute doesn't exist.public void removeAttribute(java.lang.String name)
removeAttribute in interface Attributablename - name of attribute to removepublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames in interface Attributablepublic java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
AttributablegetAttributeMap in interface Attributablehttp://code.google.com/p/jebl2/