Skip to content
Snippets Groups Projects
Commit c935a8bf authored by Reiner Jung's avatar Reiner Jung
Browse files

Removed rubbish.

parent fdbd226b
No related branches found
No related tags found
1 merge request!88Documentation updated
......@@ -19,7 +19,6 @@ import java.util.Map.Entry;
import org.eclipse.emf.common.util.EMap;
import kieker.model.analysismodel.deployment.DeployedComponent;
import kieker.model.analysismodel.deployment.DeployedOperation;
import kieker.model.analysismodel.deployment.DeployedStorage;
import kieker.model.analysismodel.deployment.DeploymentModel;
......@@ -67,81 +66,6 @@ public final class ExecutionModelMerger {
}
}
private static void checkWhereResourceAreFrom(final DeploymentModel dm, final ExecutionModel em,
final String string) {
System.err.println("++++++ " + string);
em.getInvocations().forEach(entry -> {
checkPerOp(dm, entry.getKey().getFirst());
checkPerOp(dm, entry.getKey().getSecond());
checkPerOp(dm, entry.getValue().getCaller());
checkPerOp(dm, entry.getValue().getCallee());
});
}
private static void checkPerOp(final DeploymentModel dm, final DeployedOperation op) {
dm.getContexts().values().forEach(context -> {
context.getComponents().values().forEach(component -> {
final DeployedOperation dop = component.getOperations()
.get(op.getAssemblyOperation().getOperationType().getSignature());
if (dop != null) {
if (dop != op) {
System.err.println("OP " + op.eResource());
System.err.println("DOP " + dop.eResource());
} else {
// System.err.println("context " +
// op.eContainer().eContainer().eContainer().eContainer());
}
}
});
});
}
private static void checkDeployment(final DeploymentModel deploymentModel, final String string) {
System.err.println("###### " + string);
deploymentModel.getContexts().forEach(entry -> {
System.err.println(" context " + entry.getKey());
entry.getValue().getComponents().forEach(cEntry -> {
final DeployedComponent component = cEntry.getValue();
if (component.getContext() == null) {
System.err.printf(" component %s has no context\n", component.getSignature());
}
});
});
}
private static void checkExecution(final ExecutionModel em, final String name) {
System.err.println("!!!!! " + name);
em.getInvocations().entrySet().forEach(m -> {
final Tuple<DeployedOperation, DeployedOperation> key = m.getKey();
final Invocation value = m.getValue();
check(key.getFirst(), "first");
check(key.getSecond(), "second");
check(value.getCaller(), "caller");
check(value.getCallee(), "callee");
});
}
private static void check(final DeployedOperation op, final String string) {
final DeployedComponent dc = (DeployedComponent) op.eContainer().eContainer();
if (dc == null) {
System.err.println(
">> container " + op.getAssemblyOperation().getOperationType().getSignature() + " " + string);
return;
}
if (op.getComponent() == null) {
System.err.println(
">> component " + op.getAssemblyOperation().getOperationType().getSignature() + " " + string);
return;
}
if (dc.getAssemblyComponent().getComponentType() == null) {
System.err.println("shite " + string);
return;
}
// System.err.println("op " + op.getAssemblyOperation().getOperationType().getSignature());
}
private static boolean compareTupleOperationKeys(
final EMap<Tuple<DeployedOperation, DeployedOperation>, Invocation> invocations,
final Tuple<DeployedOperation, DeployedOperation> searchKey) {
......
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