Class OverloadedAggregatingMathsFunction
java.lang.Object
nz.org.riskscape.engine.function.BaseMathsFunction
nz.org.riskscape.engine.function.maths.OverloadedAggregatingMathsFunction
- All Implemented Interfaces:
AutoCloseable,nz.org.riskscape.engine.function.IdentifiedFunction,nz.org.riskscape.engine.function.RiskscapeFunction,nz.org.riskscape.engine.function.UntypedFunction,nz.org.riskscape.engine.Identified,nz.org.riskscape.engine.rl.RealizableFunction
public abstract class OverloadedAggregatingMathsFunction
extends BaseMathsFunction
implements nz.org.riskscape.engine.rl.RealizableFunction
Base class for math functions that can be used as an AggregationFunction and also called
directly with both single list argument (as an aggregating function) or with two numeric arguments.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction
nz.org.riskscape.engine.function.IdentifiedFunction.Category, nz.org.riskscape.engine.function.IdentifiedFunction.WrappingNested classes/interfaces inherited from interface nz.org.riskscape.engine.rl.RealizableFunction
nz.org.riskscape.engine.rl.RealizableFunction.MetadataIdentifiedRealizableFunction -
Field Summary
Fields inherited from class nz.org.riskscape.engine.function.BaseMathsFunction
descriptionFields inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
BUILT_IN, LOG -
Constructor Summary
ConstructorsConstructorDescriptionOverloadedAggregatingMathsFunction(nz.org.riskscape.engine.rl.agg.AggregationFunction aggFunction) -
Method Summary
Modifier and TypeMethodDescriptionOptional<nz.org.riskscape.engine.rl.agg.AggregationFunction>protected abstract List<nz.org.riskscape.engine.function.RiskscapeFunction>List<nz.org.riskscape.engine.types.Type>nz.org.riskscape.engine.types.Typenz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction>realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> givenTypes) Methods inherited from class nz.org.riskscape.engine.function.BaseMathsFunction
call, getCategory, getDescription, getId, getSourceURI, wrapping, wrapping, wrappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClassMethods inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction
getSource, infoOutput, isBuiltin, toEntityMethods inherited from interface nz.org.riskscape.engine.rl.RealizableFunction
isDoTypeAdaptationMethods inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
builtin, close, getArguments, getOverloaded, getRealizable, getTypesFromArguments, identified, identified, isA, setProblemReporter, validate
-
Constructor Details
-
OverloadedAggregatingMathsFunction
public OverloadedAggregatingMathsFunction(nz.org.riskscape.engine.rl.agg.AggregationFunction aggFunction)
-
-
Method Details
-
getAlternatives
- Returns:
- list of functions for the alternative numeric arguments that this function supports
-
getArgumentTypes
- Specified by:
getArgumentTypesin interfacenz.org.riskscape.engine.function.RiskscapeFunction
-
getReturnType
public nz.org.riskscape.engine.types.Type getReturnType()- Specified by:
getReturnTypein interfacenz.org.riskscape.engine.function.RiskscapeFunction
-
realize
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> givenTypes) - Specified by:
realizein interfacenz.org.riskscape.engine.rl.RealizableFunction
-
getAggregationFunction
- Specified by:
getAggregationFunctionin interfacenz.org.riskscape.engine.function.RiskscapeFunction
-