Class AbstractScoresCache
java.lang.Object
org.biojava.nbio.structure.align.multiple.AbstractScoresCache
- All Implemented Interfaces:
 ScoresCache
- Direct Known Subclasses:
 BlockImpl,BlockSetImpl,MultipleAlignmentEnsembleImpl,MultipleAlignmentImpl
Abstact implementation of the 
ScoresCache with the shared code used
 in all objects with a variables cache.- Since:
 - 4.1.0
 - Author:
 - Spencer Bliven
 
- 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected - 
Method Summary
 
- 
Constructor Details
- 
AbstractScoresCache
protected AbstractScoresCache() - 
AbstractScoresCache
 
 - 
 - 
Method Details
- 
putScore
Description copied from interface:ScoresCacheAdd a score to the list of scores.- Specified by:
 putScorein interfaceScoresCache- Parameters:
 property- A string identifying the score and suitable for printing in headers. Example names found in:MultipleAlignmentScorer.score- Value of the score
 - 
getScore
Description copied from interface:ScoresCacheGet the value for a particular score. Scores which return null should be recalculated and then stored usingScoresCache.putScore(String, Double).- Specified by:
 getScorein interfaceScoresCache- Parameters:
 property- Name of the score to fetch- Returns:
 - Value of the score, or null if it is not set.
 
 - 
getScores
Description copied from interface:ScoresCacheGet a collection of all scores that have been set.- Specified by:
 getScoresin interfaceScoresCache- Returns:
 - Set of all score names
 
 - 
clone
Subclasses should override clone and use the copy constructor.- Parameters:
 e-- Returns:
 - Throws:
 CloneNotSupportedException
 - 
clear
public void clear()Clear the cached scores. This frees memory after the alignment changed. 
 -