Class MaxArrayFunction.Double

All Implemented Interfaces:
EventListener, DoubleSource, UpdatableSource
Enclosing class:
MaxArrayFunction

public static class MaxArrayFunction.Double extends MaxArrayFunction implements DoubleSource
MaxFunction operating on double source values.
  • Field Details

    • dmax

      protected double dmax
  • Constructor Details

    • Double

      public Double(@NonNull @NonNull DoubleArraySource source)
      Creates a maximum function on a double array source.
      Parameters:
      source - The data source.
      Throws:
      NullPointerException - when source is null.
  • Method Details

    • apply

      public void apply(double @NonNull [] data)
      Applies the function to the given array of double values.
      Overrides:
      apply in class AbstractArrayFunction
      Parameters:
      data - A source array of values.
      Throws:
      NullPointerException - when data is null.
    • getDoubleValue

      public double getDoubleValue(@NonNull @NonNull Enum<?> id)
      Returns the double value corresponding to the given variableID
      Specified by:
      getDoubleValue in interface DoubleSource
      Parameters:
      id - A unique identifier for a variable.
      Returns:
      The current double value of the required variable.
      Throws:
      NullPointerException - when id is null.