Class AddAggregationFunction
java.lang.Object
nz.org.riskscape.engine.function.agg.AddAggregationFunction
- All Implemented Interfaces:
AutoCloseable,RiskscapeFunction,UntypedFunction
-
Field Summary
Fields inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
BUILT_IN, LOG -
Constructor Summary
ConstructorsConstructorDescriptionAddAggregationFunction(RiskscapeFunction wrappedFunction, AggregationFunction aggregationFunction) -
Method Summary
Modifier and TypeMethodDescriptionExecute the function with the given arguments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
builtin, close, getTypesFromArguments, identified, identified, isA, setProblemReporter, validate
-
Constructor Details
-
AddAggregationFunction
public AddAggregationFunction(RiskscapeFunction wrappedFunction, AggregationFunction aggregationFunction)
-
-
Method Details
-
getReturnType
- Specified by:
getReturnTypein interfaceRiskscapeFunction- Returns:
- the type that this function should return
-
getArgumentTypes
- Specified by:
getArgumentTypesin interfaceRiskscapeFunction- Returns:
- the types that this function expects
-
call
Description copied from interface:UntypedFunctionExecute the function with the given arguments.
- Specified by:
callin interfaceUntypedFunction- Parameters:
args- list of arguments to the function that should conform to the types inArgumentList.getArgumentTypes()
-
getArguments
- Specified by:
getArgumentsin interfaceRiskscapeFunction
-
getOverloaded
- Specified by:
getOverloadedin interfaceRiskscapeFunction- Returns:
- an
OverloadedFunctionthat offers alternative input types for use within an expression, or empty if this function does not support overloading
-
getRealizable
- Specified by:
getRealizablein interfaceRiskscapeFunction- Returns:
- a
RealizableFunctionthat can realize thisRiskscapeFunctionagainst a type, or empty if this function does not support realization.
-
getAggregationFunction
- Specified by:
getAggregationFunctionin interfaceRiskscapeFunction- Returns:
- An
AggregationFunctionthat is functionally the same operation as this, but works with aRealizedAggregateExpression, rather than against aRealizedExpressionwith anRSList.
-
getWrappedFunction
-