Class SampleClosest
java.lang.Object
nz.org.riskscape.engine.function.geometry.SampleClosest
- All Implemented Interfaces:
AutoCloseable,nz.org.riskscape.engine.function.RiskscapeFunction,nz.org.riskscape.engine.function.UntypedFunction,nz.org.riskscape.engine.rl.RealizableFunction
public class SampleClosest
extends Object
implements nz.org.riskscape.engine.function.RiskscapeFunction, nz.org.riskscape.engine.rl.RealizableFunction
Sample function that will return a single sample or null. Sampling if first performed at the centroid, if no sample is found at the centroid then the closest (to the centroid) all intersections match is chosen. Note that the centroid is only sampled if the centroid is contained by the geometry
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.rl.RealizableFunction
nz.org.riskscape.engine.rl.RealizableFunction.MetadataIdentifiedRealizableFunction -
Field Summary
Fields inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
BUILT_IN, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.engine.function.ArgumentListList<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> realizeTypes) 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.rl.RealizableFunction
isDoTypeAdaptationMethods inherited from interface nz.org.riskscape.engine.function.RiskscapeFunction
builtin, close, getAggregationFunction, getOverloaded, getRealizable, getTypesFromArguments, identified, identified, isA, setProblemReporter, validate
-
Constructor Details
-
SampleClosest
public SampleClosest()
-
-
Method Details
-
getArgumentTypes
- Specified by:
getArgumentTypesin interfacenz.org.riskscape.engine.function.RiskscapeFunction
-
call
- Specified by:
callin interfacenz.org.riskscape.engine.function.UntypedFunction
-
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> realizeTypes) - Specified by:
realizein interfacenz.org.riskscape.engine.rl.RealizableFunction
-
getArguments
public nz.org.riskscape.engine.function.ArgumentList getArguments()- Specified by:
getArgumentsin interfacenz.org.riskscape.engine.function.RiskscapeFunction
-