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 ...@@ -320,10 +320,10 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
String targetHostName = targetNode.getAllocationComponent() String targetHostName = targetNode.getAllocationComponent()
.getExecutionContainer().getName(); .getExecutionContainer().getName();
if(targetComponentName != componentName){ // if(targetComponentName != componentName){
builder.addProvidedRole(targetComponentName, "I" + targetComponentName); builder.addProvidedRole(targetComponentName, "I" + targetComponentName);
builder.addRequiredRole(componentName, "I" + targetComponentName); builder.addRequiredRole(componentName, "I" + targetComponentName);
} // }
int numOutgoinCalls = outgoingEdge.getTargetWeight().intValue(); // TODO int numOutgoinCalls = outgoingEdge.getTargetWeight().intValue(); // TODO
// think // think
// about // about
...@@ -345,9 +345,9 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs ...@@ -345,9 +345,9 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
builder.addComponentToAssembly(targetComponentName + ModelBuilder.seperatorChar builder.addComponentToAssembly(targetComponentName + ModelBuilder.seperatorChar
+ targetHostName, targetComponentName); + targetHostName, targetComponentName);
if(targetComponentName != componentName){ // if(targetComponentName != componentName){
builder.addConnectionToAssemblies(componentName + ModelBuilder.seperatorChar + hostName, builder.addConnectionToAssemblies(componentName + ModelBuilder.seperatorChar + hostName,
targetComponentName + ModelBuilder.seperatorChar + targetHostName); 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