Package microsim.statistics
Class CrossSection.Integer
java.lang.Object
microsim.statistics.CrossSection
microsim.statistics.CrossSection.Integer
- All Implemented Interfaces:
EventListener,IntArraySource,SourceObjectArray,UpdatableSource
- Enclosing class:
CrossSection
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.CrossSection
CrossSection.Double, CrossSection.Integer, CrossSection.Long -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IntegerInvokerprotected Collection<?>protected Enum<?>protected int[]Fields inherited from class microsim.statistics.CrossSection
filter, sourceArray, timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionInteger(@NonNull Collection<?> source) Create a statistic probe on a collection ofIntSourceobjects.Integer(@NonNull Collection<?> source, @NonNull Class<?> objectClass, @NonNull String valueName, boolean getFromMethod) Create a basic statistic probe on a collection of objects.Integer(@NonNull Collection<?> source, @NonNull Enum<?> valueID) Creates a statistic probe on a collection ofIntSourceobjects. -
Method Summary
Methods inherited from class microsim.statistics.CrossSection
isCheckingTime, onEvent, setCheckingTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface microsim.statistics.SourceObjectArray
getSourceArray
-
Field Details
-
valueList
protected int[] valueList -
invoker
-
target
-
valueID
-
-
Constructor Details
-
Integer
Creates a statistic probe on a collection ofIntSourceobjects.- Parameters:
source- The collection containingIntSourceobject.valueID- The value identifier defined by source object.- Throws:
NullPointerException- when any of the input parameters isnull.
-
Integer
Create a statistic probe on a collection ofIntSourceobjects. It uses theIntSource.Variables.DEFAULTvariable id.- Parameters:
source- The collection containingIntSourceobject.- Throws:
NullPointerException- whensourceisnull.
-
Integer
public Integer(@NonNull @NonNull Collection<?> source, @NonNull @NonNull Class<?> 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.- Throws:
NullPointerException- when any of the input parameters isnull.
-
-
Method Details
-
getIntArray
public int @NonNull [] getIntArray()Description copied from interface:IntArraySourceReturns a particular array ofintegervalues.- Specified by:
getIntArrayin interfaceIntArraySource- Returns:
- an array of
integer.
-
getDoubleArray
public double @NonNull [] getDoubleArray() -
toString
-
updateSource
public void updateSource()Updates the state of the object when it's not up-to-date.- Specified by:
updateSourcein interfaceUpdatableSource- Specified by:
updateSourcein classCrossSection
-