public class DefaultPointsAndLevelHandler extends AbstractPointsAndLevelHandler
PointsAndLevelHandler.LevelListener, PointsAndLevelHandler.PointAdaptor
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_LEVEL_COUNTER |
static String |
PROPERTY_LEVEL_MAXPOINTS |
static String |
PROPERTY_LEVEL_PERFORMANCE |
static String |
PROPERTY_LEVEL_TOTALPOINTS |
startLevel, startMaxPoints, startMinPoints, startPoints, ZERO_POINTS
Constructor and Description |
---|
DefaultPointsAndLevelHandler() |
Modifier and Type | Method and Description |
---|---|
protected int |
checkLevelChange(ExecutionContext context,
int currentLevel)
Overwrite to implement a different level/points logic.
|
HashMap<Integer,Integer> |
getLevelData() |
double |
getMaxThreshold() |
double |
getMinThreshold() |
HashMap<Integer,Integer> |
getPerformanceData() |
int |
getSampleSize() |
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 |
setMaxThreshold(double maxThreshold) |
void |
setMinThreshold(double minThreshold) |
void |
setSampleSize(int sampleSize) |
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_LEVEL_COUNTER
public static final String PROPERTY_LEVEL_PERFORMANCE
public static final String PROPERTY_LEVEL_TOTALPOINTS
public static final String PROPERTY_LEVEL_MAXPOINTS
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 double getMaxThreshold()
public void setMaxThreshold(double maxThreshold)
public double getMinThreshold()
public void setMinThreshold(double minThreshold)
public int getSampleSize()
public void setSampleSize(int sampleSize)
Copyright © 2013. All Rights Reserved.