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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
Methods inherited from interface nz.org.riskscape.engine.function.IdentifiedFunction
infoOutput, isBuiltin, toEntity
Methods inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
builtin, getAggregationFunction, getOverloaded, getRealizable, getTypesFromArguments, identified, identified, isA, setProblemReporter, validate
Methods inherited from interface nz.org.riskscape.engine.function.UntypedFunction
call, close
-
Constructor Details
-
MetadataBasedFunction
-
-
Method Details
-
getArgumentTypes
- Specified by:
getArgumentTypes
in interfaceRiskscapeFunction
- Returns:
- the types that this function expects
-
getArguments
- Specified by:
getArguments
in interfaceRiskscapeFunction
-
getReturnType
- Specified by:
getReturnType
in interfaceRiskscapeFunction
- Returns:
- the type that this function should return
-
getId
- Specified by:
getId
in interfaceIdentified
- Returns:
- id
-
getDescription
- Specified by:
getDescription
in interfaceIdentifiedFunction
- Returns:
- a human readable description of the function
-
getSource
- Specified by:
getSource
in interfaceIdentifiedFunction
- Returns:
- a string indicating the source of function. file/uri etc.
-
getCategory
- Specified by:
getCategory
in interfaceIdentifiedFunction
- Returns:
- the category that this function belongs to
-