Package microsim.statistics.weighted
Class Weighted_CrossSection.Double
java.lang.Object
microsim.statistics.weighted.Weighted_CrossSection
microsim.statistics.weighted.Weighted_CrossSection.Double
- All Implemented Interfaces:
EventListener
,SourceObjectArray
,UpdatableSource
,WeightedDoubleArraySource
- Enclosing class:
Weighted_CrossSection
public static class Weighted_CrossSection.Double
extends Weighted_CrossSection
implements WeightedDoubleArraySource
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.weighted.Weighted_CrossSection
Weighted_CrossSection.Double, Weighted_CrossSection.Integer, Weighted_CrossSection.Long
-
Field Summary
Modifier and TypeFieldDescriptionprotected DoubleInvoker
protected Collection<? extends Weight>
protected Enum<?>
protected double[]
protected double[]
Fields inherited from class microsim.statistics.weighted.Weighted_CrossSection
filter, sourceList, timeChecker
-
Constructor Summary
ConstructorDescriptionDouble
(@NonNull Collection<? extends Weight> source) Create a statistic probe on a collection ofDoubleSource
objects.Double
(@NonNull Collection<? extends Weight> source, @NonNull Class<? extends Weight> objectClass, @NonNull String valueName, boolean getFromMethod) Create a basic statistic probe on a collection of objects.Double
(@NonNull Collection<? extends Weight> source, @NonNull Enum<?> valueID) Create a statistic probe on a collection ofDoubleSource
objects. -
Method Summary
Methods inherited from class microsim.statistics.weighted.Weighted_CrossSection
getSourceArray, isCheckingTime, onEvent, setCheckingTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface microsim.statistics.weighted.WeightedDoubleArraySource
getWeights
-
Field Details
-
valueList
protected double[] valueList -
weights
protected double[] weights -
invoker
-
target
-
valueID
-
-
Constructor Details
-
Double
public Double(@NonNull @NonNull Collection<? extends Weight> source, @NonNull @NonNull Enum<?> valueID) Create a statistic probe on a collection ofDoubleSource
objects.- Parameters:
source
- The collection containingDoubleSource
object.valueID
- The value identifier defined by source object.
-
Double
Create a statistic probe on a collection ofDoubleSource
objects. It uses the IDoubleSource.DEFAULT variable id.- Parameters:
source
- The collection containingDoubleSource
object.
-
Double
public Double(@NonNull @NonNull Collection<? extends Weight> source, @NonNull @NonNull Class<? extends Weight> objectClass, @NonNull @NonNull String valueName, boolean getFromMethod) Create a basic statistic probe on a collection of objects.- Parameters:
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 Details
-
toString
-
updateSource
public void updateSource()Description copied from interface:UpdatableSource
Forces the source to update its currently cached data.- Specified by:
updateSource
in interfaceUpdatableSource
- Specified by:
updateSource
in classWeighted_CrossSection
-
getDoubleArray
public double @NonNull [] getDoubleArray()Description copied from interface:WeightedDoubleArraySource
Return the currently cached array of double values.- Specified by:
getDoubleArray
in interfaceWeightedDoubleArraySource
- Returns:
- An array of double or a null pointer if the source is empty.
-