Class LogicSchemaFactory<T extends LogicConstraintSpec>
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.creation.LogicSchemaFactory<T>
- Type Parameters:
T
- kind of LogicConstraintSpec this class works with
Class responsible for creating a logic schema for a given logic schema specification. The factory will ensure that there is a Predicate for each predicate name used in the specification. That is, if a logic constraint or derivation rule specification uses a predicate name "P", which has not been specified as a predicate, the factory will automatically create such predicate P.
The factory must work with either LogicConstraintSpecWithIDs, or LogicConstraintSpecWithoutIDs, but not both at the same time.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLogicSchema
(LogicSchemaSpec<T> logicSchemaSpec) createLogicSchema
(LogicSchemaSpec<T> logicSchemaSpec, Set<Predicate> relationalSchema)
-
Constructor Details
-
LogicSchemaFactory
-
-
Method Details
-
defaultLogicSchemaWithIDsFactory
-
defaultLogicSchemaWithoutIDsFactory
public static LogicSchemaFactory<LogicConstraintWithoutIDSpec> defaultLogicSchemaWithoutIDsFactory() -
createLogicSchema
-
createLogicSchema
public LogicSchema createLogicSchema(LogicSchemaSpec<T> logicSchemaSpec, Set<Predicate> relationalSchema)
-