From efc28a413f6830ada08fb0dc1da6a37772851734 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Walter?= <juergen.walter@uni-wuerzburg.de>
Date: Tue, 20 Dec 2016 13:00:00 +0100
Subject: [PATCH] add connection + provided and required roles if component
 calls itself

---
 .../descartes/pmx/filter/PerformanceModelFilter.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools.descartes.pmx/src/tools/descartes/pmx/filter/PerformanceModelFilter.java b/tools.descartes.pmx/src/tools/descartes/pmx/filter/PerformanceModelFilter.java
index cf356baf..c2c5c303 100644
--- a/tools.descartes.pmx/src/tools/descartes/pmx/filter/PerformanceModelFilter.java
+++ b/tools.descartes.pmx/src/tools/descartes/pmx/filter/PerformanceModelFilter.java
@@ -320,10 +320,10 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ 	//extends Abs
 		String targetHostName = targetNode.getAllocationComponent()
 				.getExecutionContainer().getName();
 
-		if(targetComponentName != componentName){
-			builder.addProvidedRole(targetComponentName, "I" + targetComponentName);
-			builder.addRequiredRole(componentName, "I" + targetComponentName);
-		}
+		// if(targetComponentName != componentName){
+		builder.addProvidedRole(targetComponentName, "I" + targetComponentName);
+		builder.addRequiredRole(componentName, "I" + targetComponentName);
+		// }
 		int numOutgoinCalls = outgoingEdge.getTargetWeight().intValue(); // TODO
 																			// think
 																			// about
@@ -345,9 +345,9 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ 	//extends Abs
 		builder.addComponentToAssembly(targetComponentName + ModelBuilder.seperatorChar
 				+ targetHostName, targetComponentName);
 
-		if(targetComponentName != componentName){
+		// if(targetComponentName != componentName){
 			builder.addConnectionToAssemblies(componentName + ModelBuilder.seperatorChar + hostName,
 				targetComponentName + ModelBuilder.seperatorChar + targetHostName);
-		}
+		// }
 	}
 }
-- 
GitLab