Package microsim.statistics
Class Series.Float
java.lang.Object
microsim.statistics.Series
microsim.statistics.Series.Float
- All Implemented Interfaces:
EventListener,IFloatArraySource,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 IFloatSourceprotected Enum<?>protected microsim.statistics.Series.BufferedFloatArrayListFields inherited from class microsim.statistics.Series
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionCreate a basic statistic probe on a collection of objects.Float(IFloatSource source) Create a statistic probe on a collection of IFloatSource objects.Float(IFloatSource source, Enum<?> valueID) Create a statistic probe on a collection of IFloatSource objects. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]float[]Return the currently cached array of float values.cern.colt.list.FloatArrayListtoString()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.BufferedFloatArrayList valueList -
target
-
valueID
-
-
Constructor Details
-
Float
Create a statistic probe on a collection of IFloatSource objects.- Parameters:
source- The collection containing IFloatSource object.valueID- The value identifier defined by source object.
-
Float
Create a statistic probe on a collection of IFloatSource objects. It uses the IFloatSource variable id.- Parameters:
source- The collection containing IFloatSource object.
-
Float
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
-
getFloatArray
public float[] getFloatArray()Description copied from interface:IFloatArraySourceReturn the currently cached array of float values.- Specified by:
getFloatArrayin interfaceIFloatArraySource- Returns:
- An array of float or a null pointer if the source is empty.
-
getDoubleArray
public double[] getDoubleArray() -
getFloatArrayList
public cern.colt.list.FloatArrayList getFloatArrayList() -
toString
-
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
-