'STRAP:multiple sequence alignments '

charite.christo.strap
Class AbstractAlignAndCompare

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface charite.christo.Disposable
NONE
 
Constructor Summary
AbstractAlignAndCompare()
           
 
Method Summary
 ChCombo comboClass()
           
 void compute()
          When it is time consuming then do the calculation in the compute method.
 void dispose()
           
 java.lang.Object getCalculator()
           
 javax.swing.JComponent getControlPanel(boolean real)
           
 java.lang.Object getOtherClass()
           
 Protein getOtherProtein()
           
 Protein getProtein()
           
 javax.swing.JComponent getSharedControlPanel()
           
 java.lang.Object getSharedInstance()
           
 double getValue()
          please store and reuse values if appropriate return NaN when not calculated yet
 void handleEvent(StrapEvent ev)
           
 int modificationCount()
           
 void setColumnRange(int f, int t)
          the values may depend on the range of alignment positions
 void setOtherClass(java.lang.Object o)
           
 void setOtherProtein(Protein prot1)
           
 boolean setProtein(Protein prot0)
           
 void setSharedInstance(java.lang.Object i)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAlignAndCompare

public AbstractAlignAndCompare()
Method Detail

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

'STRAP:multiple sequence alignments '

'The most important classes are StrapAlign, Protein and StrapEvent.'