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

Add missing class AbstractTraceToGraphTransformer

parent 1bd122eb
No related branches found
No related tags found
1 merge request!17Get impletemented stages and Java 8
package kieker.analysis.trace.traversal;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.impls.tg.TinkerGraph;
import kieker.analysis.traceanalysisdomain.AbstractOperationCall;
public abstract class AbstractTraceToGraphTransformer<C extends AbstractOperationCall<C>> extends OperationCallVisitor<C> {
protected final Graph graph;
public AbstractTraceToGraphTransformer() {
super();
this.graph = new TinkerGraph();
}
public Graph getGraph() {
return graph;
}
@Override
public void visit(final C operationCall) {
addVertex(operationCall);
if (operationCall.getParent() != null) {
addEdge(operationCall, operationCall.getParent());
}
}
protected abstract Vertex addVertex(C operationCall);
protected abstract Edge addEdge(C operationCall, C parentOperationCall);
}
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