charite.christo.strap
Class AbstractAlignAndCompare
java.lang.Object
charite.christo.strap.AbstractAlignAndCompare
- All Implemented Interfaces:
- Disposable, HasControlPanel, HasModiCount, HasSharedControlPanel, NeedsSharedInstance, HasProtein, StrapListener, ValueOfProtein, ProteinProteinValue
- Direct Known Subclasses:
- AlignmentScore, IndividualSequenceDisSimilarity, RmsdValue, SequenceDisSimilarityAsAligned
public class AbstractAlignAndCompare
- extends java.lang.Object
- implements ProteinProteinValue, HasSharedControlPanel, HasControlPanel, Disposable, StrapListener, HasModiCount
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAlignAndCompare
public AbstractAlignAndCompare()
setProtein
public boolean setProtein(Protein prot0)
- Specified by:
setProtein
in interface ValueOfProtein
setOtherProtein
public void setOtherProtein(Protein prot1)
- Specified by:
setOtherProtein
in interface ProteinProteinValue
getProtein
public Protein getProtein()
- Specified by:
getProtein
in interface HasProtein
getOtherProtein
public Protein getOtherProtein()
- Specified by:
getOtherProtein
in interface ProteinProteinValue
comboClass
public ChCombo comboClass()
getOtherClass
public java.lang.Object getOtherClass()
setOtherClass
public void setOtherClass(java.lang.Object o)
setSharedInstance
public void setSharedInstance(java.lang.Object i)
- Specified by:
setSharedInstance
in interface NeedsSharedInstance
getSharedInstance
public java.lang.Object getSharedInstance()
- Specified by:
getSharedInstance
in interface NeedsSharedInstance
getSharedControlPanel
public javax.swing.JComponent getSharedControlPanel()
- Specified by:
getSharedControlPanel
in interface HasSharedControlPanel
getControlPanel
public javax.swing.JComponent getControlPanel(boolean real)
- Specified by:
getControlPanel
in interface HasControlPanel
setColumnRange
public void setColumnRange(int f,
int t)
- Description copied from interface:
ProteinProteinValue
- the values may depend on the range of alignment positions
- Specified by:
setColumnRange
in interface ProteinProteinValue
getValue
public double getValue()
- Description copied from interface:
ProteinProteinValue
- please store and reuse values if appropriate
return NaN when not calculated yet
- Specified by:
getValue
in interface ValueOfProtein
- Specified by:
getValue
in interface ProteinProteinValue
getCalculator
public java.lang.Object getCalculator()
compute
public void compute()
- Description copied from interface:
ProteinProteinValue
- When it is time consuming then do the calculation in the compute method.
Non time intensive calculations can be performed in getValue();
- Specified by:
compute
in interface ValueOfProtein
- Specified by:
compute
in interface ProteinProteinValue
modificationCount
public int modificationCount()
- Specified by:
modificationCount
in interface HasModiCount
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
handleEvent
public void handleEvent(StrapEvent ev)
- Specified by:
handleEvent
in interface StrapListener
'The most important classes are StrapAlign, Protein and StrapEvent.'