- All Known Implementing Classes:
public interface ScoresCacheInterface for classes which implement a temporary cache for various numeric scores, e.g. RMSD, TM-Score, etc.
Implementations can treat this as a cache, with as much or as little persistence as required. If getScore() returns null, callers should recalculate the score and then store it for future calls. Implementations can therefore reset the cache if things which might impact the scores change.
A list of common scores are included to coordinate property names, but additional scores can be stored as well. As a result, this is a flexible cache that can store any score as a key-value object.
- Spencer Bliven
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getScore(String property)Get the value for a particular score.
getScores()Get a collection of all scores that have been set.
putScore(String property, Double score)Add a score to the list of scores.
putScoreAdd a score to the list of scores.
property- A string identifying the score and suitable for printing in headers. Example names found in:
score- Value of the score
getScoreGet the value for a particular score. Scores which return null should be recalculated and then stored using
property- Name of the score to fetch
- Value of the score, or null if it is not set.