Class ToTypedCoverage

java.lang.Object
nz.org.riskscape.engine.function.BaseRealizableFunction
nz.org.riskscape.engine.function.geometry.ToTypedCoverage
All Implemented Interfaces:
nz.org.riskscape.engine.rl.agg.AggregationFunction, nz.org.riskscape.engine.rl.RealizableFunction

public class ToTypedCoverage extends BaseRealizableFunction implements nz.org.riskscape.engine.rl.agg.AggregationFunction
  • 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
    Modifier and Type
    Field
    Description
    static final nz.org.riskscape.engine.types.Struct
    A Struct defining all options that may be passed to this function.

    Fields inherited from class nz.org.riskscape.engine.function.BaseRealizableFunction

    arguments, returnType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    nz.org.riskscape.engine.function.RiskscapeFunction
     
    nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.rl.agg.RealizedAggregateExpression>
    realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.engine.types.Type inputType, nz.org.riskscape.rl.ast.FunctionCall fc)
     
    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 fc, List<nz.org.riskscape.engine.types.Type> argumentTypes)
    Implements some basic boilerplate error checks by default.

    Methods inherited from class nz.org.riskscape.engine.function.BaseRealizableFunction

    build, builtin, getArguments, getReturnType, identified

    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.rl.agg.AggregationFunction

    getArguments, getReturnType
  • Field Details

    • ALLOWED_OPTIONS

      public static final nz.org.riskscape.engine.types.Struct ALLOWED_OPTIONS

      A Struct defining all options that may be passed to this function.

  • Constructor Details

    • ToTypedCoverage

      public ToTypedCoverage()
  • Method Details

    • asFunction

      public nz.org.riskscape.engine.function.RiskscapeFunction asFunction()
      Overrides:
      asFunction in class BaseRealizableFunction
      Returns:
      a RiskscapeFunction that wraps this RealizableFunction. Note that I haven't made this class implements RiskscapeFunction directly as the plan is to re-arrange these classes so that all functions become realizable but are not riskscape functions themselves (until they are realized).
    • 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 fc, List<nz.org.riskscape.engine.types.Type> argumentTypes)
      Description copied from class: BaseRealizableFunction

      Implements some basic boilerplate error checks by default. This allows simple realizable functions to just define the BaseRealizableFunction.build(RealizationContext, FunctionCall, List) guts of the function. More complicated realizable functions (i.e. with non-trivial type handling) may want to override this completely.

      Specified by:
      realize in interface nz.org.riskscape.engine.rl.RealizableFunction
      Overrides:
      realize in class BaseRealizableFunction
    • realize

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.rl.agg.RealizedAggregateExpression> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.engine.types.Type inputType, nz.org.riskscape.rl.ast.FunctionCall fc)
      Specified by:
      realize in interface nz.org.riskscape.engine.rl.agg.AggregationFunction