ch.tatool.core.element.handler.score
Class FactorPointAdaptor
java.lang.Object
ch.tatool.core.element.AbstractPropertyHolder
ch.tatool.core.element.NodeImpl
ch.tatool.core.element.handler.score.AbstractPointAdaptor
ch.tatool.core.element.handler.score.FactorPointAdaptor
- All Implemented Interfaces:
- PointsAndLevelHandler.PointAdaptor, PropertyHolder, Node
public class FactorPointAdaptor
- extends AbstractPointAdaptor
Allows adapting the points by a factor.
- Author:
- Michael Ruflin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_FACTOR
public static final String PROPERTY_FACTOR
- Property that stores the factor.
- See Also:
- Constant Field Values
FactorPointAdaptor
public FactorPointAdaptor()
- Default constructor. Initializes the adaptor with factor 1
FactorPointAdaptor
public FactorPointAdaptor(int factor)
- Constructor initializing the adaptor with factor x.
setFactor
public void setFactor(int factor)
getFactor
public int getFactor()
adaptPoints
public void adaptPoints(PointsAndLevelHandler handler,
ExecutionContext context)
- Adapts the points according to a factor.
- Specified by:
adaptPoints in interface PointsAndLevelHandler.PointAdaptor- Specified by:
adaptPoints in class AbstractPointAdaptor
Copyright © 2012. All Rights Reserved.