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, updateTotalsassignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParentclearProperties, getKeys, getProperty, removeProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getId, getKeys, getProperty, removeProperty, setPropertypublic 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 AbstractPointsAndLevelHandlerpublic void initializeAlgorithm(ExecutionContext event)
protected int checkLevelChange(ExecutionContext context, int currentLevel)
AbstractPointsAndLevelHandlercheckLevelChange in class AbstractPointsAndLevelHandlerpublic double getMaxThreshold()
public void setMaxThreshold(double maxThreshold)
public double getMinThreshold()
public void setMinThreshold(double minThreshold)
public int getSampleSize()
public void setSampleSize(int sampleSize)
Copyright © 2012. All Rights Reserved.