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
fe9100f3
Commit
fe9100f3
authored
9 years ago
by
Ludovic Apvrille
Browse files
Options
Downloads
Patches
Plain Diff
Update on TMLCP code generation
parent
1e610e69
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tmltranslator/TMLCPTextSpecification.java
+8
-41
8 additions, 41 deletions
src/tmltranslator/TMLCPTextSpecification.java
src/ui/ConfigurationTTool.java
+508
-508
508 additions, 508 deletions
src/ui/ConfigurationTTool.java
with
516 additions
and
549 deletions
src/tmltranslator/TMLCPTextSpecification.java
+
8
−
41
View file @
fe9100f3
...
...
@@ -387,7 +387,7 @@ public class TMLCPTextSpecification {
sb
.
append
(
parseElement2
(
currentElement
,
met
));
return
sb
.
toString
()
+
TAB
+
"><"
;
return
sb
.
toString
()
+
CR
+
TAB
+
"><"
;
}
private
String
parseElement2
(
TMLCPElement
currentElement
,
ArrayList
<
TMLCPElement
>
met
)
{
...
...
@@ -407,8 +407,8 @@ public class TMLCPTextSpecification {
met
.
add
(
currentElement
);
if
(
currentElement
instanceof
TMLCPStop
)
{
return
""
;
//
return( TAB + "><" );
//
return "";
return
(
TAB
+
"><"
);
}
if
(
currentElement
instanceof
TMLCPFork
)
{
...
...
@@ -426,46 +426,10 @@ public class TMLCPTextSpecification {
String
ret
=
parseSequence
(
currentElement
);
ret
+=
SEQUENCE_OP
;
//
ret += SEQUENCE_OP;
ret
+=
parseElement2
(
currentElement
.
getNextElements
().
get
(
0
),
met
);
return
ret
;
/*ArrayList<TMLCPElement> nextElements;
while( (!(currentElement instanceof TMLCPStop)) && (currentElement != null)) {
nextElements = currentElement.getNextElements();
if (currentElement instanceof TMLCPFork) {
sbFork = new StringBuffer();
currentElement = parseFork2( nextElements ); // currentElement is the closing join, use attribute sbFork
sb.append( sbFork.toString() );
sbFork.setLength(0);
} else if (currentElement instanceof ) {
}else if( nextElements.size() > 1 ) { // currentElement is a fork node
sbFork = new StringBuffer();
sb.append(currentElement = parseFork( nextElements ); // currentElement is the closing join, use attribute sbFork
sb.append( sbFork.toString() );
sbFork.setLength(0);
}
else { // currentElement is either a refToDiag or a junction
if( isAJunction( currentElement ) ) {
String s = ( (TMLCPRefAD) currentElement ).getName();
sb.append( s + ";" + CR );
}
else {
sb.append( parseSequence( currentElement ) );
}
}
currentElement = currentElement.getNextElements().get(0);
}*/
}
private
String
parseChoice2
(
TMLCPChoice
choice
,
ArrayList
<
TMLCPElement
>
met
)
{
...
...
@@ -476,7 +440,7 @@ public class TMLCPTextSpecification {
int
index
=
0
;
for
(
TMLCPElement
element:
branches
)
{
sb
.
append
(
CR
+
TAB2
+
guards
.
get
(
index
)
+
SP
);
sb
.
append
(
CR
+
TAB2
+
guards
.
get
(
index
)
+
SP
);
sb
.
append
(
parseElement2
(
element
,
met
));
index
++;
}
...
...
@@ -531,6 +495,9 @@ public class TMLCPTextSpecification {
return
sb
.
toString
();
}
private
String
makeSingleActivityDiagram
(
TMLCPActivityDiagram
ad
)
{
StringBuffer
sb
=
new
StringBuffer
(
TAB
+
CR
+
TAB
+
"<>; "
);
...
...
This diff is collapsed.
Click to expand it.
src/ui/ConfigurationTTool.java
+
508
−
508
View file @
fe9100f3
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