|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBuiltinAtom
Defines a Builtin.
$Id: IBuiltInAtom.java,v 1.11 2007-10-19 13:27:39 bazbishop237 Exp $
| Method Summary | |
|---|---|
ITuple |
evaluate(ITuple t)
Runs the evaluation. |
int |
maxUnknownVariables()
The maximum number of unknown variables allowed such that the predicate can still be evaluated. |
| Methods inherited from interface org.deri.iris.api.basics.IAtom |
|---|
getPredicate, getTuple, isBuiltin, isGround |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
ITuple evaluate(ITuple t)
throws EvaluationException
Runs the evaluation.
This method takes as input a tuple for which it should run the evaluation. The tuple must contain the substitutes for the variables of this built-in at the corresponding position. Substitutes where this built-in already has a constant might be ignored.
The returned tuple contains the calculated substitutions for the
remaining variables (after replacing the variables with the passed in
constants) in the built-in in the order their variables
appear in the built-in. If there are no variables left to calculate
the built-in will check the correctness of the terms and return a
tuple containing all constants if it is correct, otherwise
null.
For example if you evaluate
4 + X = 9 you would get back <5>.
The only difference are the binary built-ins: For a binary built-in
if you try to evaluate 3 < 4 you will get back
<3, 4>, but if you try to evaluate 3 < 2
you will get back null.
t - the substitutes for the variables of the builtin
null if the built-in
isn't evaluable
EvaluationException
IllegalArgumentException - if the built-in couldn't be evaluated
NullPointerException - if the collection was nullint maxUnknownVariables()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||