TransformerUseCase.kt 875 B
package unibz.cs.semint.kprime.usecase
import unibz.cs.semint.kprime.domain.Applicability
import unibz.cs.semint.kprime.domain.Transformation
import unibz.cs.semint.kprime.domain.TransformationStrategy
import unibz.cs.semint.kprime.domain.ddl.Database
import unibz.cs.semint.kprime.domain.dml.ChangeSet
interface TransformerUseCase {
fun decompose(db: Database, params:Map<String,Any>): Transformation
fun compose(db: Database, params:Map<String,Any>): Transformation
fun decomposeApplicable(db: Database, transformationStrategy : TransformationStrategy, params:Map<String,Any> ): Applicability
fun composeApplicable(db: Database, transformationStrategy : TransformationStrategy, params:Map<String,Any>): Applicability
fun errorTransformation(db: Database, message: String): Transformation {
return Transformation(ChangeSet(),db,message)
}
}