Class DerivedPredicateMother
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.mothers.DerivedPredicateMother
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate
createDerivedPredicate
(String predicateName, String schemaString) static edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate
createOArityDerivedPredicate
(String predicateName, edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate predicateP) static edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.MutablePredicate
createTrivialDerivedPredicate
(String derivedPredicateName, int arity, List<edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate> predicatesList) Create a derived predicate with as many definition rules as predicates given by parameter.
-
Constructor Details
-
DerivedPredicateMother
public DerivedPredicateMother()
-
-
Method Details
-
createTrivialDerivedPredicate
public static edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.MutablePredicate createTrivialDerivedPredicate(String derivedPredicateName, int arity, List<edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate> predicatesList) Create a derived predicate with as many definition rules as predicates given by parameter. Each definition rule is composed of only one predicate- Parameters:
derivedPredicateName
- must be non-nullarity
- must be non-negativepredicatesList
- must be non-null, and non-empty- Returns:
- a derived predicate
-
createOArityDerivedPredicate
public static edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate createOArityDerivedPredicate(String predicateName, edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Predicate predicateP) -
createDerivedPredicate
-