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
HomologyFeature s as keys. |
FeatureHolder |
getFeatures()
getFeatures returns the constituent
HomologyFeature s 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, removeChangeListener
public SimpleHomology()
SimpleHomology
containing no
Alignment
and no FeatureHolder
.public FeatureHolder getFeatures()
getFeatures
returns the constituent
HomologyFeature
s which are also used as the keys
in the alignment.getFeatures
in interface Homology
FeatureHolder
.public Alignment getAlignment()
getAlignment
returns the alignment, which uses the
HomologyFeature
s as keys.getAlignment
in interface Homology
Alignment
.public void setAlignment(Alignment alignment) throws BioException, ChangeVetoException
setAlignment
sets the alignment which describes
the homology. The alignment, should use the
HomologyFeature
s as keys. A suitable
FeatureHolder
is automatically created.alignment
- an Alignment
.BioException
- if an error occurs.ChangeVetoException
- if the
SimpleHomology
is locked.Copyright © 2014 BioJava. All rights reserved.