Package microsim.statistics.functions
Class MinArrayFunction.Integer
java.lang.Object
microsim.statistics.functions.AbstractFunction
microsim.statistics.functions.AbstractArrayFunction
microsim.statistics.functions.MinArrayFunction
microsim.statistics.functions.MinArrayFunction.Integer
- All Implemented Interfaces:
EventListener,DoubleSource,IntSource,UpdatableSource
- Enclosing class:
MinArrayFunction
MinFunction operating on integer source values.
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.functions.MinArrayFunction
MinArrayFunction.Double, MinArrayFunction.Integer, MinArrayFunction.LongNested classes/interfaces inherited from interface microsim.statistics.DoubleSource
DoubleSource.VariablesNested classes/interfaces inherited from interface microsim.statistics.IntSource
IntSource.Variables -
Field Summary
FieldsFields inherited from class microsim.statistics.functions.AbstractArrayFunction
dblSource, intSource, lngSource, type, TYPE_DBL, TYPE_INT, TYPE_LNGFields inherited from class microsim.statistics.functions.AbstractFunction
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionInteger(@NonNull IntArraySource source) Creates a minimum function on an integer array source. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(int @NonNull [] data) Applies the function to the given array of integer values.doublegetDoubleValue(@NonNull Enum<?> variableID) Returns the double value corresponding to the given variableIDintgetIntValue(@NonNull Enum<?> variableID) Returns the integer value corresponding to the givenvariableIDMethods inherited from class microsim.statistics.functions.AbstractArrayFunction
apply, apply, applyFunctionMethods inherited from class microsim.statistics.functions.AbstractFunction
isCheckingTime, onEvent, setCheckingTime, updateSource
-
Field Details
-
imin
protected int imin
-
-
Constructor Details
-
Integer
Creates a minimum function on an integer array source.- Parameters:
source- The data source.- Throws:
NullPointerException- whensourceisnull.
-
-
Method Details
-
apply
public void apply(int @NonNull [] data) Applies the function to the given array of integer values.- Overrides:
applyin classAbstractArrayFunction- Parameters:
data- A source array of values.- Throws:
NullPointerException- whendataisnull.
-
getIntValue
Returns the integer value corresponding to the givenvariableID- Specified by:
getIntValuein interfaceIntSource- Parameters:
variableID- A unique identifier for a variable.- Returns:
- The current integer value of the required variable.
- Throws:
NullPointerException- whenvariableIDisnull.
-
getDoubleValue
Returns the double value corresponding to the given variableID- Specified by:
getDoubleValuein interfaceDoubleSource- Parameters:
variableID- A unique identifier for a variable.- Returns:
- The current double value of the required variable.
- Throws:
NullPointerException- whenvariableIDisnull.
-