public class AdaptiveScoreAndLevelHandler extends AbstractPointsAndLevelHandler
PointsAndLevelHandler.LevelListener, PointsAndLevelHandler.PointAdaptor
Modifier and Type | Field and Description |
---|---|
static int |
ADAPT |
static int |
INCREASE |
static String |
PROPERTY_BENCHMARK |
static String |
PROPERTY_BENCHMARK_COUNTER |
static String |
PROPERTY_MAXPOINTS |
static String |
PROPERTY_PERFORMANCE |
static String |
PROPERTY_TOTALPOINTS |
static int |
REDUCE |
static int |
RESET |
startLevel, startMaxPoints, startMinPoints, startPoints, ZERO_POINTS
Constructor and Description |
---|
AdaptiveScoreAndLevelHandler() |
Modifier and Type | Method and Description |
---|---|
protected int |
checkLevelChange(ExecutionContext context,
int currentLevel)
Overwrite to implement a different level/points logic.
|
double |
getBenchmarkRaise() |
int |
getBenchmarkSampleSize() |
double |
getMaxBenchmark() |
double |
getMinBenchmark() |
int |
getNumRetriesBenchmark() |
int |
getNumRetriesTimer() |
void |
initializeAlgorithm(ExecutionContext event)
Initializes the algorithm with the values of the DB.
|
protected void |
initializeHandler(ExecutionContext context)
Initializes the algorithm with the values of the DB at session start
|
void |
setBenchmarkRaise(double benchmarkRaise) |
void |
setBenchmarkSampleSize(int benchmarkSampleSize) |
void |
setMaxBenchmark(double maxBenchmark) |
void |
setMinBenchmark(double minBenchmark) |
void |
setNumRetriesBenchmark(int numRetriesBenchmark) |
void |
setNumRetriesTimer(int numRetriesTimer) |
getDescription, informLevelChangeListeners, processExecutionPhase, processLevel, processPoints, setDescription, updateStatusRegion, updateTotals
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setBeanName, setId, setLocalId, setParent
clearProperties, getKeys, getProperty, removeProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
public static final String PROPERTY_BENCHMARK
public static final String PROPERTY_BENCHMARK_COUNTER
public static final String PROPERTY_PERFORMANCE
public static final String PROPERTY_TOTALPOINTS
public static final String PROPERTY_MAXPOINTS
public static final int RESET
public static final int INCREASE
public static final int REDUCE
public static final int ADAPT
protected void initializeHandler(ExecutionContext context)
initializeHandler
in class AbstractPointsAndLevelHandler
public void initializeAlgorithm(ExecutionContext event)
protected int checkLevelChange(ExecutionContext context, int currentLevel)
AbstractPointsAndLevelHandler
checkLevelChange
in class AbstractPointsAndLevelHandler
public int getBenchmarkSampleSize()
public void setBenchmarkSampleSize(int benchmarkSampleSize)
public double getBenchmarkRaise()
public void setBenchmarkRaise(double benchmarkRaise)
public double getMinBenchmark()
public void setMinBenchmark(double minBenchmark)
public double getMaxBenchmark()
public void setMaxBenchmark(double maxBenchmark)
public int getNumRetriesTimer()
public void setNumRetriesTimer(int numRetriesTimer)
public int getNumRetriesBenchmark()
public void setNumRetriesBenchmark(int numRetriesBenchmark)
Copyright © 2013. All Rights Reserved.