Package microsim.statistics
Class CrossSection.Integer
java.lang.Object
microsim.statistics.CrossSection
microsim.statistics.CrossSection.Integer
- All Implemented Interfaces:
EventListener,IIntArraySource,ISourceObjectArray,IUpdatableSource
- Enclosing class:
- CrossSection
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.CrossSection
CrossSection.Double, CrossSection.Float, CrossSection.Integer, CrossSection.Long -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IntegerInvokerprotected Collection<?>protected Enum<?>protected int[]Fields inherited from class microsim.statistics.CrossSection
filter, sourceList, timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionInteger(Collection<?> source) Create a statistic probe on a collection of IIntSource objects.Integer(Collection<?> source, Class<?> objectClass, String valueName, boolean getFromMethod) Create a basic statistic probe on a collection of objects.Integer(Collection<?> source, Enum<?> valueID) Create a statistic probe on a collection of IIntSource objects. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]int[]Return the currently cached array of integer values.toString()voidForce the source to update its currently cached data.Methods inherited from class microsim.statistics.CrossSection
getFilter, getSourceArray, isCheckingTime, onEvent, setCheckingTime, setFilter
-
Field Details
-
valueList
protected int[] valueList -
invoker
-
target
-
valueID
-
-
Constructor Details
-
Integer
Create a statistic probe on a collection of IIntSource objects.- Parameters:
source- The collection containing IIntSource object.valueID- The value identifier defined by source object.
-
Integer
Create a statistic probe on a collection of IIntSource objects. It uses the IIntSource.DEFAULT variable id.- Parameters:
source- The collection containing IIntSource object.
-
Integer
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
-
getIntArray
public int[] getIntArray()Description copied from interface:IIntArraySourceReturn the currently cached array of integer values.- Specified by:
getIntArrayin interfaceIIntArraySource- Returns:
- An array of integer or a null pointer if the source is empty.
-
getDoubleArray
public double[] getDoubleArray() -
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 classCrossSection
-