Class MaxArrayFunction.Double

All Implemented Interfaces:
EventListener, IDoubleSource, IUpdatableSource
Enclosing class:
MaxArrayFunction

public static class MaxArrayFunction.Double extends MaxArrayFunction implements IDoubleSource
MaxFunction operating on double source values.
Author:
Michele Sonnessa
  • Field Details

    • dmax

      protected double dmax
  • Constructor Details

    • Double

      public Double(IDoubleArraySource source)
      Create a maximum function on a double array source.
      Parameters:
      source - The data source.
  • Method Details

    • apply

      public void apply(double[] data)
      Description copied from class: AbstractArrayFunction
      Apply the function on a the given array of double values.
      Overrides:
      apply in class AbstractArrayFunction
      Parameters:
      data - A source array of values.
    • getDoubleValue

      public double getDoubleValue(Enum<?> id)
      Description copied from interface: IDoubleSource
      Return the double value corresponding to the given variableID
      Specified by:
      getDoubleValue in interface IDoubleSource
      Parameters:
      id - A unique identifier for a variable.
      Returns:
      The current double value of the required variable.