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

some attempts to use the model

parent 903eaa64
No related branches found
No related tags found
No related merge requests found
package kieker.analysis.softwaresystem;
import java.util.List;
import kieker.analysis.domain.AggregatedOperationCall;
import kieker.analysis.model.analysismodel.softwaresystem.execution.AggregatedInvocation;
import kieker.analysis.model.analysismodel.softwaresystem.execution.ExecutionFactory;
import kieker.analysis.model.analysismodel.softwaresystem.execution.ExecutionRoot;
import kieker.analysis.trace.traversal.OperationCallVisitor;
/**
*
* @author Sören Henning
*
*/
public class SoftwareSystemCreatorVisitor extends OperationCallVisitor<AggregatedOperationCall> {
private final ExecutionRoot executionRoot;
private final ExecutionFactory executionFactory = ExecutionFactory.eINSTANCE;
public SoftwareSystemCreatorVisitor(final ExecutionRoot executionRoot) {
this.executionRoot = executionRoot;
}
@Override
public void visit(final AggregatedOperationCall call) {
// We need:
// - ExecutionRoot: To check if AggregatedInvocation exists
// - DeploymentRoot: To check if DeplContext, DeplComp and DeplOp exists
// - ArchitectureRoot: To check if CompType and OpType exists
// Everything that does exists should be used
// Everything that does not exists should be created and than used
// Moreover we need a reference to the statistics
List<AggregatedInvocation> invocations = executionRoot.getAggregatedInvocations();
AggregatedInvocation invocation = executionFactory.createAggregatedInvocation();
invocation.setSource(null);
invocation.setTarget(null);
}
}
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