Class PredicateCleaner
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.processes.LogicSchemaTransformationProcess
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.processes.PredicateCleaner
- All Implemented Interfaces:
LogicProcess
,SchemaTransformationProcess
Service that removes all those predicates (base or derived) that are not used in any LogicConstraint (neither
directly, neither transitively)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclean
(LogicSchema logicSchema) executeTransformation
(LogicSchema logicSchema) Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.processes.LogicSchemaTransformationProcess
checkLogicSchema, execute
-
Constructor Details
-
PredicateCleaner
public PredicateCleaner()
-
-
Method Details
-
executeTransformation
- Parameters:
logicSchema
- not null- Returns:
- a transformation where the resulting logicSchema does not have any unused predicate
-
clean
- Parameters:
logicSchema
- not null- Returns:
- a copy of the logic schema where the unused predicates have been removed
-