Commit 410e17c8 authored by Sven Elflein's avatar Sven Elflein
Browse files

fixed issue with response time dependecy export

parent 4f6f563a
......@@ -84,9 +84,15 @@ public class DependencyExtractor {
curDep.addAll(binnedDependencies.get(searchEntry));
}
curDep.removeAll(searchSet);
// stop if no new values are added for the next search
if (dependingOnSet.containsAll(curDep))
break;
allResponseTimeDependencies.get(targetEntry).addAll(curDep);
searchSet = curDep;
}
// remove the target from depending on its own (happens if circle in dependency
// graph)
allResponseTimeDependencies.get(targetEntry).remove(targetEntry);
}
}
return allResponseTimeDependencies;
......@@ -122,7 +128,7 @@ public class DependencyExtractor {
this.dependencies.addAll(dependencies);
}
public static void writeDatastreamsToCSV(AbstractDataSource source, String folderPath) {
public void writeDatastreamsToCSV(AbstractDataSource source, String folderPath) {
Set<Subproblem> subproblems = getSubproblemsFromDatasource(source);
int subproblemNumber = 1;
for (Subproblem subproblem : subproblems) {
......@@ -241,13 +247,13 @@ public class DependencyExtractor {
return dependencies;
}
private static Set<Subproblem> getSubproblemsFromDatasource(AbstractDataSource source) {
private Set<Subproblem> getSubproblemsFromDatasource(AbstractDataSource source) {
TraceMultiEntityData data = (TraceMultiEntityData) new MultiEntityKiekerDatasourceLoader().load(source,
new TraceMultiEntityData());
return SubproblemGenerator.extractSubproblems(data);
}
private static Set<Subproblem> getSubproblemsFromMultipleDatasources(List<AbstractDataSource> sources) {
private Set<Subproblem> getSubproblemsFromMultipleDatasources(List<AbstractDataSource> sources) {
TraceMultiEntityData data = (TraceMultiEntityData) new MultiEntityKiekerDatasourceLoader().load(sources,
new TraceMultiEntityData());
return SubproblemGenerator.extractSubproblems(data);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment