Package microsim.statistics
Class Series.Long
- java.lang.Object
-
- microsim.statistics.Series
-
- microsim.statistics.Series.Long
-
- All Implemented Interfaces:
EventListener,ILongArraySource,IUpdatableSource
- Enclosing class:
- Series
public static class Series.Long extends Series implements ILongArraySource
-
-
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 Long(java.lang.Object source, java.lang.String valueName, boolean getFromMethod)Create a basic statistic probe on a collection of objects.Long(ILongSource source)Create a statistic probe on a collection of ILongSource objects.Long(ILongSource source, java.lang.Enum<?> valueID)Create a statistic probe on a collection of ILongSource objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getDoubleArray()long[]getLongArray()Return the currently cached array of long values.cern.colt.list.LongArrayListgetLongArrayList()java.lang.StringtoString()voidupdateSource()Force the source to update its currently cached data.-
Methods inherited from class microsim.statistics.Series
isCheckingTime, onEvent, setCheckingTime
-
-
-
-
Constructor Detail
-
Long
public Long(ILongSource source, java.lang.Enum<?> valueID)
Create a statistic probe on a collection of ILongSource objects.- Parameters:
name- Name of the statistic object.source- The collection containing ILongSource object.valueID- The value identifier defined by source object.
-
Long
public Long(ILongSource source)
Create a statistic probe on a collection of ILongSource objects. It uses the ILongSource variable id.- Parameters:
source- The collection containing ILongSource object.
-
Long
public Long(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
-
getLongArray
public long[] getLongArray()
Description copied from interface:ILongArraySourceReturn the currently cached array of long values.- Specified by:
getLongArrayin interfaceILongArraySource- Returns:
- An array of long or a null pointer if the source is empty.
-
getDoubleArray
public double[] getDoubleArray()
-
getLongArrayList
public cern.colt.list.LongArrayList getLongArrayList()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
updateSource
public void updateSource()
Description copied from interface:IUpdatableSourceForce the source to update its currently cached data.- Specified by:
updateSourcein interfaceIUpdatableSource- Specified by:
updateSourcein classSeries
-
-