Package microsim.statistics
Class Series.Long
java.lang.Object
microsim.statistics.Series
microsim.statistics.Series.Long
- All Implemented Interfaces:
EventListener,LongArraySource,UpdatableSource
- Enclosing class:
Series
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.Series
Series.Double, Series.Integer, Series.Long -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LongSourceprotected Enum<?>protected microsim.statistics.Series.BufferedLongArrayListFields inherited from class microsim.statistics.Series
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionCreates a basic statistic probe on a collection of objects.Long(@NonNull LongSource source) Creates a statistic probe on a collection ofLongSourceobjects.Long(@NonNull LongSource source, @NonNull Enum<?> valueID) Creates a statistic probe on a collection ofLongSourceobjects. -
Method Summary
Methods inherited from class microsim.statistics.Series
isCheckingTime, onEvent, setCheckingTime
-
Field Details
-
valueList
protected microsim.statistics.Series.BufferedLongArrayList valueList -
target
-
valueID
-
-
Constructor Details
-
Long
Creates a statistic probe on a collection ofLongSourceobjects.- Parameters:
source- The collection containingLongSourceobject.valueID- The value identifier defined by source object.- Throws:
NullPointerException- when any of the input parameters isnull.
-
Long
Creates a statistic probe on a collection ofLongSourceobjects. It uses theLongSource.Variables.DEFAULTvariable id.- Parameters:
source- The collection containingLongSourceobject.- Throws:
NullPointerException- whensourceisnull.
-
Long
public Long(@NonNull @NonNull Object source, @NonNull @NonNull String valueName, boolean getFromMethod) Creates 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.- Throws:
NullPointerException- when any of the input parameters isnull.
-
-
Method Details
-
getLongArray
public long @NonNull [] getLongArray()Description copied from interface:LongArraySourceReturns the currently cached array of long values.- Specified by:
getLongArrayin interfaceLongArraySource- Returns:
- An array of long or a null pointer if the source is empty.
-
getDoubleArray
public double @NonNull [] getDoubleArray() -
getLongArrayList
@NonNull public @NonNull cern.mateba.list.tlong.LongArrayList getLongArrayList() -
toString
-
updateSource
public void updateSource()Description copied from interface:UpdatableSourceForces the source to update its currently cached data.- Specified by:
updateSourcein interfaceUpdatableSource- Specified by:
updateSourcein classSeries
-