Type Parameters:
T - feature input-type

public class UnitsWithinRange<T extends FeatureInputWithResolution> extends WithResolutionBase<T>
Checks if a value lies within a range defined by units (a minimum and maximum boundary)
Author:
Owen Feehan
  • Constructor Details

    • UnitsWithinRange

      public UnitsWithinRange()
  • Method Details

    • calculateWithResolution

      protected double calculateWithResolution(double value, Resolution resolution) throws FeatureCalculationException
      Description copied from class: WithResolutionBase
      Calculates the feature value using the provided value and resolution.
      Specified by:
      calculateWithResolution in class WithResolutionBase<T extends FeatureInputWithResolution>
      Parameters:
      value - the input value to be used in the calculation
      resolution - the resolution to be used in the calculation
      Returns:
      the calculated feature value
      Throws:
      FeatureCalculationException - if an error occurs during calculation
    • describeParameters

      public String describeParameters()
      Description copied from class: Feature
      A human-readable description of the parameterization of the bean.
      Overrides:
      describeParameters in class Feature<T extends FeatureInputWithResolution>
      Returns:
      the description.
    • getWithin

      public double getWithin()
      Returned as a constant if a value lies within the range
    • setWithin

      public void setWithin(double within)
      Returned as a constant if a value lies within the range
    • getOutside

      public double getOutside()
      Returned as a constant if a value lies otside the range
    • setOutside

      public void setOutside(double outside)
      Returned as a constant if a value lies otside the range
    • getMin

      public UnitValueExtent getMin()
      Minimum-boundary for acceptable range

      We default to volume as units, but it could also be area. It's arbitrary for 0-value.

    • setMin

      public void setMin(UnitValueExtent min)
      Minimum-boundary for acceptable range

      We default to volume as units, but it could also be area. It's arbitrary for 0-value.

    • getMax

      public UnitValueExtent getMax()
      Maximum-boundary for acceptable range

      We default to volume as units, but it could also be area. It's arbitrary for infinity-value.

    • setMax

      public void setMax(UnitValueExtent max)
      Maximum-boundary for acceptable range

      We default to volume as units, but it could also be area. It's arbitrary for infinity-value.