blob: f6a9bfe40b813df5966580cacf6c036d06926733 [file] [log] [blame]
/**
* Copyright (c) 2020-2021 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*/
package org.eclipse.app4mc.slg.ros2.transformers
import com.google.inject.Inject
import com.google.inject.Singleton
import org.eclipse.app4mc.amalthea.model.InterProcessTrigger
import org.eclipse.app4mc.slg.commons.m2t.transformers.SynteticTransformer
import org.eclipse.app4mc.slg.ros2.generators.RosInterProcessTriggerUtilsTranslationUnit
import org.eclipse.app4mc.transformation.util.OutputBuffer
@Singleton
class RosInterProcessTriggerUtilsTransformer extends SynteticTransformer<RosInterProcessTriggerUtilsTranslationUnit> {
@Inject OutputBuffer outputBuffer
def RosInterProcessTriggerUtilsTranslationUnit generate(InterProcessTrigger ip) {
return generateIntern(ip) // hash according to class not instance
}
def create new RosInterProcessTriggerUtilsTranslationUnit(outputBuffer, ip)
generateIntern(InterProcessTrigger ip) {
}
override getCache() {
return this._createCache_generateIntern
}
}