Class DerivationRule
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.NormalClause
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.DerivationRule
Implementation of a logic derivation rule. That is, a NormalClause with head
E.g. "P(x) :- R(x, y)"
-
Constructor Summary
ModifierConstructorDescriptionprotected
DerivationRule
(Atom head, List<Literal> body) DerivationRules should be created by their corresponding DerivedLiteral. -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(LogicSchemaVisitor<T> visitor) getHead()
boolean
isSafe()
toString()
Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.NormalClause
getBody
-
Constructor Details
-
DerivationRule
DerivationRules should be created by their corresponding DerivedLiteral.- Parameters:
head
- non-nullbody
- non-null and not empty
-
-
Method Details
-
getHead
-
getHeadTerms
-
getUniversalVariables
-
getExistentialVariables
-
isSafe
public boolean isSafe()- Specified by:
isSafe
in classNormalClause
-
toString
-
accept
-