Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
0582e0e7
Commit
0582e0e7
authored
Mar 19, 2019
by
Ludovic Apvrille
Browse files
Update on TTool with cli script foe debug
parent
f1831250
Changes
10
Hide whitespace changes
Inline
Side-by-side
modeling/DIPLODOCUS/SmartCardProtocol.xml
View file @
0582e0e7
...
...
@@ -8,16 +8,16 @@
<cdparam
x=
"535"
y=
"347"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"556"
y=
"3
21
"
id=
"169"
/>
<P2
x=
"5
3
4"
y=
"3
95
"
id=
"216"
/>
<P1
x=
"556"
y=
"3
47
"
id=
"169"
/>
<P2
x=
"54
7
"
y=
"3
82
"
id=
"216"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"3"
>
<cdparam
x=
"820"
y=
"398"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"1025"
y=
"47
1
"
id=
"63"
/>
<P2
x=
"761"
y=
"54
8
"
id=
"184"
/>
<P1
x=
"1025"
y=
"4
9
7"
id=
"63"
/>
<P2
x=
"761"
y=
"5
7
4"
id=
"184"
/>
<Point
x=
"887"
y=
"577"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR><SUBCOMPONENT
type=
"-1"
id=
"2"
>
...
...
@@ -34,15 +34,15 @@
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"710"
y=
"403"
id=
"186"
/>
<P2
x=
"693"
y=
"3
21
"
id=
"147"
/>
<P2
x=
"693"
y=
"3
47
"
id=
"147"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"5"
>
<cdparam
x=
"522"
y=
"390"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"5
34
"
y=
"3
69
"
id=
"211"
/>
<P2
x=
"4
53
"
y=
"3
22
"
id=
"41"
/>
<P1
x=
"5
21
"
y=
"3
82
"
id=
"211"
/>
<P2
x=
"4
66
"
y=
"3
35
"
id=
"41"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"6"
>
...
...
@@ -57,16 +57,16 @@
<cdparam
x=
"656"
y=
"426"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"8
05
"
y=
"5
4
2"
id=
"190"
/>
<P2
x=
"969"
y=
"4
74
"
id=
"77"
/>
<P1
x=
"8
16
"
y=
"5
5
2"
id=
"190"
/>
<P2
x=
"969"
y=
"4
95
"
id=
"77"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"8"
>
<cdparam
x=
"656"
y=
"400"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"8
05
"
y=
"5
0
9"
id=
"192"
/>
<P2
x=
"9
3
1"
y=
"4
6
6"
id=
"75"
/>
<P1
x=
"8
16
"
y=
"5
1
9"
id=
"192"
/>
<P2
x=
"9
2
1"
y=
"4
7
6"
id=
"75"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"9"
>
...
...
@@ -74,126 +74,126 @@
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"751"
y=
"406"
id=
"200"
/>
<P2
x=
"8
4
2"
y=
"3
62
"
id=
"105"
/>
<P2
x=
"82
9
"
y=
"3
75
"
id=
"105"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"10"
>
<cdparam
x=
"689"
y=
"292"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"8
42
"
y=
"3
88
"
id=
"109"
/>
<P2
x=
"9
3
1"
y=
"3
5
2"
id=
"85"
/>
<P1
x=
"8
55
"
y=
"3
75
"
id=
"109"
/>
<P2
x=
"9
2
1"
y=
"3
6
2"
id=
"85"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"11"
>
<cdparam
x=
"656"
y=
"377"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"8
05
"
y=
"4
8
1"
id=
"196"
/>
<P2
x=
"9
3
1"
y=
"4
4
3"
id=
"83"
/>
<P1
x=
"8
16
"
y=
"4
9
1"
id=
"196"
/>
<P2
x=
"9
2
1"
y=
"4
5
3"
id=
"83"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"12"
>
<cdparam
x=
"656"
y=
"351"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"8
05
"
y=
"4
4
8"
id=
"194"
/>
<P2
x=
"9
3
1"
y=
"4
1
6"
id=
"81"
/>
<P1
x=
"8
16
"
y=
"4
5
8"
id=
"194"
/>
<P2
x=
"9
2
1"
y=
"4
2
6"
id=
"81"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"13"
>
<cdparam
x=
"741"
y=
"296"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"9
3
1"
y=
"3
8
7"
id=
"79"
/>
<P2
x=
"8
05
"
y=
"4
1
9"
id=
"198"
/>
<P1
x=
"9
2
1"
y=
"3
9
7"
id=
"79"
/>
<P2
x=
"8
16
"
y=
"4
2
9"
id=
"198"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"14"
>
<cdparam
x=
"735"
y=
"260"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"9
3
1"
y=
"3
17
"
id=
"87"
/>
<P2
x=
"7
3
4"
y=
"2
69
"
id=
"159"
/>
<P1
x=
"91
8
"
y=
"3
30
"
id=
"87"
/>
<P2
x=
"74
7
"
y=
"2
82
"
id=
"159"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"15"
>
<cdparam
x=
"641"
y=
"230"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"7
3
4"
y=
"2
35
"
id=
"157"
/>
<P2
x=
"9
3
1"
y=
"2
78
"
id=
"89"
/>
<P1
x=
"74
7
"
y=
"2
48
"
id=
"157"
/>
<P2
x=
"91
8
"
y=
"2
91
"
id=
"89"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"16"
>
<cdparam
x=
"641"
y=
"195"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"7
3
4"
y=
"
190
"
id=
"155"
/>
<P2
x=
"9
3
1"
y=
"2
35
"
id=
"91"
/>
<P1
x=
"74
7
"
y=
"
203
"
id=
"155"
/>
<P2
x=
"91
8
"
y=
"2
48
"
id=
"91"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"17"
>
<cdparam
x=
"740"
y=
"353"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"8
4
2"
y=
"3
62
"
id=
"104"
/>
<P2
x=
"7
3
4"
y=
"3
0
1"
id=
"153"
/>
<P1
x=
"82
9
"
y=
"3
75
"
id=
"104"
/>
<P2
x=
"74
7
"
y=
"31
4
"
id=
"153"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"18"
>
<cdparam
x=
"460"
y=
"270"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"5
34
"
y=
"
290
"
id=
"163"
/>
<P2
x=
"4
53
"
y=
"
290
"
id=
"35"
/>
<P1
x=
"5
21
"
y=
"
303
"
id=
"163"
/>
<P2
x=
"4
66
"
y=
"
303
"
id=
"35"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"19"
>
<cdparam
x=
"387"
y=
"129"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"4
53
"
y=
"1
1
6"
id=
"31"
/>
<P2
x=
"5
3
4"
y=
"1
1
6"
id=
"151"
/>
<P1
x=
"4
64
"
y=
"1
2
6"
id=
"31"
/>
<P2
x=
"5
2
4"
y=
"1
2
6"
id=
"151"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"20"
>
<cdparam
x=
"389"
y=
"200"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"4
53
"
y=
"2
02
"
id=
"37"
/>
<P2
x=
"5
34
"
y=
"2
02
"
id=
"165"
/>
<P1
x=
"4
66
"
y=
"2
15
"
id=
"37"
/>
<P2
x=
"5
21
"
y=
"2
15
"
id=
"165"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"21"
>
<cdparam
x=
"460"
y=
"236"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"5
34
"
y=
"2
47
"
id=
"167"
/>
<P2
x=
"4
53
"
y=
"2
47
"
id=
"39"
/>
<P1
x=
"5
21
"
y=
"2
60
"
id=
"167"
/>
<P2
x=
"4
66
"
y=
"2
60
"
id=
"39"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"22"
>
<cdparam
x=
"389"
y=
"163"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector"
value=
"Connector between ports"
/>
<P1
x=
"4
53
"
y=
"1
5
6"
id=
"33"
/>
<P2
x=
"5
34
"
y=
"1
5
6"
id=
"161"
/>
<P1
x=
"4
66
"
y=
"16
9
"
id=
"33"
/>
<P2
x=
"5
21
"
y=
"16
9
"
id=
"161"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"23"
>
<cdparam
x=
"967"
y=
"190"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from TGComponent to TGComponent"
value=
"Connector between ports"
/>
<P1
x=
"9
3
1"
y=
"18
5
"
id=
"93"
/>
<P2
x=
"7
3
4"
y=
"1
11
"
id=
"173"
/>
<P1
x=
"91
8
"
y=
"1
9
8"
id=
"93"
/>
<P2
x=
"74
7
"
y=
"1
24
"
id=
"173"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"24"
>
<cdparam
x=
"1028"
y=
"535"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from TGComponent to TGComponent"
value=
"Connector between ports"
/>
<P1
x=
"630"
y=
"3
2
4"
id=
"149"
/>
<P1
x=
"630"
y=
"34
5
"
id=
"149"
/>
<P2
x=
"669"
y=
"406"
id=
"188"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
...
...
@@ -201,24 +201,24 @@
<cdparam
x=
"1308"
y=
"303"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from TGComponent to TGComponent"
value=
"Connector between ports"
/>
<P1
x=
"12
3
2"
y=
"3
6
8"
id=
"127"
/>
<P2
x=
"11
6
7"
y=
"3
7
0"
id=
"73"
/>
<P1
x=
"12
2
2"
y=
"3
7
8"
id=
"127"
/>
<P2
x=
"117
8
"
y=
"3
8
0"
id=
"73"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"26"
>
<cdparam
x=
"1172"
y=
"437"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from TGComponent to TGComponent"
value=
"Connector between ports"
/>
<P1
x=
"11
6
7"
y=
"4
0
5"
id=
"71"
/>
<P2
x=
"12
3
2"
y=
"4
0
3"
id=
"125"
/>
<P1
x=
"117
8
"
y=
"4
1
5"
id=
"71"
/>
<P2
x=
"12
2
2"
y=
"4
1
3"
id=
"125"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<CONNECTOR
type=
"126"
id=
"29"
>
<cdparam
x=
"1041"
y=
"162"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from TGComponent to TGComponent"
value=
"Connector between ports"
/>
<P1
x=
"11
6
7"
y=
"
19
8"
id=
"69"
/>
<P2
x=
"11
6
7"
y=
"2
6
6"
id=
"67"
/>
<P1
x=
"117
8
"
y=
"
20
8"
id=
"69"
/>
<P2
x=
"117
8
"
y=
"2
7
6"
id=
"67"
/>
<Point
x=
"1227"
y=
"207"
/>
<Point
x=
"1227"
y=
"247"
/>
<AutomaticDrawing
data=
"true"
/>
...
...
@@ -243,8 +243,8 @@
<cdparam
x=
"877"
y=
"343"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from TGComponent to TGComponent"
value=
"Connector between ports"
/>
<P1
x=
"11
6
7"
y=
"4
4
4"
id=
"65"
/>
<P2
x=
"12
3
2"
y=
"4
3
1"
id=
"123"
/>
<P1
x=
"117
8
"
y=
"4
5
4"
id=
"65"
/>
<P2
x=
"12
2
2"
y=
"4
4
1"
id=
"123"
/>
<AutomaticDrawing
data=
"true"
/>
</CONNECTOR>
<COMPONENT
type=
"1202"
id=
"53"
>
...
...
@@ -5821,7 +5821,7 @@ On prend b=1 comme exemple
<COMPONENT
type=
"301"
id=
"1297"
>
<cdparam
x=
"453"
y=
"214"
/>
<sizeparam
width=
"105"
height=
"
20
"
minWidth=
"50"
minHeight=
"20"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<sizeparam
width=
"105"
height=
"
15
"
minWidth=
"50"
minHeight=
"20"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<hidden
value=
"false"
/>
<cdrectangleparam
minX=
"10"
maxX=
"1400"
minY=
"10"
maxY=
"900"
/>
<infoparam
name=
"UML Note"
value=
"data exchange
...
...
@@ -7014,7 +7014,7 @@ On prend b=1 comme exemple
</SUBCOMPONENT>
<COMPONENT
type=
"1100"
id=
"1717"
>
<cdparam
x=
"26
7
"
y=
"59"
/>
<cdparam
x=
"26
6
"
y=
"59"
/>
<sizeparam
width=
"272"
height=
"167"
minWidth=
"150"
minHeight=
"100"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<hidden
value=
"false"
/>
<cdrectangleparam
minX=
"10"
maxX=
"1400"
minY=
"10"
maxY=
"900"
/>
...
...
@@ -7050,7 +7050,7 @@ On prend b=1 comme exemple
</COMPONENT>
<SUBCOMPONENT
type=
"1101"
id=
"1674"
>
<father
id=
"1717"
num=
"0"
/>
<cdparam
x=
"27
7
"
y=
"90"
/>
<cdparam
x=
"27
6
"
y=
"90"
/>
<sizeparam
width=
"108"
height=
"40"
minWidth=
"75"
minHeight=
"1"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<hidden
value=
"false"
/>
<cdrectangleparam
minX=
"0"
maxX=
"164"
minY=
"0"
maxY=
"127"
/>
...
...
@@ -7069,7 +7069,7 @@ On prend b=1 comme exemple
</SUBCOMPONENT>
<SUBCOMPONENT
type=
"1101"
id=
"1683"
>
<father
id=
"1717"
num=
"1"
/>
<cdparam
x=
"29
3
"
y=
"165"
/>
<cdparam
x=
"29
2
"
y=
"165"
/>
<sizeparam
width=
"139"
height=
"40"
minWidth=
"75"
minHeight=
"1"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<hidden
value=
"false"
/>
<cdrectangleparam
minX=
"0"
maxX=
"133"
minY=
"0"
maxY=
"127"
/>
...
...
@@ -7088,7 +7088,7 @@ On prend b=1 comme exemple
</SUBCOMPONENT>
<SUBCOMPONENT
type=
"1101"
id=
"1692"
>
<father
id=
"1717"
num=
"2"
/>
<cdparam
x=
"39
2
"
y=
"119"
/>
<cdparam
x=
"39
1
"
y=
"119"
/>
<sizeparam
width=
"136"
height=
"37"
minWidth=
"75"
minHeight=
"1"
maxWidth=
"2000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<hidden
value=
"false"
/>
<cdrectangleparam
minX=
"0"
maxX=
"136"
minY=
"0"
maxY=
"130"
/>
...
...
@@ -7146,7 +7146,7 @@ On prend b=1 comme exemple
<cdparam
x=
"388"
y=
"162"
/>
<sizeparam
width=
"0"
height=
"0"
minWidth=
"0"
minHeight=
"0"
maxWidth=
"1000"
maxHeight=
"2000"
minDesiredWidth=
"0"
minDesiredHeight=
"0"
/>
<infoparam
name=
"connector from CPU0 to Bus0"
value=
"{info}"
/>
<P1
x=
"40
3
"
y=
"226"
id=
"1699"
/>
<P1
x=
"40
2
"
y=
"226"
id=
"1699"
/>
<P2
x=
"403"
y=
"269"
id=
"1608"
/>
<AutomaticDrawing
data=
"true"
/>
<extraparam>
...
...
src/main/java/avatartranslator/AvatarArithmeticOp.java
View file @
0582e0e7
...
...
@@ -51,7 +51,7 @@ public class AvatarArithmeticOp extends AvatarTerm {
AvatarTerm
term2
;
String
operator
;
private
static
final
String
[]
knownOp
=
{
"+"
,
"-"
};
private
static
final
String
[]
knownOp
=
{
"+"
,
"-"
,
"*"
};
public
AvatarArithmeticOp
(
AvatarTerm
_term1
,
AvatarTerm
_term2
,
String
_operator
,
Object
_referenceObject
)
{
super
(
_term1
.
getName
()
+
_operator
+
_term2
.
getName
(),
_referenceObject
);
...
...
src/main/java/avatartranslator/AvatarGuard.java
View file @
0582e0e7
...
...
@@ -51,7 +51,7 @@ import myutil.TraceManager;
*/
public
abstract
class
AvatarGuard
{
p
rivate
static
int
getMatchingRParen
(
String
s
,
int
indexLParen
)
{
p
ublic
static
int
getMatchingRParen
(
String
s
,
int
indexLParen
)
{
int
index
,
n
;
n
=
1
;
for
(
index
=
indexLParen
+
1
;
index
<
s
.
length
();
index
++)
{
...
...
src/main/java/avatartranslator/AvatarTerm.java
View file @
0582e0e7
...
...
@@ -66,33 +66,48 @@ public abstract class AvatarTerm extends AvatarElement {
if
(
toParse
==
null
||
toParse
.
isEmpty
())
return
null
;
// TraceManager.addDev("toParse:" + toParse);
AvatarTerm
result
=
AvatarTermFunction
.
createFromString
(
block
,
toParse
);
if
(
result
!=
null
)
if
(
result
!=
null
)
{
//TraceManager.addDev("Result1=" + result);
return
result
;
}
result
=
AvatarTuple
.
createFromString
(
block
,
toParse
);
if
(
result
!=
null
)
if
(
result
!=
null
)
{
//TraceManager.addDev("Parsed:" + toParse);
//TraceManager.addDev("Result2=" + result);
return
result
;
}
result
=
AvatarArithmeticOp
.
createFromString
(
block
,
toParse
);
if
(
result
!=
null
)
if
(
result
!=
null
)
{
//TraceManager.addDev("Result3=" + result);
return
result
;
}
toParse
=
toParse
.
trim
();
result
=
block
.
getAvatarAttributeWithName
(
toParse
);
if
(
result
!=
null
)
if
(
result
!=
null
)
{
//TraceManager.addDev("Result4=" + result);
return
result
;
}
// TraceManager.addDev ("AvatarAttribute '" + toParse + "' couldn't be parsed");
result
=
block
.
getAvatarSpecification
().
getAvatarConstantWithName
(
toParse
);
if
(
result
!=
null
)
if
(
result
!=
null
)
{
//TraceManager.addDev("Result5=" + result);
return
result
;
}
try
{
// TODO: replace that by a true AvatarNumeric
//int i = Integer.parseInt (toParse);
result
=
new
AvatarConstant
(
toParse
,
block
);
block
.
getAvatarSpecification
().
addConstant
((
AvatarConstant
)
result
);
//TraceManager.addDev("Result6=" + result);
return
result
;
}
catch
(
NumberFormatException
e
)
{
}
...
...
@@ -100,12 +115,14 @@ public abstract class AvatarTerm extends AvatarElement {
if
(
AvatarTerm
.
isValidName
(
toParse
))
{
result
=
new
AvatarConstant
(
toParse
,
block
);
block
.
getAvatarSpecification
().
addConstant
((
AvatarConstant
)
result
);
//TraceManager.addDev("Result7=" + result);
return
result
;
}
//TraceManager.addDev ("AvatarConstant '" + toParse + "' couldn't be parsed");
//TraceManager.addDev ("AvatarTerm '" + toParse + "' couldn't be parsed");
//if (allowRaw)
//TraceManager.addDev("Result7: return new term");
return
new
AvatarTermRaw
(
toParse
,
block
);
//else
//return null;
...
...
src/main/java/avatartranslator/AvatarTransition.java
View file @
0582e0e7
...
...
@@ -38,6 +38,8 @@
package
avatartranslator
;
import
myutil.TraceManager
;
import
java.util.Iterator
;
import
java.util.LinkedList
;
import
java.util.List
;
...
...
@@ -204,14 +206,16 @@ public class AvatarTransition extends AvatarStateMachineElement {
}
public
void
addAction
(
String
_action
)
{
TraceManager
.
addDev
(
"**************************** String expr to be added: "
+
_action
);
AvatarAction
aa
=
AvatarTerm
.
createActionFromString
(
block
,
_action
);
//
TraceManager.addDev("**************************** Avatar action : " + aa);
TraceManager
.
addDev
(
"****************************
Adding
Avatar action
from String
: "
+
aa
);
if
(
aa
!=
null
)
actions
.
add
(
aa
);
}
public
void
addAction
(
AvatarAction
_action
)
{
if
(
_action
!=
null
)
TraceManager
.
addDev
(
"**************************** Avatar action from AvatarAction: "
+
_action
);
this
.
actions
.
add
(
_action
);
}
...
...
src/main/java/avatartranslator/AvatarTuple.java
View file @
0582e0e7
...
...
@@ -38,6 +38,8 @@
package
avatartranslator
;
import
myutil.TraceManager
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -61,15 +63,13 @@ public class AvatarTuple extends AvatarLeftHand {
if
(
toParse
.
trim
().
startsWith
(
"("
))
{
int
indexLParen
=
toParse
.
indexOf
(
"("
);
int
indexRParen
=
toParse
.
indexOf
(
")"
,
indexLParen
);
if
(
indexRParen
==
-
1
)
indexRParen
=
toParse
.
length
();
int
indexRParen
=
AvatarGuard
.
getMatchingRParen
(
toParse
,
indexLParen
);
String
[]
components
=
toParse
.
substring
(
indexLParen
+
1
,
indexRParen
).
trim
().
split
(
","
);
boolean
illFormed
=
false
;
AvatarTuple
argsTuple
=
new
AvatarTuple
(
block
);
for
(
String
arg:
components
)
{
if
(!
arg
.
isEmpty
())
{
//
TraceManager.addDev("In for with arg=" + arg+"|");
TraceManager
.
addDev
(
"In for with arg="
+
arg
+
"|"
);
AvatarTerm
t
=
AvatarTerm
.
createFromString
(
block
,
arg
);
if
(
t
==
null
)
{
// Term couldn't be parsed
...
...
@@ -81,9 +81,14 @@ public class AvatarTuple extends AvatarLeftHand {
}
}
if
(!
illFormed
)
if
(!
illFormed
)
{
// Every argument was correctly parsed
result
=
argsTuple
;
TraceManager
.
addDev
(
"Successfully parsed tuple \""
+
toParse
.
substring
(
indexLParen
+
1
,
indexRParen
)
+
"\""
);
}
else
{
TraceManager
.
addDev
(
"Illformed expression ..."
);
}
}
return
result
;
...
...
src/main/java/cli/Interpreter.java
View file @
0582e0e7
...
...
@@ -61,7 +61,7 @@ import java.util.*;
*/
public
class
Interpreter
implements
Runnable
{
public
final
static
Command
[]
commands
=
{
new
Help
(),
new
Quit
(),
new
Action
(),
new
Set
(),
new
Wait
(),
new
Print
(),
new
History
()};
new
Set
(),
new
Wait
(),
new
Print
(),
new
History
()
,
new
TestSpecific
()
};
// Errors
public
final
static
String
UNKNOWN
=
"Unknown command"
;
...
...
src/main/java/myutil/BoolExpressionEvaluator.java
View file @
0582e0e7
...
...
@@ -1608,6 +1608,9 @@ public class BoolExpressionEvaluator {
public
boolean
getResultOfWithIntExpr
(
String
_expr
)
{
int
index
,
indexPar
;
//TraceManager.addDev("Going to evaluate: " + _expr);
String
tmp
=
Conversion
.
replaceAllString
(
_expr
,
"=="
,
"$"
).
trim
();
tmp
=
Conversion
.
replaceAllString
(
tmp
,
"!="
,
"$"
).
trim
();
tmp
=
Conversion
.
replaceAllString
(
tmp
,
">="
,
":"
).
trim
();
...
...
@@ -1717,7 +1720,7 @@ public class BoolExpressionEvaluator {
IntBoolRes
newElt
;
//TraceManager.addDev(current.getTop().toString());
//
TraceManager.addDev("<><><><><><> Dealing with token:" + token + " current=" + current);
TraceManager
.
addDev
(
"<><><><><><> Dealing with token:"
+
token
+
" current="
+
current
);
char
c1
=
token
.
charAt
(
0
);
...
...
src/main/java/myutil/IntExpressionEvaluator.java
View file @
0582e0e7
...
...
@@ -77,7 +77,7 @@ public class IntExpressionEvaluator {
}
public
double
getResultOf
(
String
_expr
)
{
//
TraceManager.addDev("Computing:" + _expr);
TraceManager
.
addDev
(
"
IntExpr:
Computing:"
+
_expr
);
tokens
=
new
java
.
util
.
StringTokenizer
(
_expr
,
" \t\n\r+-*/()"
,
true
);
computeNextToken
();
...
...
src/main/java/ui/AvatarDesignPanelTranslator.java
View file @
0582e0e7
...
...
@@ -1668,7 +1668,9 @@ public class AvatarDesignPanelTranslator {
for
(
String
actionText
:
connector
.
getEffectiveActions
())
{
if
(
actionText
.
trim
().
length
()
>
0
)
{
//TraceManager.addDev("Action1:" + actionText);
actionText
=
modifyString
(
actionText
.
trim
());
//TraceManager.addDev("Action2:" + actionText);
// Variable assignment or method call?
if
(!
isAVariableAssignation
(
actionText
))
{
...
...
@@ -1700,6 +1702,7 @@ public class AvatarDesignPanelTranslator {
if
(
error
<
0
)
{
makeError
(
error
,
connector
.
tdp
,
block
,
connector
,
"transition action"
,
actionText
);
}
else
{
//TraceManager.addDev("Adding action:" + actionText);
transition
.
addAction
(
actionText
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment