|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.basics.Rule
public class Rule
Represents a datalog rule.
$Id$
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
List<ILiteral> |
getBody()
Get the rule body. |
List<ILiteral> |
getHead()
Get the rule head- |
int |
hashCode()
|
boolean |
isRectified()
A rule is rectified if its head has the same form as heads of the other rules from the program, e.g. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public List<ILiteral> getHead()
IRule
getHead in interface IRulepublic List<ILiteral> getBody()
IRule
getBody in interface IRulepublic boolean isRectified()
IRuleA rule is rectified if its head has the same form as heads of the other rules from the program, e.g. p(X1,...,Xk) for variables X1,...,Xk.
For a given pair of rules:
after the rectification we get the following rules:
where both rules have heads of the same form.
isRectified in interface IRulepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||