Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pmx
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
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Descartes Research
pmx
Commits
e7a00f77
Commit
e7a00f77
authored
6 years ago
by
Jürgen Walter
Browse files
Options
Downloads
Patches
Plain Diff
name fixes II
parent
1122c746
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
tools.descartes.pmx/src/tools/descartes/pmx/filter/PerformanceModelFilter.java
+5
-4
5 additions, 4 deletions
...rc/tools/descartes/pmx/filter/PerformanceModelFilter.java
with
5 additions
and
4 deletions
tools.descartes.pmx/src/tools/descartes/pmx/filter/PerformanceModelFilter.java
+
5
−
4
View file @
e7a00f77
...
...
@@ -242,7 +242,7 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
.
getVertices
())
{
AssemblyComponent
component
=
node
.
getEntity
()
.
getAllocationComponent
().
getAssemblyComponent
();
String
componentName
=
ModelBuilder
.
apply
Component
NameFix
(
component
.
getType
().
getTypeName
());
String
componentName
=
ModelBuilder
.
applyNameFix
es
(
component
.
getType
().
getTypeName
());
String
hostName
=
node
.
getEntity
().
getAllocationComponent
()
.
getExecutionContainer
().
getName
();
// Teerat Pitakrat: TODO add allocation information to assembly
...
...
@@ -268,7 +268,7 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
for
(
WeightedBidirectionalDependencyGraphEdge
<
AllocationComponentOperationPair
>
outgoingEdge
:
node
.
getOutgoingEdges
())
{
help
Meht
od
(
builder
,
componentName
,
hostName
,
numIncomingCalls
,
help
erMeth
od
(
builder
,
componentName
,
hostName
,
numIncomingCalls
,
externalCalls
,
outgoingEdge
);
}
...
...
@@ -281,6 +281,7 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
log
.
info
(
"\t\tresource demand has been set to 0.0"
);
meanResourceDemand
=
0.0
;
}
log
.
info
(
"Try to create behavior description for"
+
componentName
+
method
.
getSignature
().
getName
());
builder
.
addSEFF
(
componentName
,
method
.
getSignature
().
getName
(),
externalCalls
,
hostName
,
meanResourceDemand
);
}
...
...
@@ -315,7 +316,7 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
}
private
static
void
help
Meht
od
(
private
static
void
help
erMeth
od
(
IModelBuilder
builder
,
String
componentName
,
String
hostName
,
...
...
@@ -324,7 +325,7 @@ public class PerformanceModelFilter extends AbstractFilterPlugin{ //extends Abs
WeightedBidirectionalDependencyGraphEdge
<
AllocationComponentOperationPair
>
outgoingEdge
)
{
AllocationComponentOperationPair
targetNode
=
outgoingEdge
.
getTarget
()
.
getEntity
();
String
targetComponentName
=
ModelBuilder
.
apply
Component
NameFix
(
targetNode
.
getAllocationComponent
()
String
targetComponentName
=
ModelBuilder
.
applyNameFix
es
(
targetNode
.
getAllocationComponent
()
.
getAssemblyComponent
().
getType
().
getTypeName
());
String
calledMethodName
=
targetNode
.
getOperation
().
getSignature
()
.
getName
();
...
...
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