Class LogicSchema
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.LogicSchema
This class implements the representation of a logic schema.
A logic schema bounds several predicates and constraints together guaranteeing their consistency.
A logic schema bounds several predicates and constraints together guaranteeing their consistency.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(LogicSchemaVisitor<T> visitor) A LevelHierarchy is a partition of the predicates of a schema into several levels, where level 0 contains the base predicates, and each derived predicate from level i is defined through predicates from levelsj < i
.getDerivationRulesByPredicateName
(String derivedPredicateName) getLogicConstraintByID
(ConstraintID constraintID) getPredicateByName
(String predicateName) boolean
isEmpty()
boolean
isSafe()
-
Constructor Details
-
LogicSchema
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
getPredicateByName
-
getLogicConstraintByID
-
getDerivationRulesByPredicateName
-
getAllPredicates
-
getAllNormalClauses
-
getAllLogicConstraints
-
getAllDerivationRules
-
getAllDerivedPredicates
-
computeLevelHierarchy
A LevelHierarchy is a partition of the predicates of a schema into several levels, where level 0 contains the base predicates, and each derived predicate from level i is defined through predicates from levelsj < i
.- Returns:
- a LevelHierarchy for this schema
-
isSafe
public boolean isSafe() -
accept
-