java.lang.Object
de.uka.ipd.sdq.simucomframework.variables.functions.SqrtFunction
All Implemented Interfaces:
IFunction

public class SqrtFunction extends Object implements IFunction
  • Field Details

    • SQRT_FUNCTION_NAME

      public static final String SQRT_FUNCTION_NAME
      Name used in the stochastic expression for this function.
      See Also:
  • Constructor Details

    • SqrtFunction

      public SqrtFunction()
  • Method Details

    • 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 interface IFunction
      Parameters:
      parameters - A set of parameters to be processed
      Returns:
      true if the parameters fit to the functions preconditions, false otherwise
    • evaluate

      public Object evaluate(List<Object> parameters)
      Description copied from interface: IFunction
      Evaluate the functions result using the parameters given
      Specified by:
      evaluate in interface IFunction
      Parameters:
      parameters - Parameters for the function
      Returns:
      Value of the function