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
Modifier and TypeFieldDescriptionprotected IntegerInvoker
protected Collection<?>
protected Enum<?>
protected int[]
Fields inherited from class microsim.statistics.CrossSection
filter, sourceArray, timeChecker
-
Constructor Summary
ConstructorDescriptionInteger
(@NonNull Collection<?> source) Create a statistic probe on a collection ofIntSource
objects.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 ofIntSource
objects. -
Method Summary
Methods inherited from class microsim.statistics.CrossSection
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.SourceObjectArray
getSourceArray
-
Field Details
-
valueList
protected int[] valueList -
invoker
-
target
-
valueID
-
-
Constructor Details
-
Integer
Creates a statistic probe on a collection ofIntSource
objects.- Parameters:
source
- The collection containingIntSource
object.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 ofIntSource
objects. It uses theIntSource.Variables.DEFAULT
variable id.- Parameters:
source
- The collection containingIntSource
object.- Throws:
NullPointerException
- whensource
isnull
.
-
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:IntArraySource
Returns a particular array ofinteger
values.- Specified by:
getIntArray
in 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:
updateSource
in interfaceUpdatableSource
- Specified by:
updateSource
in classCrossSection
-