ch.tatool.core.element.handler.score
Interface PointsAndLevelHandler.PointAdaptor

All Known Implementing Classes:
AbstractPointAdaptor, FactorPointAdaptor, NullablePointAdaptor
Enclosing interface:
PointsAndLevelHandler

public static interface PointsAndLevelHandler.PointAdaptor

Point adaptor. Aspects implementing this interface can adapt the points provided by the task prior to being processed by the ScoreAndLevel handler. The ScoreAndLevel handler checks all aspects of the task in question and gives each aspect implementing this interface the chance to adapt the points. That way points of tasks can be adapted without having to alter the task in any way.


Method Summary
 void adaptPoints(PointsAndLevelHandler handler, ExecutionContext context)
          Adapt the passed in points.
 

Method Detail

adaptPoints

void adaptPoints(PointsAndLevelHandler handler,
                 ExecutionContext context)
Adapt the passed in points.

Parameters:
point - an array of points, where [0] is min, [1] is max, [2] is actual points


Copyright © 2012. All Rights Reserved.