Class Series.Double

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

public static class Series.Double extends Series implements IDoubleArraySource
  • Field Details

    • valueList

      protected microsim.statistics.Series.BufferedDoubleArrayList valueList
    • target

      protected IDoubleSource target
    • valueID

      protected Enum<?> valueID
  • Constructor Details

    • Double

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

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

      public Double(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

    • getDoubleArray

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

      public cern.colt.list.DoubleArrayList getDoubleArrayList()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object