Interface PayloadCalculator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PayloadCalculator
Calculates a payload value for an ObjectMask.

This functional interface is used to compute a numeric value associated with an object mask, which can be used in various algorithms, such as object merging or prioritization.

  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculate(ObjectMask object)
    Calculates the payload value for a given object mask.
  • Method Details

    • calculate

      double calculate(ObjectMask object) throws FeatureCalculationException
      Calculates the payload value for a given object mask.
      Parameters:
      object - the ObjectMask for which to calculate the payload
      Returns:
      the calculated payload value as a double
      Throws:
      FeatureCalculationException - if an error occurs during the calculation