Package microsim.statistics
Class Series.Double
java.lang.Object
microsim.statistics.Series
microsim.statistics.Series.Double
- All Implemented Interfaces:
EventListener,DoubleArraySource,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 DoubleSourceprotected Enum<?>protected microsim.statistics.Series.BufferedDoubleArrayListFields inherited from class microsim.statistics.Series
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionCreates a basic statistic probe on a collection of objects.Double(@NonNull DoubleSource source) Creates a statistic probe on a collection ofDoubleSourceobjects.Double(@NonNull DoubleSource source, @NonNull Enum<?> valueID) Creates a statistic probe on a collection ofDoubleSourceobjects. -
Method Summary
Modifier and TypeMethodDescriptiondouble @NonNull []Returns the currently cached array of double values.@NonNull cern.mateba.list.tdouble.DoubleArrayListtoString()voidForces the source to update its currently cached data.Methods inherited from class microsim.statistics.Series
isCheckingTime, onEvent, setCheckingTime
-
Field Details
-
valueList
protected microsim.statistics.Series.BufferedDoubleArrayList valueList -
target
-
valueID
-
-
Constructor Details
-
Double
Creates a statistic probe on a collection ofDoubleSourceobjects.- Parameters:
source- The collection containingDoubleSourceobject.valueID- The value identifier defined by source object.- Throws:
NullPointerException- when any of the input parameters isnull.
-
Double
Creates a statistic probe on a collection ofDoubleSourceobjects. It uses theDoubleSource.Variables.DEFAULTvariable id.- Parameters:
source- The collection containingDoubleSourceobject.- Throws:
NullPointerException- whensourceisnull.
-
Double
public Double(@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
-
getDoubleArray
public double @NonNull [] getDoubleArray()Description copied from interface:DoubleArraySourceReturns the currently cached array of double values.- Specified by:
getDoubleArrayin interfaceDoubleArraySource- Returns:
- An array of double or a null pointer if the source is empty.
-
getDoubleArrayList
@NonNull public @NonNull cern.mateba.list.tdouble.DoubleArrayList getDoubleArrayList() -
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
-
toString
-