public class SimpleHomology extends AbstractChangeable implements Homology
| Constructor and Description |
|---|
SimpleHomology()
Creates a new empty
SimpleHomology containing no
Alignment and no FeatureHolder. |
| Modifier and Type | Method and Description |
|---|---|
Alignment |
getAlignment()
getAlignment returns the alignment, which uses the
HomologyFeatures as keys. |
FeatureHolder |
getFeatures()
getFeatures returns the constituent
HomologyFeatures which are also used as the keys
in the alignment. |
void |
setAlignment(Alignment alignment)
setAlignment sets the alignment which describes
the homology. |
String |
toString() |
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerpublic SimpleHomology()
SimpleHomology containing no
Alignment and no FeatureHolder.public FeatureHolder getFeatures()
getFeatures returns the constituent
HomologyFeatures which are also used as the keys
in the alignment.getFeatures in interface HomologyFeatureHolder.public Alignment getAlignment()
getAlignment returns the alignment, which uses the
HomologyFeatures as keys.getAlignment in interface HomologyAlignment.public void setAlignment(Alignment alignment) throws BioException, ChangeVetoException
setAlignment sets the alignment which describes
the homology. The alignment, should use the
HomologyFeatures as keys. A suitable
FeatureHolder is automatically created.alignment - an Alignment.BioException - if an error occurs.ChangeVetoException - if the
SimpleHomology is locked.Copyright © 2020 BioJava. All rights reserved.