ScoresCache
BlockImpl
, BlockSetImpl
, MultipleAlignmentEnsembleImpl
, MultipleAlignmentImpl
public 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)
ScoresCache
putScore
in interface ScoresCache
property
- 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)
ScoresCache
ScoresCache.putScore(String, Double)
.getScore
in interface ScoresCache
property
- Name of the score to fetchpublic java.util.Set<java.lang.String> getScores()
ScoresCache
getScores
in interface ScoresCache
protected java.lang.Object clone(java.lang.Object e) throws java.lang.CloneNotSupportedException
e
- java.lang.CloneNotSupportedException
public void clear()