Package openllet.core.rules.builtins
Class NumericAdapter
- java.lang.Object
-
- openllet.core.rules.builtins.NumericAdapter
-
-
Constructor Summary
Constructors Constructor Description NumericAdapter(NumericFunction function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Literalapply(ABox abox, Literal expected, Literal... args)Apply the function against a set of arguments.
-
-
-
Constructor Detail
-
NumericAdapter
public NumericAdapter(NumericFunction function)
-
-
Method Detail
-
apply
public Literal apply(ABox abox, Literal expected, Literal... args)
Description copied from interface:FunctionApply the function against a set of arguments. Test the _expected argument against the result. Return null if the arguments were invalid. If '_expected' was not null and matched the result, return '_expected'. If '_expected' was not null and did not match, return null; Otherwise, return the result.
-
-