|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.gui.ScoreCalculator
apollo.gui.WindowScoreCalculator
apollo.gui.StoredScoreCalculator
public abstract class StoredScoreCalculator
Refactored abstract class for score calculators that store the scores in memory.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
protected double |
maxScore
|
protected double |
minScore
|
protected java.util.TreeMap<java.lang.Integer,java.lang.Double> |
scoreMap
|
| Fields inherited from class apollo.gui.ScoreCalculator |
|---|
factor |
| Constructor Summary | |
|---|---|
StoredScoreCalculator(int winSize)
Builds a StoredScoreCalculator object |
|
| Method Summary | |
|---|---|
double |
getMaxScore()
Get the maximum score for this set |
double |
getMinScore()
Get the minimum score for this set |
double |
getScoreForPosition(int position)
Get the score for a given position |
double[] |
getScoresForPositions(int[] positions)
Get the scores for an array of positions |
int[] |
getXRange()
Get the position range covered by the scores [lowestPosition, highestPosition] |
int[] |
getYRange()
Gets the score range for all scores [minScore, maxScore] |
| Methods inherited from class apollo.gui.WindowScoreCalculator |
|---|
getModel, getWindowExtents, getWinSize, hasModel, setWinSize |
| Methods inherited from class apollo.gui.ScoreCalculator |
|---|
getFactor, setXOrientation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
protected java.util.TreeMap<java.lang.Integer,java.lang.Double> scoreMap
protected double minScore
protected double maxScore
| Constructor Detail |
|---|
public StoredScoreCalculator(int winSize)
winSize - - size of display window| Method Detail |
|---|
public int[] getYRange()
getYRange in class ScoreCalculatorpublic double getScoreForPosition(int position)
ScoreCalculator
getScoreForPosition in class ScoreCalculatorposition - - position to get the score for
public double[] getScoresForPositions(int[] positions)
getScoresForPositions in class ScoreCalculatorpositions - - positions to get the scores for
public int[] getXRange()
getXRange in class ScoreCalculatorpublic double getMinScore()
public double getMaxScore()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||