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

fixed bug

parent 00a4e4d1
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
...@@ -4,6 +4,7 @@ import java.io.IOException; ...@@ -4,6 +4,7 @@ import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Set;
import kieker.analysis.util.graph.Direction; import kieker.analysis.util.graph.Direction;
import kieker.analysis.util.graph.Edge; import kieker.analysis.util.graph.Edge;
...@@ -13,8 +14,6 @@ import kieker.analysis.util.graph.Vertex; ...@@ -13,8 +14,6 @@ import kieker.analysis.util.graph.Vertex;
import kieker.analysis.util.graph.export.AbstractTransformer; import kieker.analysis.util.graph.export.AbstractTransformer;
import kieker.analysis.util.graph.util.dot.DotGraphWriter; import kieker.analysis.util.graph.util.dot.DotGraphWriter;
import java.util.Set;
class DotElementExporter extends AbstractTransformer<Void> { class DotElementExporter extends AbstractTransformer<Void> {
protected final DotGraphWriter dotGraphWriter; protected final DotGraphWriter dotGraphWriter;
...@@ -37,7 +36,6 @@ class DotElementExporter extends AbstractTransformer<Void> { ...@@ -37,7 +36,6 @@ class DotElementExporter extends AbstractTransformer<Void> {
for (Entry<String, String> attribute : attributes.entrySet()) { for (Entry<String, String> attribute : attributes.entrySet()) {
dotGraphWriter.addGraphAttribute(attribute.getKey(), attribute.getValue()); dotGraphWriter.addGraphAttribute(attribute.getKey(), attribute.getValue());
} }
transformDefaultElementProperties(childGraph); transformDefaultElementProperties(childGraph);
DotElementExporter childGraphWriter = new DotElementExporter(childGraph, dotGraphWriter); DotElementExporter childGraphWriter = new DotElementExporter(childGraph, dotGraphWriter);
......
...@@ -2,6 +2,7 @@ package kieker.analysis.util.graph.export.dot; ...@@ -2,6 +2,7 @@ package kieker.analysis.util.graph.export.dot;
import java.io.IOException; import java.io.IOException;
import java.io.Writer; import java.io.Writer;
import java.util.Map.Entry;
import kieker.analysis.util.graph.Graph; import kieker.analysis.util.graph.Graph;
import kieker.analysis.util.graph.util.dot.DotGraphWriter; import kieker.analysis.util.graph.util.dot.DotGraphWriter;
...@@ -16,8 +17,8 @@ public class DotExporter extends DotElementExporter { ...@@ -16,8 +17,8 @@ public class DotExporter extends DotElementExporter {
protected void beforeTransformation() { protected void beforeTransformation() {
try { try {
dotGraphWriter.start(graph.getName()); dotGraphWriter.start(graph.getName());
for (String attributeKey : graph.getPropertyKeys()) { for (Entry<String, String> attribute : transformProperties(graph).entrySet()) {
dotGraphWriter.addGraphAttribute(attributeKey, graph.getProperty(attributeKey)); dotGraphWriter.addGraphAttribute(attribute.getKey(), attribute.getValue());
} }
transformDefaultElementProperties(graph); transformDefaultElementProperties(graph);
} catch (IOException e) { } catch (IOException e) {
......
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