unique names in variable read/write accesses

Signed-off-by: Sebastian Reiser <Sebastian.Reiser@de.bosch.com>
diff --git a/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/ChannelTransformer.xtend b/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/ChannelTransformer.xtend
index 489ed21..62f63b4 100644
--- a/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/ChannelTransformer.xtend
+++ b/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/ChannelTransformer.xtend
@@ -26,7 +26,7 @@
 	public def create inchronModelFactory.createDataFlowConnection createDataFlowConnection(Channel amltChannel){
 		it.communicationType = DataFlowCommunicationType.QUEUING
 		it.defaultElements = amltChannel.defaultElements
-		it.name = amltChannel.displayName
+		it.name = amltChannel.name
 		it.size = amltChannel.maxElements
 		//hook this DataFlowConnection into Inchron root model
 		getInchronRoot.connections.add(it);	
diff --git a/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelReceiveTransformer.xtend b/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelReceiveTransformer.xtend
index b69ced7..1e6155e 100644
--- a/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelReceiveTransformer.xtend
+++ b/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelReceiveTransformer.xtend
@@ -31,12 +31,15 @@
 	@Inject ChannelTransformer channelTransformer
 	@Inject TransmissionPolicyTransformer transmissionPolicyTransformer
 	
+	private static Integer enumerator = 0;
+	
 	def create inchronModelFactory.createVariableReadAccess createVariableReadAccess(ChannelReceive amltChannelReceive) {
 		it.connection = channelTransformer.createDataFlowConnection(amltChannelReceive.data)
 		it.dataMustBeNew = amltChannelReceive.dataMustBeNew
 		it.index = amltChannelReceive.elementIndex
 		it.isBuffered = true
-		it.label = "read access"
+		it.name = it.connection.name + "_" + enumerator
+		it.label = it.connection.name + "_" + enumerator
 		it.lowerBound = amltChannelReceive.lowerBound
 		it.number = amltChannelReceive.elements
 		
@@ -72,6 +75,8 @@
 		
 		//add read access to dataflow connection's receiver list 
 		it.connection.requesters.add(it)
+		
+		enumerator = enumerator + 1
 	}
 
 	
diff --git a/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelSendTransformer.xtend b/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelSendTransformer.xtend
index 4c0fd97..9303912 100644
--- a/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelSendTransformer.xtend
+++ b/eclipse-tools/model-transformation/examples/amlt2inchron/org.eclipse.app4mc.transform.to.inchron.m2m/src/templates/m2m/sw/runnableItem/ChannelSendTransformer.xtend
@@ -29,11 +29,14 @@
 	@Inject ChannelTransformer channelTransformer
 	@Inject TransmissionPolicyTransformer transmissionPolicyTransformer
 	
+	private static Integer enumerator = 0
+	
 	def create inchronModelFactory.createVariableWriteAccess createVariableWriteAccess(ChannelSend amltChannelSend) {
 		it.connection = channelTransformer.createDataFlowConnection(amltChannelSend.data)
 		it.isBuffered = true
-		it.label = "write access"
 		it.number = amltChannelSend.elements
+		it.name = it.connection.name + "_" + enumerator
+		it.label = it.connection.name + "_" + enumerator
 		
 		//set data access policy		
 		if (amltChannelSend.transmissionPolicy !== null){
@@ -52,5 +55,7 @@
 		} else {  
 			it.connection.provider = it
 		}
+		
+		enumerator = enumerator + 1
 	}
 }