| java.lang.Object org.geotools.feature.visitor.AverageVisitor
AverageVisitor | public class AverageVisitor implements FeatureCalc(Code) | | Calculates the Average
author: Cory Horner, Refractions since: 2.2.M2 |
Inner Class :interface AverageStrategy | |
Inner Class :static class DoubleAverageStrategy implements AverageStrategy | |
Inner Class :static class FloatAverageStrategy implements AverageStrategy | |
Inner Class :static class LongAverageStrategy implements AverageStrategy | |
Inner Class :static class IntegerAverageStrategy implements AverageStrategy | |
strategy | AverageStrategy strategy(Code) | | |
AverageVisitor | public AverageVisitor(int attributeTypeIndex, FeatureType type) throws IllegalFilterException(Code) | | Constructor class for the AverageVisitor using AttributeType ID
Parameters: attributeTypeIndex - integer representing the AttributeType Parameters: type - FeatureType throws: IllegalFilterException - |
getAverage | public Object getAverage()(Code) | | Returns the average from the visitor's current
the average |
getExpression | public Expression getExpression()(Code) | | |
getResult | public CalcResult getResult()(Code) | | Returns a CalcResult object (containing the Average)
|
reset | public void reset()(Code) | | Resets the "Average" strategy pattern
|
setValue | public void setValue(int newCount, Object newSum)(Code) | | |
|
|