Skip to content
Snippets Groups Projects
Commit 64ff4f47 authored by Sören Henning's avatar Sören Henning
Browse files

worked on Dependendency Graph Creation

parent 7319e7fc
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,10 @@ public interface SoftwareSystemVisitor {
public void visitOperation(final Operation operation);
public void visitContainerDependency(final Dependency<Container> containerDependency);
public void visitContainerDependency(final Dependency<Container> dependency);
public void visitComponentDependency(final Dependency<Component> componentDependency);
public void visitComponentDependency(final Dependency<Component> dependency);
public void visitOperationDependency(final Dependency<Operation> operationDependency);
public void visitOperationDependency(final Dependency<Operation> dependency);
}
package kieker.analysis.dev.dependencygraphs;
import kieker.analysis.dev.SoftwareSystemTraverser;
import kieker.analysis.domain.systemdependency.SoftwareSystem;
import kieker.analysis.util.graph.Graph;
//TODO rename
public class DependencyGraphCreator2 {
private boolean createContainers;
private boolean createComponents;
private boolean createOperations;
private boolean createContainerDependencies;
private boolean createComponentDependencies;
private boolean createOperationDependencies;
private String containerTypeName;
private String componenetTypeName;
private String OperationTypeName;
private String graphName;
private final SoftwareSystemTraverser traverser = new SoftwareSystemTraverser();
public Graph create(final SoftwareSystem softwareSystem) {
// TODO Params
DependencyGraphCreatorVisitor visitor = new DependencyGraphCreatorVisitor(null, null, null, null, null, true, true);
traverser.traverse(softwareSystem, visitor);
return visitor.getGraph();
}
}
......@@ -167,6 +167,10 @@ public class DependencyGraphCreatorVisitor implements SoftwareSystemVisitor {
setEdge(callerVertex, calleeVertex, dependency);
}
public Graph getGraph() {
return this.graph;
}
private void setVertexAttributes(final Vertex vertex, final SystemEntity entity) {
vertex.setProperty("Name", entity.getName());
vertex.setProperty("DurationTimeUnit", this.timeUnit.toString());
......
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