Package repast.simphony.valueLayer
Class MaxGridFunction
java.lang.Object
repast.simphony.valueLayer.AbstractGridFunction
repast.simphony.valueLayer.MaxGridFunction
- All Implemented Interfaces:
GridFunction
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
-
Method Summary
Methods inherited from class repast.simphony.valueLayer.AbstractGridFunction
getResults, reset
-
Constructor Details
-
MaxGridFunction
public MaxGridFunction()
-
-
Method Details
-
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
-