Package nz.org.riskscape.engine.function
Class MetadataBasedFunction
java.lang.Object
nz.org.riskscape.engine.function.MetadataBasedFunction
- All Implemented Interfaces:
AutoCloseable,IdentifiedFunction,RiskscapeFunction,UntypedFunction,Identified
Convenience class for dealing with the basic metadata-related aspects of a function, i.e. the boiler-plate stuff that every function has to define.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction
IdentifiedFunction.Category, IdentifiedFunction.Wrapping -
Field Summary
Fields inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
BUILT_IN, LOG -
Constructor Summary
Constructors -
Method Summary
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.Identified
getIdentifiedClassMethods inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction
getSource, infoOutput, isBuiltin, toEntityMethods inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
builtin, close, getAggregationFunction, getOverloaded, getRealizable, getTypesFromArguments, identified, identified, isA, setProblemReporter, validateMethods inherited from interface nz.org.riskscape.engine.function.UntypedFunction
call
-
Constructor Details
-
MetadataBasedFunction
-
-
Method Details
-
getArgumentTypes
- Specified by:
getArgumentTypesin interfaceRiskscapeFunction- Returns:
- the types that this function expects
-
getArguments
- Specified by:
getArgumentsin interfaceRiskscapeFunction
-
getReturnType
- Specified by:
getReturnTypein interfaceRiskscapeFunction- Returns:
- the type that this function should return
-
getId
- Specified by:
getIdin interfaceIdentified- Returns:
- id
-
getDescription
- Specified by:
getDescriptionin interfaceIdentifiedFunction- Returns:
- a human readable description of the function
-
getSourceURI
- Specified by:
getSourceURIin interfaceIdentifiedFunction- Returns:
- a uri indicating the source of function. file/uri etc.
-
getCategory
- Specified by:
getCategoryin interfaceIdentifiedFunction- Returns:
- the category that this function belongs to
-