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

add second constructor for easier usage

parent fd7689e8
No related branches found
No related tags found
2 merge requests!17Get impletemented stages and Java 8,!16Trace aggr analysis graph migration
......@@ -13,7 +13,6 @@ import kieker.analysis.domain.OperationCall;
import kieker.analysis.domain.Trace;
import kieker.analysis.graph.Graph;
import kieker.analysis.graph.export.graphml.GraphMLFileWriterComposite;
import kieker.analysis.graph.mapping.SimpleFileNameMapper;
import kieker.analysis.stage.tracediagnosis.AllowedRecordsFilter;
import kieker.analysis.stage.tracediagnosis.BeginEndOfMonitoringDetector;
import kieker.analysis.stage.tracediagnosis.OperationCallHandlerComposite;
......@@ -77,7 +76,7 @@ public class TraceAnalysisConfiguration extends Configuration {
TraceTraverserStage traceTraverserStage = new TraceTraverserStage();
final Distributor<Graph> graphDistributor = new Distributor<>(new CopyByReferenceStrategy());
// TODO create mapping object
GraphMLFileWriterComposite graphMLFileWriterComposite = new GraphMLFileWriterComposite(new SimpleFileNameMapper(graphFilesOutputDir, "xml"));
GraphMLFileWriterComposite graphMLFileWriterComposite = new GraphMLFileWriterComposite(graphFilesOutputDir);
DotGraphWriter dotGraphWriter = new DotGraphWriter(graphFilesOutputDir);
super.connectPorts(distributor.getNewOutputPort(), traceTraverserStage.getInputPort());
......@@ -89,7 +88,7 @@ public class TraceAnalysisConfiguration extends Configuration {
AggrTraceTraverserStage aggrTraceTraverser = new AggrTraceTraverserStage();
final Distributor<Graph> graphDistributor2 = new Distributor<>(new CopyByReferenceStrategy());
// TODO create mapping object
GraphMLFileWriterComposite graphMLFileWriterComposite2 = new GraphMLFileWriterComposite(new SimpleFileNameMapper(graphFilesOutputDir, "xml"));
GraphMLFileWriterComposite graphMLFileWriterComposite2 = new GraphMLFileWriterComposite(graphFilesOutputDir);
// DotGraphWriter dotGraphWriter2 = new DotGraphWriter(graphFilesOutputDir);
super.connectPorts(aggregation.getOutputPort(), aggregatedTraceDistributor.getInputPort());
......
......@@ -6,6 +6,7 @@ import java.io.OutputStream;
import kieker.analysis.graph.Graph;
import kieker.analysis.graph.mapping.GraphMapper;
import kieker.analysis.graph.mapping.SimpleFileNameMapper;
public class GraphMLFileWriterComposite extends GraphMLWriterComposite {
......@@ -22,4 +23,8 @@ public class GraphMLFileWriterComposite extends GraphMLWriterComposite {
});
}
public GraphMLFileWriterComposite(final String outputDirectory) {
this(new SimpleFileNameMapper(outputDirectory, "graphml"));
}
}
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