Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
TeeTime
Kieker-TeeTime-Stages
Commits
5330dd17
Commit
5330dd17
authored
8 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
some attempts to use the model
parent
903eaa64
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/kieker/analysis/softwaresystem/SoftwareSystemCreatorVisitor.java
+44
-0
44 additions, 0 deletions
...analysis/softwaresystem/SoftwareSystemCreatorVisitor.java
with
44 additions
and
0 deletions
src/main/java/kieker/analysis/softwaresystem/SoftwareSystemCreatorVisitor.java
0 → 100644
+
44
−
0
View file @
5330dd17
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
);
}
}
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