Class DoubleValueExtractor

java.lang.Object
microsim.reflection.AbstractValueExtractor
microsim.reflection.DoubleValueExtractor

public class DoubleValueExtractor extends AbstractValueExtractor
Employs Java reflection to call objects' methods which return double values.
  • Constructor Details

  • Method Details

    • getDouble

      public double getDouble(@NonNull @NonNull Object target)
      Invoke the method of the target object and return its double result.
      Parameters:
      target - Object to be invoked.
      Returns:
      The requested double value.
    • getDouble

      public double getDouble()
      Invoke the method of the object passed to constructor and return its double result.
      Returns:
      The requested double value.
    • getDoubleValue

      public double getDoubleValue(int ignoredValueID)
      This is an implementation of the DoubleSource interface. It calls the getDouble() method.
      Parameters:
      ignoredValueID - This parameter is ignored. It is put for compatibility with the DoubleSource interface.
      Returns:
      The requested double value.
    • getCollectionValue

      public double @NonNull [] getCollectionValue(@NonNull @NonNull Collection<?> c)