|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.visitor.AverageVisitor
Calculates the Average
Nested Class Summary | |
static class |
AverageVisitor.AverageResult
|
Constructor Summary | |
AverageVisitor(Expression expr)
Constructor class for the AverageVisitor using an expression |
|
AverageVisitor(int attributeTypeIndex,
FeatureType type)
Constructor class for the AverageVisitor using AttributeType ID |
|
AverageVisitor(java.lang.String attrName,
FeatureType type)
Constructor class for the AverageVisitor using AttributeType Name |
Method Summary | |
java.lang.Object |
getAverage()
Returns the average from the visitor's current |
Expression |
getExpression()
|
CalcResult |
getResult()
Returns a CalcResult object (containing the Average) |
void |
reset()
Resets the "Average" strategy pattern |
void |
setValue(int newCount,
java.lang.Object newSum)
|
void |
setValue(java.lang.Object newAverage)
|
void |
visit(Feature feature)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AverageVisitor(int attributeTypeIndex, FeatureType type) throws IllegalFilterException
attributeTypeIndex
- integer representing the AttributeTypetype
- FeatureType
IllegalFilterException
public AverageVisitor(java.lang.String attrName, FeatureType type) throws IllegalFilterException
attrName
- string respresenting the AttributeTypetype
- FeatureType
IllegalFilterException
public AverageVisitor(Expression expr) throws IllegalFilterException
expr
-
IllegalFilterException
Method Detail |
public void visit(Feature feature)
visit
in interface FeatureVisitor
public Expression getExpression()
public java.lang.Object getAverage()
public void reset()
public CalcResult getResult()
getResult
in interface FeatureCalc
public void setValue(java.lang.Object newAverage)
public void setValue(int newCount, java.lang.Object newSum)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |