Package microsim.statistics.functions
Class MaxArrayFunction.Double
java.lang.Object
microsim.statistics.functions.AbstractFunction
microsim.statistics.functions.AbstractArrayFunction
microsim.statistics.functions.MaxArrayFunction
microsim.statistics.functions.MaxArrayFunction.Double
- All Implemented Interfaces:
EventListener
,DoubleSource
,UpdatableSource
- Enclosing class:
MaxArrayFunction
MaxFunction operating on double source values.
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.functions.MaxArrayFunction
MaxArrayFunction.Double, MaxArrayFunction.Integer, MaxArrayFunction.Long
Nested classes/interfaces inherited from interface microsim.statistics.DoubleSource
DoubleSource.Variables
-
Field Summary
Fields inherited from class microsim.statistics.functions.AbstractArrayFunction
dblSource, intSource, lngSource, type, TYPE_DBL, TYPE_INT, TYPE_LNG
Fields inherited from class microsim.statistics.functions.AbstractFunction
timeChecker
-
Constructor Summary
ConstructorDescriptionDouble
(@NonNull DoubleArraySource source) Creates a maximum function on a double array source. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(double @NonNull [] data) Applies the function to the given array of double values.double
getDoubleValue
(@NonNull Enum<?> id) Returns the double value corresponding to the given variableIDMethods inherited from class microsim.statistics.functions.AbstractArrayFunction
apply, apply, applyFunction
Methods inherited from class microsim.statistics.functions.AbstractFunction
isCheckingTime, onEvent, setCheckingTime, updateSource
-
Field Details
-
dmax
protected double dmax
-
-
Constructor Details
-
Double
Creates a maximum function on a double array source.- Parameters:
source
- The data source.- Throws:
NullPointerException
- whensource
isnull
.
-
-
Method Details
-
apply
public void apply(double @NonNull [] data) Applies the function to the given array of double values.- Overrides:
apply
in classAbstractArrayFunction
- Parameters:
data
- A source array of values.- Throws:
NullPointerException
- whendata
isnull
.
-
getDoubleValue
Returns the double value corresponding to the given variableID- Specified by:
getDoubleValue
in interfaceDoubleSource
- Parameters:
id
- A unique identifier for a variable.- Returns:
- The current double value of the required variable.
- Throws:
NullPointerException
- whenid
isnull
.
-