Skip to content
Snippets Groups Projects
TransformationStrategyYesAdapter.kt 459 B
package unibz.cs.semint.kprime.adapter.strategy

import unibz.cs.semint.kprime.domain.TransformationStrategy
import unibz.cs.semint.kprime.usecase.TransformerUseCase

class TransformationStrategyYesAdapter : TransformationStrategy {
    override fun choose(transformersApplicable: List<TransformerUseCase>): List<TransformerUseCase> {
        if (transformersApplicable.size==0) return emptyList()
        return listOf(transformersApplicable.first())
    }
}