ScoresCacheBlockImpl, BlockSetImpl, MultipleAlignmentEnsembleImpl, MultipleAlignmentImplpublic abstract class AbstractScoresCache extends java.lang.Object implements ScoresCache
ScoresCache with the shared code used
in all objects with a variables cache.| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractScoresCache() |
|
protected |
AbstractScoresCache(AbstractScoresCache cache) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clear the cached scores.
|
protected java.lang.Object |
clone(java.lang.Object e) |
Subclasses should override clone and use the copy constructor.
|
java.lang.Double |
getScore(java.lang.String property) |
Get the value for a particular score.
|
java.util.Set<java.lang.String> |
getScores() |
Get a collection of all scores that have been set.
|
void |
putScore(java.lang.String property,
java.lang.Double score) |
Add a score to the list of scores.
|
protected AbstractScoresCache()
protected AbstractScoresCache(AbstractScoresCache cache)
public void putScore(java.lang.String property,
java.lang.Double score)
ScoresCacheputScore in interface ScoresCacheproperty - A string identifying the score and suitable for printing
in headers. Example names found in: MultipleAlignmentScorer.score - Value of the scorepublic java.lang.Double getScore(java.lang.String property)
ScoresCacheScoresCache.putScore(String, Double).getScore in interface ScoresCacheproperty - Name of the score to fetchpublic java.util.Set<java.lang.String> getScores()
ScoresCachegetScores in interface ScoresCacheprotected java.lang.Object clone(java.lang.Object e)
throws java.lang.CloneNotSupportedException
e - java.lang.CloneNotSupportedExceptionpublic void clear()