Package jason.functions
Class ceil
java.lang.Object
jason.asSemantics.DefaultArithFunction
jason.functions.ceil
- All Implemented Interfaces:
ArithFunction,Serializable
Function: math.ceil(N): encapsulates java Math.ceil(N),
returns the smallest double value that is not less than the argument and is
equal to a mathematical integer.
Examples:
-
math.ceil(3.1): returns 4. -
math.ceil(3.9): returns 4.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckArity(int a) returns true if a is a good number of arguments for the functiondoubleevaluate(TransitionSystem ts, Term[] args) evaluates/computes the function based on the argsgetName()returns the name of the functionMethods inherited from class jason.asSemantics.DefaultArithFunction
allowUngroundTerms, toString
-
Constructor Details
-
ceil
public ceil()
-
-
Method Details
-
getName
Description copied from interface:ArithFunctionreturns the name of the function- Specified by:
getNamein interfaceArithFunction- Overrides:
getNamein classDefaultArithFunction
-
evaluate
Description copied from interface:ArithFunctionevaluates/computes the function based on the args- Specified by:
evaluatein interfaceArithFunction- Overrides:
evaluatein classDefaultArithFunction- Throws:
Exception
-
checkArity
public boolean checkArity(int a) Description copied from interface:ArithFunctionreturns true if a is a good number of arguments for the function- Specified by:
checkArityin interfaceArithFunction- Overrides:
checkArityin classDefaultArithFunction
-