Package repast.simphony.valueLayer
Class MaxGridFunction
- java.lang.Object
-
- repast.simphony.valueLayer.AbstractGridFunction
-
- repast.simphony.valueLayer.MaxGridFunction
-
- All Implemented Interfaces:
GridFunction
public class MaxGridFunction extends AbstractGridFunction
GridFunction that calculates the maxium value(s) from those passed in.- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.valueLayer.AbstractGridFunction
cells
-
-
Constructor Summary
Constructors Constructor Description MaxGridFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(double gridValue, int... location)
Applies this GridFunction to the value and location.protected void
doReset()
Performs any subclass specific resetting.-
Methods inherited from class repast.simphony.valueLayer.AbstractGridFunction
getResults, reset
-
-
-
-
Method Detail
-
apply
public void apply(double gridValue, int... location)
Description copied from interface:GridFunction
Applies this GridFunction to the value and location.- Parameters:
gridValue
- the grid value at the locationlocation
- the value's location
-
doReset
protected void doReset()
Description copied from class:AbstractGridFunction
Performs any subclass specific resetting.- Specified by:
doReset
in classAbstractGridFunction
-
-