Package microsim.statistics
Class CrossSection.Double
- java.lang.Object
-
- microsim.statistics.CrossSection
-
- microsim.statistics.CrossSection.Double
-
- All Implemented Interfaces:
EventListener,IDoubleArraySource,ISourceObjectArray,IUpdatableSource
- Enclosing class:
- CrossSection
public static class CrossSection.Double extends CrossSection implements IDoubleArraySource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class microsim.statistics.CrossSection
CrossSection.Double, CrossSection.Float, CrossSection.Integer, CrossSection.Long
-
-
Constructor Summary
Constructors Constructor Description Double(java.util.Collection<?> source)Create a statistic probe on a collection of IDoubleSource objects.Double(java.util.Collection<?> source, java.lang.Class<?> objectClass, java.lang.String valueName, boolean getFromMethod)Create a basic statistic probe on a collection of objects.Double(java.util.Collection<?> source, java.lang.Enum<?> valueID)Create a statistic probe on a collection of IDoubleSource objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getDoubleArray()Return the currently cached array of double values.java.lang.StringtoString()voidupdateSource()Force the source to update its currently cached data.-
Methods inherited from class microsim.statistics.CrossSection
getFilter, getSourceArray, isCheckingTime, onEvent, setCheckingTime, setFilter
-
-
-
-
Constructor Detail
-
Double
public Double(java.util.Collection<?> source, java.lang.Enum<?> valueID)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
public Double(java.util.Collection<?> source)
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
public Double(java.util.Collection<?> source, java.lang.Class<?> objectClass, 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
-
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.
-
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 classCrossSection
-
-