Class MinDeviationFunction
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.variables.functions.MinDeviationFunction
-
- All Implemented Interfaces:
IFunction
public class MinDeviationFunction extends Object implements IFunction
Calculates the minimum of a value and given absolute and relative deviations. This function has three parameters. The first parameter is the value, the second on the absolute deviation, and the third one the relative deviation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMIN_DEVIATION_FUNCTION_NAMEName used in the stochastic expression for this function.
-
Constructor Summary
Constructors Constructor Description MinDeviationFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckParameters(List<Object> parameters)Test whether the given parameters can be processed by this functionObjectevaluate(List<Object> parameters)Evaluate the functions result using the parameters given
-
-
-
Field Detail
-
MIN_DEVIATION_FUNCTION_NAME
public static final String MIN_DEVIATION_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:IFunctionTest whether the given parameters can be processed by this function- Specified by:
checkParametersin interfaceIFunction- Parameters:
parameters- A set of parameters to be processed- Returns:
- true if the parameters fit to the functions preconditions, false otherwise
-
-