Class Series.Integer

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

public static class Series.Integer extends Series implements IIntArraySource
  • Field Details

    • valueList

      protected microsim.statistics.Series.BufferedIntArrayList valueList
    • target

      protected IIntSource target
    • valueID

      protected Enum<?> valueID
  • Constructor Details

    • Integer

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

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

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

    • getIntArray

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

      public double[] getDoubleArray()
    • getIntArrayList

      public cern.colt.list.IntArrayList getIntArrayList()
    • 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