Class SumArrayFunction.Long

All Implemented Interfaces:
EventListener, IDoubleSource, ILongSource, IUpdatableSource
Enclosing class:
SumArrayFunction

public static class SumArrayFunction.Long extends SumArrayFunction implements ILongSource
SumFunction operating on long source values.
Author:
Michele Sonnessa
  • Field Details

    • lsum

      protected long lsum
  • Constructor Details

    • Long

      public Long(ILongArraySource source)
      Create a sum function on a long array source.
      Parameters:
      source - The data source.
  • Method Details

    • apply

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

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

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