Skip to content
Snippets Groups Projects
Commit efc28a41 authored by Jürgen Walter's avatar Jürgen Walter
Browse files

add connection + provided and required roles if component calls itself

parent 2b11fdc6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
// }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment