Class LogicConstraint
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.NormalClause
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.LogicConstraint
Implementation of a logic constraint. That is, a NormalClause without head.
E.g. " :- Emp(x), not(Adult(x))"
A LogicConstraint is a weak entity w.r.t. a logic schema, that is:
- There are no 2 LogicConstraints with the same ConstraintID in the same schema
- A LogicConstraint cannot appear in two schemas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(LogicSchemaVisitor<T> visitor) getID()
boolean
isSafe()
toString()
Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.NormalClause
getBody
-
Constructor Details
-
LogicConstraint
-
-
Method Details
-
getID
-
toString
-
accept
-
isSafe
public boolean isSafe()- Specified by:
isSafe
in classNormalClause
-