Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oceandsl-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oceandsl
oceandsl-tools
Commits
c935a8bf
Commit
c935a8bf
authored
1 year ago
by
Reiner Jung
Browse files
Options
Downloads
Patches
Plain Diff
Removed rubbish.
parent
fdbd226b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!88
Documentation updated
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/mop/src/main/java/org/oceandsl/tools/mop/merge/ExecutionModelMerger.java
+0
-76
0 additions, 76 deletions
...va/org/oceandsl/tools/mop/merge/ExecutionModelMerger.java
with
0 additions
and
76 deletions
tools/mop/src/main/java/org/oceandsl/tools/mop/merge/ExecutionModelMerger.java
+
0
−
76
View file @
c935a8bf
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment