Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
mbe-tools
TTool
Commits
1823e831
Commit
1823e831
authored
11 months ago
by
Sophie Coudert
Browse files
Options
Downloads
Patches
Plain Diff
mini-bug
parent
7b701b1c
No related branches found
No related tags found
4 merge requests
!504
merge first stable version of Avatar-SysML V2
,
!503
merge the first stable version of the Avatar-SysML parser/generator
,
!501
Avatar sys ml 04 2024
,
!498
Avatar sys ml 04 2024 (first merge request, only for verification)
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/avatartranslator/tosysmlv2/Avatar2SysML.java
+4
-3
4 additions, 3 deletions
src/main/java/avatartranslator/tosysmlv2/Avatar2SysML.java
with
4 additions
and
3 deletions
src/main/java/avatartranslator/tosysmlv2/Avatar2SysML.java
+
4
−
3
View file @
1823e831
...
@@ -338,8 +338,8 @@ public class Avatar2SysML {
...
@@ -338,8 +338,8 @@ public class Avatar2SysML {
// Message declaration .........................
// Message declaration .........................
StringBuffer
msg1Buf
=
new
StringBuffer
(
indent
+
"// Message of signal "
+
blk1SysMLname
+
"."
+
sig1SYSMLname
+
"
----------
\n"
);
StringBuffer
msg1Buf
=
new
StringBuffer
(
indent
+
"
\n
// Message of signal "
+
blk1SysMLname
+
"."
+
sig1SYSMLname
+
"
............
\n"
);
StringBuffer
msg2Buf
=
new
StringBuffer
(
indent
+
"// Message of signal "
+
blk2SysMLname
+
sig2SYSMLname
+
"
----------
\n"
);
StringBuffer
msg2Buf
=
new
StringBuffer
(
indent
+
"
\n
// Message of signal "
+
blk2SysMLname
+
sig2SYSMLname
+
"
............
\n"
);
if
(
in2out
)
{
if
(
in2out
)
{
msg1Buf
.
append
(
indent
+
"part def "
+
message2SYSMLname
+
" :> '#DataMessage' {\n"
);
msg1Buf
.
append
(
indent
+
"part def "
+
message2SYSMLname
+
" :> '#DataMessage' {\n"
);
msg2Buf
.
append
(
indent
+
"part def "
+
message1SYSMLname
+
" :> "
+
message2SYSMLname
+
"{\n"
);
msg2Buf
.
append
(
indent
+
"part def "
+
message1SYSMLname
+
" :> "
+
message2SYSMLname
+
"{\n"
);
...
@@ -1101,8 +1101,9 @@ public class Avatar2SysML {
...
@@ -1101,8 +1101,9 @@ public class Avatar2SysML {
String
methodCall2SysML
(
AvatarTermFunction
m
)
{
String
methodCall2SysML
(
AvatarTermFunction
m
)
{
MethodInfo
methodInfo
=
methodMap
.
get
(
m
.
getMethod
());
MethodInfo
methodInfo
=
methodMap
.
get
(
m
.
getMethod
());
List
<
AvatarTerm
>
parameters
=
m
.
getArgs
().
getComponents
();
List
<
AvatarTerm
>
parameters
=
m
.
getArgs
().
getComponents
();
StringBuffer
result
=
new
StringBuffer
(
methodInfo
.
getName
()
+
"("
);
int
nbFields
=
methodInfo
.
getArity
();
int
nbFields
=
methodInfo
.
getArity
();
if
(
nbFields
==
0
)
return
(
methodInfo
.
getName
()
+
"()"
);
StringBuffer
result
=
new
StringBuffer
(
methodInfo
.
getName
()
+
"("
);
int
j
=
0
;
// index in method profile;
int
j
=
0
;
// index in method profile;
int
k
=
0
;
// index in method parameters;
int
k
=
0
;
// index in method parameters;
while
(
j
<
nbFields
)
{
while
(
j
<
nbFields
)
{
...
...
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