Class Series.Float

java.lang.Object
microsim.statistics.Series
microsim.statistics.Series.Float
All Implemented Interfaces:
EventListener, IFloatArraySource, IUpdatableSource
Enclosing class:
Series

public static class Series.Float extends Series implements IFloatArraySource
  • Field Details

    • valueList

      protected microsim.statistics.Series.BufferedFloatArrayList valueList
    • target

      protected IFloatSource target
    • valueID

      protected Enum<?> valueID
  • Constructor Details

    • Float

      public Float(IFloatSource source, Enum<?> valueID)
      Create a statistic probe on a collection of IFloatSource objects.
      Parameters:
      source - The collection containing IFloatSource object.
      valueID - The value identifier defined by source object.
    • Float

      public Float(IFloatSource source)
      Create a statistic probe on a collection of IFloatSource objects. It uses the IFloatSource variable id.
      Parameters:
      source - The collection containing IFloatSource object.
    • Float

      public Float(Object source, String valueName, boolean getFromMethod)
      Create a basic statistic probe on a collection of objects.
      Parameters:
      source - A collection of generic objects.
      valueName - The name of the field or the method returning the variable to be probed.
      getFromMethod - Specifies if valueName is a method or a property value.
  • Method Details

    • getFloatArray

      public float[] getFloatArray()
      Description copied from interface: IFloatArraySource
      Return the currently cached array of float values.
      Specified by:
      getFloatArray in interface IFloatArraySource
      Returns:
      An array of float or a null pointer if the source is empty.
    • getDoubleArray

      public double[] getDoubleArray()
    • getFloatArrayList

      public cern.colt.list.FloatArrayList getFloatArrayList()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • updateSource

      public void updateSource()
      Description copied from interface: IUpdatableSource
      Force the source to update its currently cached data.
      Specified by:
      updateSource in interface IUpdatableSource
      Specified by:
      updateSource in class Series