Package microsim.statistics.functions
Class MinArrayFunction.Long
java.lang.Object
microsim.statistics.functions.AbstractFunction
microsim.statistics.functions.AbstractArrayFunction
microsim.statistics.functions.MinArrayFunction
microsim.statistics.functions.MinArrayFunction.Long
- All Implemented Interfaces:
EventListener,IDoubleSource,ILongSource,IUpdatableSource
- Enclosing class:
- MinArrayFunction
MinFunction operating on long 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.ILongSource
ILongSource.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
ConstructorsConstructorDescriptionLong(ILongArraySource source) Create a minimum function on a long array source. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(long[] data) Apply the function on a the given array of long values.doublegetDoubleValue(Enum<?> variableID) Return the double value corresponding to the given variableIDlonggetLongValue(Enum<?> variableID) Return the long 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
-
lmin
protected long lmin
-
-
Constructor Details
-
Long
Create a minimum function on a long array source.- Parameters:
source- The data source.
-
-
Method Details
-
apply
public void apply(long[] data) Description copied from class:AbstractArrayFunctionApply the function on a the given array of long values.- Overrides:
applyin classAbstractArrayFunction- Parameters:
data- A source array of values.
-
getLongValue
Description copied from interface:ILongSourceReturn the long value corresponding to the given variableID- Specified by:
getLongValuein interfaceILongSource- Parameters:
variableID- A unique identifier for a variable.- Returns:
- The current long 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.
-