Package microsim.statistics
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class microsim.statistics.Series
Series.Double, Series.Float, Series.Integer, Series.Long
-
-
Constructor Summary
Constructors Constructor Description Integer(java.lang.Object source, java.lang.String valueName, boolean getFromMethod)
Create a basic statistic probe on a collection of objects.Integer(IIntSource source)
Create a statistic probe on a collection of IIntSource objects.Integer(IIntSource source, java.lang.Enum<?> valueID)
Create a statistic probe on a collection of IIntSource objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getDoubleArray()
int[]
getIntArray()
Return the currently cached array of integer values.cern.colt.list.IntArrayList
getIntArrayList()
java.lang.String
toString()
void
updateSource()
Force the source to update its currently cached data.-
Methods inherited from class microsim.statistics.Series
isCheckingTime, onEvent, setCheckingTime
-
-
-
-
Constructor Detail
-
Integer
public Integer(IIntSource source, java.lang.Enum<?> valueID)
Create a statistic probe on a collection of IIntSource objects.- Parameters:
name
- Name of the statistic object.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(java.lang.Object source, java.lang.String valueName, boolean getFromMethod)
Create a basic statistic probe on a collection of objects.- Parameters:
name
- Name of the statistic object.source
- A collection of generic objects.objectClass
- The class of the objects contained by collection source.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 Detail
-
getIntArray
public int[] getIntArray()
Description copied from interface:IIntArraySource
Return the currently cached array of integer values.- Specified by:
getIntArray
in interfaceIIntArraySource
- 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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
updateSource
public void updateSource()
Description copied from interface:IUpdatableSource
Force the source to update its currently cached data.- Specified by:
updateSource
in interfaceIUpdatableSource
- Specified by:
updateSource
in classSeries
-
-