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,IDoubleSource,IIntSource,IUpdatableSource
- Enclosing class:
- MinArrayFunction
MinFunction operating on integer source values.
- Author:
- Michele Sonnessa
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.functions.MinArrayFunction
MinArrayFunction.Double, MinArrayFunction.Float, MinArrayFunction.Integer, MinArrayFunction.LongNested classes/interfaces inherited from interface microsim.statistics.IDoubleSource
IDoubleSource.VariablesNested classes/interfaces inherited from interface microsim.statistics.IIntSource
IIntSource.Variables -
Field Summary
FieldsFields inherited from class microsim.statistics.functions.AbstractArrayFunction
dblSource, fltSource, intSource, lngSource, type, TYPE_DBL, TYPE_FLT, TYPE_INT, TYPE_LNGFields inherited from class microsim.statistics.functions.AbstractFunction
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionInteger(IIntArraySource source) Create a minimum function on an integer array source. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(int[] data) Apply the function on a the given array of integer values.doublegetDoubleValue(Enum<?> variableID) Return the double value corresponding to the given variableIDintgetIntValue(Enum<?> variableID) Return the integer value corresponding to the given variableIDMethods inherited from class microsim.statistics.functions.AbstractArrayFunction
apply, apply, apply, applyFunctionMethods inherited from class microsim.statistics.functions.AbstractFunction
isCheckingTime, onEvent, setCheckingTime, updateSource
-
Field Details
-
imin
protected int imin
-
-
Constructor Details
-
Integer
Create a minimum function on an integer array source.- Parameters:
source- The data source.
-
-
Method Details
-
apply
public void apply(int[] data) Description copied from class:AbstractArrayFunctionApply the function on a the given array of integer values.- Overrides:
applyin classAbstractArrayFunction- Parameters:
data- A source array of values.
-
getIntValue
Description copied from interface:IIntSourceReturn the integer value corresponding to the given variableID- Specified by:
getIntValuein interfaceIIntSource- Returns:
- The current integer value of the required variable.
-
getDoubleValue
Description copied from interface:IDoubleSourceReturn the double value corresponding to the given variableID- Specified by:
getDoubleValuein interfaceIDoubleSource- Parameters:
variableID- A unique identifier for a variable.- Returns:
- The current double value of the required variable.
-