Class MaxFunction
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.variables.functions.MaxFunction
-
- All Implemented Interfaces:
IFunction
public class MaxFunction extends Object implements IFunction
Implements the maximum function as in @linkMath
, e.g.Math.max(double, double)
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MAX_FUNCTION_NAME
Name used in the stochastic expression for this function.
-
Constructor Summary
Constructors Constructor Description MaxFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkParameters(List<Object> parameters)
Test whether the given parameters can be processed by this functionObject
evaluate(List<Object> parameters)
Evaluate the functions result using the parameters given
-
-
-
Field Detail
-
MAX_FUNCTION_NAME
public static final String MAX_FUNCTION_NAME
Name used in the stochastic expression for this function.- See Also:
- Constant Field Values
-
-
Method Detail
-
checkParameters
public boolean checkParameters(List<Object> parameters)
Description copied from interface:IFunction
Test whether the given parameters can be processed by this function- Specified by:
checkParameters
in interfaceIFunction
- Parameters:
parameters
- A set of parameters to be processed- Returns:
- true if the parameters fit to the functions preconditions, false otherwise
-
-