charite.christo.strap.interfaces
Interface ValueOfProtein
- All Superinterfaces:
- HasProtein
- All Known Subinterfaces:
- ProteinProteinDistance, ProteinProteinSimilarity, ProteinProteinValue
- All Known Implementing Classes:
- AbstractAlignAndCompare, AlignmentScore, CountResidues, IndividualSequenceDisSimilarity, RmsdValue, SequenceDisSimilarityAsAligned
public interface ValueOfProtein
- extends HasProtein
Plugin that returns a numeric value for the protein or NaN.
It is used for bar charts.
It should notify changes by dispatching events of type
JAVADOC:ProteinEvent#VALUE_OF_PROTEIN_CHANGED
and dispatching it with JAVADOC:StrapEvent#run().
getValue
double getValue()
compute
void compute()
- When it is time consuming then do the calculation in the compute method.
Non time intensive calculations can be performed in getValue() directly.
setProtein
boolean setProtein(Protein p)
getModificationCount
int getModificationCount()
'The most important classes are StrapAlign, StrapProtein and StrapEvent.'