Package microsim.statistics
Class Series.Double
java.lang.Object
microsim.statistics.Series
microsim.statistics.Series.Double
- All Implemented Interfaces:
EventListener,IDoubleArraySource,IUpdatableSource
- Enclosing class:
- Series
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.Series
Series.Double, Series.Float, Series.Integer, Series.Long -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IDoubleSourceprotected Enum<?>protected microsim.statistics.Series.BufferedDoubleArrayListFields inherited from class microsim.statistics.Series
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionCreate a basic statistic probe on a collection of objects.Double(IDoubleSource source) Create a statistic probe on a collection of IDoubleSource objects.Double(IDoubleSource source, Enum<?> valueID) Create a statistic probe on a collection of IDoubleSource objects. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Return the currently cached array of double values.cern.colt.list.DoubleArrayListtoString()voidForce 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
Create a statistic probe on a collection of IDoubleSource objects.- Parameters:
source- The collection containing IDoubleSource object.valueID- The value identifier defined by source object.
-
Double
Create a statistic probe on a collection of IDoubleSource objects. It uses the IDoubleSource.DEFAULT variable id.- Parameters:
source- The collection containing IDoubleSource object.
-
Double
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
-
getDoubleArray
public double[] getDoubleArray()Description copied from interface:IDoubleArraySourceReturn the currently cached array of double values.- Specified by:
getDoubleArrayin interfaceIDoubleArraySource- Returns:
- An array of double or a null pointer if the source is empty.
-
getDoubleArrayList
public cern.colt.list.DoubleArrayList getDoubleArrayList() -
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
-
toString
-