metricsOverlay.model.mappings
Class AugmentationInterpolator

java.lang.Object
  extended by metricsOverlay.model.mappings.AugmentationInterpolator

public class AugmentationInterpolator
extends java.lang.Object

This class provides the functionality to interpolate between different metric functionality. Currently this class parrots back the existing Augmentation values. This class should be subclassed if additional interpolation facilities are required.

Version:
2/9/2009
Author:
Matthew Harward

Constructor Summary
AugmentationInterpolator(Augmentation dStrat)
          Main constructor.
 
Method Summary
 double getMax()
           
 double getMin()
           
 int interpolateValue(int value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AugmentationInterpolator

public AugmentationInterpolator(Augmentation dStrat)
Main constructor.

Parameters:
dStrat - the augmentation to be used.
Method Detail

getMax

public double getMax()
Returns:
the max value for the current augmentation

getMin

public double getMin()
Returns:
the min value for the current augmentation

interpolateValue

public int interpolateValue(int value)
Parameters:
value - the value produced by the mapping interpolator.
Returns:
the value to be used by the augmentation.