Class FunctionLib
java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.functions.FunctionLib
Function library of functions available in stoex in simucom
-
Constructor Summary
ConstructorDescriptionFunctionLib
(de.uka.ipd.sdq.probfunction.math.IRandomGenerator randomStream, de.uka.ipd.sdq.probfunction.math.IPDFFactory factory) Initialise the function library. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(String id, IFunction f) Add a function to this function library.Evaluate the function with the given ID using the given parameters, e.g.de.uka.ipd.sdq.probfunction.math.IRandomGenerator
-
Constructor Details
-
FunctionLib
public FunctionLib(de.uka.ipd.sdq.probfunction.math.IRandomGenerator randomStream, de.uka.ipd.sdq.probfunction.math.IPDFFactory factory) Initialise the function library.
-
-
Method Details
-
addFunction
Add a function to this function library. The passed function should use the instance of SimuComDefaultRandomNumberGenerator returned bygetRandomStream()
.- Parameters:
id
- Name of the function to add. It is the ID in the stoexf
- The function object used during evaluation
-
getRandomStream
public de.uka.ipd.sdq.probfunction.math.IRandomGenerator getRandomStream() -
evaluate
Evaluate the function with the given ID using the given parameters, e.g. f(10,29)- Parameters:
functionID
- ID of the function to evaluateparameterValues
- Parameter set to use in evaluation- Returns:
- Value of the function evaluated using the given parameters
-