1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>5. Behavior View Editors</TITLE>
<META NAME="description" CONTENT="5. Behavior View Editors">
<META NAME="keywords" CONTENT="User">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="User.css">
<LINK REL="next" HREF="usersguidenode8.html">
<LINK REL="previous" HREF="usersguidenode6.html">
<LINK REL="up" HREF="User.html">
<LINK REL="next" HREF="usersguidenode8.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html927"
HREF="usersguidenode8.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
<A NAME="tex2html923"
HREF="User.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
<A NAME="tex2html917"
HREF="usersguidenode6.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>
<A NAME="tex2html925"
HREF="usersguidenode1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A>
<A NAME="tex2html926"
HREF="usersguidenode15.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html928"
HREF="usersguidenode8.html">6. Architectural View Editors</A>
<B> Up:</B> <A NAME="tex2html924"
HREF="User.html">Toolkit for Conceptual Modeling</A>
<B> Previous:</B> <A NAME="tex2html918"
HREF="usersguidenode6.html">4. Data View Editors</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><strong>Subsections</strong></A>
<UL>
<LI><A NAME="tex2html929"
HREF="usersguidenode7.html#SECTION00710000000000000000">5.1 The State Transition Diagram Editor (TSTD)</A>
<UL>
<LI><A NAME="tex2html930"
HREF="usersguidenode7.html#SECTION00711000000000000000">5.1.1 Nodes and Edges</A>
<LI><A NAME="tex2html931"
HREF="usersguidenode7.html#SECTION00712000000000000000">5.1.2 States</A>
<LI><A NAME="tex2html932"
HREF="usersguidenode7.html#SECTION00713000000000000000">5.1.3 Transitions, Events and Actions</A>
<LI><A NAME="tex2html933"
HREF="usersguidenode7.html#SECTION00714000000000000000">5.1.4 Constraint Checking</A>
</UL>
<LI><A NAME="tex2html934"
HREF="usersguidenode7.html#SECTION00720000000000000000">5.2 The Activity Diagram Editor (TATD)</A>
<UL>
<LI><A NAME="tex2html935"
HREF="usersguidenode7.html#SECTION00721000000000000000">5.2.1 Nodes and Edges</A>
<LI><A NAME="tex2html936"
HREF="usersguidenode7.html#SECTION00722000000000000000">5.2.2 States</A>
<LI><A NAME="tex2html937"
HREF="usersguidenode7.html#SECTION00723000000000000000">5.2.3 Transitions</A>
<LI><A NAME="tex2html938"
HREF="usersguidenode7.html#SECTION00724000000000000000">5.2.4 Constraint Checking</A>
</UL>
<LI><A NAME="tex2html939"
HREF="usersguidenode7.html#SECTION00730000000000000000">5.3 The Process Structure Diagram Editor (TPSD)</A>
<UL>
<LI><A NAME="tex2html940"
HREF="usersguidenode7.html#SECTION00731000000000000000">5.3.1 Nodes and Edges</A>
<LI><A NAME="tex2html941"
HREF="usersguidenode7.html#SECTION00732000000000000000">5.3.2 The Process Tree</A>
<LI><A NAME="tex2html942"
HREF="usersguidenode7.html#SECTION00733000000000000000">5.3.3 Constraint Checking</A>
</UL>
<LI><A NAME="tex2html943"
HREF="usersguidenode7.html#SECTION00740000000000000000">5.4 The Recursive Process Graph Editor (TRPG)</A>
<UL>
<LI><A NAME="tex2html944"
HREF="usersguidenode7.html#SECTION00741000000000000000">5.4.1 Nodes and Edges</A>
<LI><A NAME="tex2html945"
HREF="usersguidenode7.html#SECTION00742000000000000000">5.4.2 Constraint Checking</A>
</UL>
<LI><A NAME="tex2html946"
HREF="usersguidenode7.html#SECTION00750000000000000000">5.5 The Collaboration Diagram Editor (TCBD)</A>
<UL>
<LI><A NAME="tex2html947"
HREF="usersguidenode7.html#SECTION00751000000000000000">5.5.1 Nodes and Edges</A>
<LI><A NAME="tex2html948"
HREF="usersguidenode7.html#SECTION00752000000000000000">5.5.2 Interactions</A>
<LI><A NAME="tex2html949"
HREF="usersguidenode7.html#SECTION00753000000000000000">5.5.3 Constraint Checking</A>
</UL>
<LI><A NAME="tex2html950"
HREF="usersguidenode7.html#SECTION00760000000000000000">5.6 The StateChart Diagram Editor (TSCD)</A>
<UL>
<LI><A NAME="tex2html951"
HREF="usersguidenode7.html#SECTION00761000000000000000">5.6.1 Nodes and Edges</A>
<LI><A NAME="tex2html952"
HREF="usersguidenode7.html#SECTION00762000000000000000">5.6.2 And-states</A>
</UL></UL>
<!--End of Table of Child-Links-->
<HR>
<H1><A NAME="SECTION00700000000000000000"> </A> <A NAME="BehaviorViewEditing"> </A><A NAME="5297"> </A>
<BR>
5. Behavior View Editors
</H1>
<P>
Behavior view editors manipulate various kind of diagrams to
represent system or object behavior.
<P>
<H1><A NAME="SECTION00710000000000000000"> </A>
<A NAME="5299"> </A><A NAME="5300"> </A>
<A NAME="5301"> </A>
<BR>
5.1 The State Transition Diagram Editor (TSTD)
</H1>
<P>
<H2><A NAME="SECTION00711000000000000000">
5.1.1 Nodes and Edges</A>
</H2>
<P>
TSTD follows the notational convention of Mealy machines.
In short, a <B>Mealy machine</B><A NAME="5304"> </A>
is a finite state machine in which each transition can have one
or more actions. See figure <A HREF="usersguidenode7.html#STRepresentations">5.1</A> for the
shapes and subjects.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="STRepresentations"> </A><A NAME="5345"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.1:</STRONG>
State transition diagram nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/arrowbox.eps}$ -->
<IMG
WIDTH="117" HEIGHT="86" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg102.gif"
ALT="\includegraphics{p/arrowbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Initial state<A NAME="5318"> </A><A NAME="5319"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/box.eps}$ -->
<IMG
WIDTH="89" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg32.gif"
ALT="\includegraphics{p/box.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>State<A NAME="5327"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/hexagon.eps}$ -->
<IMG
WIDTH="116" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg42.gif"
ALT="\includegraphics{p/hexagon.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Decision point<A NAME="5335"> </A></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
<TR><TD ALIGN="CENTER"><A NAME="5336"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/transition.eps}$ -->
<IMG
WIDTH="84" HEIGHT="70" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg103.gif"
ALT="\includegraphics{p/transition.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Transition<A NAME="5343"> </A></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00712000000000000000">
5.1.2 States</A>
</H2>
<P>
There are tree kinds of nodes: <B>initial states</B>, (normal)
<B>states</B> and <B>decision points</B>.
All nodes should have mutually unique names.
Nameless states, also called <B>transitory states</B>, are not permitted.<A NAME="5354"> </A>
<B>Non-deterministic</B> state transition diagrams are permitted.
<P>
An initial state can have one or more initialization actions.
You can add an action by selecting the initial state, and click
on or near the arrow on top of the box. When an edit cursor
appears at the right side of the arrow, you can type in the actions.
Each line of text will be considered as a separate action. If you stop
editing, the actions will be placed at the right side of the arrow and
the texts become left aligned. The arrow will be resized to accommodate
the height of the texts and on top of the actions a horizontal separator
line will be drawn. Only when the initial state
has actions then the separator line is drawn.
Note that these actions are in this notational convention
part of the initial state <I>node</I>, whereas the other actions (and events)
of a diagram are as a notational convention part of an <I>edge</I>.
<P>
<H2><A NAME="SECTION00713000000000000000"> </A><A NAME="5359"> </A><A NAME="5360"> </A><A NAME="5361"> </A>
<BR>
5.1.3 Transitions, Events and Actions
</H2>
Transitions are drawn as arrows. They do not have a single editable name
label like most of the other line or arrow types in TCM.
Instead they have a distinct event label and an arbitrary number of
action labels. The action labels each occupy exactly one line of text;
the event label can contain multiple lines.
The event and the actions are separated by a horizontal <B>separator
line</B><A NAME="5363"> </A>. When a transition is created, a separator
line will also be created and it will be positioned near
where a name label would normally be positioned. When the transition
line segment near the separator is drawn vertically, the separator is
by default connected to the right side of that line segment. When the
segment is drawn horizontally, the separator is by default positioned
somewhat above the line. See figure <A HREF="usersguidenode7.html#DefaultSTDSeparators">5.2</A> for the
two default positions.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="DefaultSTDSeparators"> </A><A NAME="5368"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.2:</STRONG>
Default STD separator positions.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/defaultseparators.eps}$ -->
<IMG
WIDTH="314" HEIGHT="209" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg104.gif"
ALT="\includegraphics{p/defaultseparators.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
If you click for editing a bit above the separator line, an
edit cursor appears and you can enter an event string.
When you stop editing, the event string will be positioned above
the separator line and the separator line will be resized, if necessary.
<P>
If you click for editing a bit below the separator, an edit cursor
appears there and you can enter a list of actions. Each line of text will
become a separate action. If you stop editing, the actions will become
left aligned and, if necessary, the separator line will be resized.
When the transition line segment is horizontal and the separator is
positioned above the segment, all labels are moved up so that they are all
positioned above the line. See figure <A HREF="usersguidenode7.html#STDEventAndActions">5.3</A> for an example
diagram with actions and events.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="STDEventAndActions"> </A><A NAME="5376"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.3:</STRONG>
STD with events and actions.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/stdeventactions.eps}$ -->
<IMG
WIDTH="339" HEIGHT="841" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg105.gif"
ALT="\includegraphics{p/stdeventactions.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
It is possible to drag the separator line together with the
event and action labels. There are two different sorts of
movements possible. You are advised to experiment with this.
These movements are:
<DL COMPACT>
<DT>1.
<DD><B>Move it to another line segment</B>. You do this by selecting
the transition and click for editing on the desired transition segment.
The separator line and the existing event and action labels are
moved to that line segment. When you stop editing, the separator will
remain in that line segment.
Summarizing: to move it to a different segment, empty the selection
and then double click the desired segment.
<DT>2.
<DD><B>Move within a line segment</B>. Drag with button-1
the separator or one of the labels to the desired position. The final
position is determined by the direction of the transition line segment.
<UL>
<LI>If the line segment is more or less horizontal, you can freely
move the separator and labels from left to right. But you can only move
the separator up and down to two predefined positions: either
all labels are positioned entirely above the line segment or
all labels are positioned entirely below the line segment.
<P>
<LI>If the line segment is more or less vertical, you can freely
move the separator and labels up and down the segment, but you
can only move the separator left and right to two predefined positions:
either all labels are entirely positioned at the left side of
the line segment or all labels are entirely positioned at the
right of the line segment.
</UL></DL>
<P>
The automatic positioning of labels looks best when the segments
are horizontal or vertical. When the transition arrow segments are
diagonal or curved, then label
positioning still works but sometimes the result does not look
as great as figure <A HREF="usersguidenode7.html#STDEventAndActions">5.3</A>.
<P>
<H2><A NAME="SECTION00714000000000000000">
5.1.4 Constraint Checking</A>
</H2>
<P>
TSTD checks the following constraints that are summarized in
figure <A HREF="usersguidenode7.html#STConstraints">5.4</A>.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="STConstraints"> </A><A NAME="5392"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.4:</STRONG>
Immediately checked and soft constraints on STDs.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/STconstraints.eps}$ -->
<IMG
WIDTH="584" HEIGHT="403" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg106.gif"
ALT="\includegraphics{p/STconstraints.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H1><A NAME="SECTION00720000000000000000"> </A>
<A NAME="5397"> </A><A NAME="5398"> </A>
<A NAME="5399"> </A>
<BR>
5.2 The Activity Diagram Editor (TATD)
</H1>
<P>
<H2><A NAME="SECTION00721000000000000000">
5.2.1 Nodes and Edges</A>
</H2>
<P>
An activity diagram is a special case of a state diagram in which most
states are action states or subactivity states, and most transitions are
completion transitions. The purpose of an activity diagram is to focus on
flows driven by internal processing (as opposed to external events).
See figure <A HREF="usersguidenode7.html#ATRepresentations">5.5</A> for the shapes and subjects.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ATRepresentations"> </A><A NAME="5477"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.5:</STRONG>
Activity diagram nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/ellipsedbox.eps}$ -->
<IMG
WIDTH="88" HEIGHT="44" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg43.gif"
ALT="\includegraphics{p/ellipsedbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Action state<A NAME="5414"> </A><A NAME="5415"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/roundedbox.eps}$ -->
<IMG
WIDTH="89" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg38.gif"
ALT="\includegraphics{p/roundedbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Inactive state<A NAME="5423"> </A><A NAME="5424"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/solidhorizontalbar.eps}$ -->
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Horizontal synchronization bar <A NAME="5432"> </A>
<A NAME="5433"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/solidverticalbar.eps}$ -->
<IMG
WIDTH="4" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg45.gif"
ALT="\includegraphics{p/solidverticalbar.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Vertical synchronization bar <A NAME="5441"> </A>
<A NAME="5442"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/blackdot.eps}$ -->
<IMG
WIDTH="10" HEIGHT="10" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg37.gif"
ALT="\includegraphics{p/blackdot.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Start state<A NAME="5450"> </A><A NAME="5451"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/blackdotellipse.eps}$ -->
<IMG
WIDTH="24" HEIGHT="24" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg44.gif"
ALT="\includegraphics{p/blackdotellipse.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>End state<A NAME="5459"> </A><A NAME="5460"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/minidiamond.eps}$ -->
<IMG
WIDTH="20" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg107.gif"
ALT="\includegraphics{p/minidiamond.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Decision <A NAME="5468"> </A></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/arrow.eps}$ -->
<IMG
WIDTH="94" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg59.gif"
ALT="\includegraphics{p/arrow.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Control flow<A NAME="5475"> </A></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00722000000000000000">
5.2.2 States</A>
</H2>
<P>
There are four kinds of nodes: <B>start and end states</B>, (active and wait)
<B>states</B>, <B>decisions</B> and <B>synchronizations</B>.
Nameless states and non-deterministic activity diagrams are not permitted.
<P>
A decision, represented by a small diamond, can be used as a
decision point (one incoming arrow and two or more outgoing arrows), as a
merge point (two or more incoming arrows and one outgoing arrow),
or as a combined merge/decision point.
See figure <A HREF="usersguidenode7.html#ATDecisionMerge">5.6</A> for an example of decision and merge.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ATDecisionMerge"> </A><A NAME="5490"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.6:</STRONG>
Example decision and merge.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/decisionmerge.eps}$ -->
<IMG
WIDTH="516" HEIGHT="141" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg108.gif"
ALT="\includegraphics{p/decisionmerge.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
Synchronizations, represented by horizontal or vertical synchronization
bars, should have one incoming and two or more outgoing control flows
or two or more incoming flows and one outgoing flow.
Via the Update Node Shape Type option in the edit menu it is
possible to convert between these two synchronization representations.
<A NAME="5494"> </A><A NAME="5495"> </A>
<P>
See figure <A HREF="usersguidenode7.html#ATDExample">5.7</A> for an example diagram with horizontal
synchronization bars.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ATDExample"> </A><A NAME="5500"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.7:</STRONG>
ATD with action states, synchronization bars and a decision.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/atdexample.eps}$ -->
<IMG
WIDTH="599" HEIGHT="645" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg109.gif"
ALT="\includegraphics{p/atdexample.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00723000000000000000"> </A><A NAME="5505"> </A>
<BR>
5.2.3 Transitions
</H2>
Transitions are drawn as arrows, which have a single editable name
label like most of the other line or arrow types in TCM.
Restrictions on transitions can be found in figure <A HREF="usersguidenode7.html#ATConstraints">5.8</A>.
<P>
<H2><A NAME="SECTION00724000000000000000">
5.2.4 Constraint Checking</A>
</H2>
<P>
TATD checks the following constraints that are summarized in
figure <A HREF="usersguidenode7.html#ATConstraints">5.8</A>.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ATConstraints"> </A><A NAME="5512"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.8:</STRONG>
Immediately checked and soft constraints on ATDs.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/ATconstraints.eps}$ -->
<IMG
WIDTH="600" HEIGHT="643" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg110.gif"
ALT="\includegraphics{p/ATconstraints.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H1><A NAME="SECTION00730000000000000000"> </A>
<A NAME="5517"> </A><A NAME="5518"> </A>
<A NAME="5519"> </A>
<BR>
5.3 The Process Structure Diagram Editor (TPSD)
</H1>
<P>
<H2><A NAME="SECTION00731000000000000000"> </A><A NAME="5521"> </A><A NAME="5522"> </A>
<BR>
5.3.1 Nodes and Edges
</H2>
TPSD has just one special type of node, called Process and
one type of edge called Empty edge (see figure <A HREF="usersguidenode7.html#PSRepresentations">5.9</A>).
The process node is represented by a box. In the
top right corner of the process node box, a process operator can be specified.
You edit this operator by selecting the box and then click in the
top right corner. You go into edit mode then and the operator is typed in as
a single character. See figure <A HREF="usersguidenode7.html#PSOperators">5.10</A> for the different operators.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="PSRepresentations"> </A><A NAME="5545"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.9:</STRONG>
Process structure diagram nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/box.eps}$ -->
<IMG
WIDTH="89" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg32.gif"
ALT="\includegraphics{p/box.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Process<A NAME="5536"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/predefinedline.eps}$ -->
<IMG
WIDTH="93" HEIGHT="1" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg68.gif"
ALT="\includegraphics{p/predefinedline.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Empty edge<A NAME="5543"> </A></TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="PSOperators"> </A><A NAME="5593"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.10:</STRONG>
Process structure operators.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">Box</TD>
<TD ALIGN="CENTER">Operator</TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=144>Description</TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/box.eps}$ -->
<IMG
WIDTH="89" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg32.gif"
ALT="\includegraphics{p/box.eps}">
<BR>
</DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=144>sequence, the default.</TD>
</TR>
<TR><TD ALIGN="CENTER"><A NAME="5560"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/iterationbox.eps}$ -->
<IMG
WIDTH="88" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg111.gif"
ALT="\includegraphics{p/iterationbox.eps}">
<BR>
</DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="CENTER"><code>*</code></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=144>iteration.</TD>
</TR>
<TR><TD ALIGN="CENTER"><A NAME="5568"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/choicebox.eps}$ -->
<IMG
WIDTH="88" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg112.gif"
ALT="\includegraphics{p/choicebox.eps}">
<BR>
</DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="CENTER"><code>o</code></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=144>choice.</TD>
</TR>
<TR><TD ALIGN="CENTER"><A NAME="5576"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/quitbox.eps}$ -->
<IMG
WIDTH="88" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg113.gif"
ALT="\includegraphics{p/quitbox.eps}">
<BR>
</DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="CENTER"><code>!</code></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=144>for premature termination.</TD>
</TR>
<TR><TD ALIGN="CENTER"><A NAME="5584"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/admitbox.eps}$ -->
<IMG
WIDTH="88" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg114.gif"
ALT="\includegraphics{p/admitbox.eps}">
<BR>
</DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="CENTER"><code>?</code></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=144>for premature termination.</TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00732000000000000000"> </A><A NAME="5598"> </A><A NAME="5599"> </A>
<BR>
5.3.2 The Process Tree
</H2>
<P>
TPSD is a bit different from the other existing TCM diagram editors
because in TPSD the layout (representation) is
significant for the meaning of the diagram. So TPSD
has to make sure that there is always a one-one relationship
between each node instance and its representing shape instance.
Therefore, duplicate shapes cannot be made in TPSD.
During editing, TPSD enforces that the graph is a set of undirected
trees. It has the constraint that an edge can only be added to the
graph when the resulting graph would not contain a cycle.
This constraint is also implemented for the tree editors
(chapter <A HREF="usersguidenode10.html#TreeEditing">8</A>).
<P>
In TPSD, the highest box in the drawing area represents the
root of the tree, which is called the <B>main root</B>.<A NAME="5602"> </A><A NAME="5603"> </A>
This is the process node whose representing box has the smallest y-coordinate.
The <B>main tree</B><A NAME="5605"> </A> is the tree that is connected to the main root.
<P>
Each process node has a set of children that is ordered from left to right.
The ordering of the children is determined by the position of
the shapes in the drawing area <A NAME="tex2html99"
HREF="#foot5606"><SUP>5.1</SUP></A>.
<P>
The <B>Update Sequence Labels</B><A NAME="5608"> </A> commands
in a submenu of the TPSD View menu make it possible to show the process
sequence numbers in the lower right corners of the boxes.
The <B>show no sequence labels</B> command makes all the sequence numbers invisible.
The <B>update action sequences</B> command draws the sequence numbers of all
actions. <B>Actions</B><A NAME="5612"> </A> are the leaf nodes of the tree,
excluding the ``quit'' boxes.
See figure <A HREF="usersguidenode7.html#ProcessExample">5.11</A> for a PSD with numbered actions.
The <B>update process sequences</B> command draws sequence numbers in all process nodes.
Each parent receives a sequence number that is one higher than the highest
number amongst its children.
Note that the sequence numbers are not updated automatically when you edit the diagram.
The labels are only recalculated and updated when you perform an update
sequence labels command again. However, when you save the PSD to file,
updating sequence labels is called implicitly.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ProcessExample"> </A><A NAME="5619"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.11:</STRONG>
Example PSD with numbered actions.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/processexample.eps}$ -->
<IMG
WIDTH="394" HEIGHT="347" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg115.gif"
ALT="\includegraphics{p/processexample.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00733000000000000000">
5.3.3 Constraint Checking</A>
</H2>
<P>
The Check Diagram command in the Diagram menu checks that
the tree is a syntactically correct JSD process structure diagram.
Because of the immediately enforced constraints, Check Diagram assumes
that there are no duplicate nodes and no cycles.
In figure <A HREF="usersguidenode7.html#PSConstraints">5.12</A> all immediately and soft constraints are
summarized.
<P>
Note that, if the box of a child has a smaller y-coordinate (is higher)
than its parent, then a warning is given because that is an indication
of a poor layout.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="PSConstraints"> </A><A NAME="5627"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.12:</STRONG>
Immediately checked and soft constraints on PSDs.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/PSconstraints.eps}$ -->
<IMG
WIDTH="468" HEIGHT="649" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg116.gif"
ALT="\includegraphics{p/PSconstraints.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H1><A NAME="SECTION00740000000000000000"> </A>
<A NAME="5632"> </A><A NAME="5633"> </A>
<A NAME="5634"> </A>
<A NAME="5635"> </A>
<BR>
5.4 The Recursive Process Graph Editor (TRPG)
</H1>
<P>
<H2><A NAME="SECTION00741000000000000000">
5.4.1 Nodes and Edges</A>
</H2>
<P>
See figure <A HREF="usersguidenode7.html#RPRepresentations">5.13</A> for the TRPG shapes and subjects.
There are two node types and three node shape types. Process graph roots
have their name label written on top of a downwards pointing arrow.
In general the process graph roots are named after the process
graph document, but in upper case letters. By default a process graph
is named <TT>UNTITLED</TT>. Process graph nodes have two node shape representations.
They can be small unnamed circles or larger rounded boxes which can
contain a name label. Process graph nodes are connected by event edges.
See figure <A HREF="usersguidenode7.html#RPGExample">5.14</A> for an example recursive process graph.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="RPRepresentations"> </A><A NAME="5679"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.13:</STRONG>
Recursive process graph nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/arrowdot.eps}$ -->
<IMG
WIDTH="18" HEIGHT="59" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg117.gif"
ALT="\includegraphics{p/arrowdot.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Process graph root</TD>
<TD ALIGN="CENTER"><A NAME="5652"> </A><A NAME="5653"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/dot.eps}$ -->
<IMG
WIDTH="19" HEIGHT="18" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg118.gif"
ALT="\includegraphics{p/dot.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Process graph node</TD>
</TR>
<TR><TD ALIGN="CENTER"><A NAME="5661"> </A><A NAME="5662"> </A>
<P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/rpgroundedbox.eps}$ -->
<IMG
WIDTH="82" HEIGHT="54" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg119.gif"
ALT="\includegraphics{p/rpgroundedbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Process graph node</TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/arrow.eps}$ -->
<IMG
WIDTH="94" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg59.gif"
ALT="\includegraphics{p/arrow.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Event<A NAME="5676"> </A><A NAME="5677"> </A></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
<TR><TD ALIGN="CENTER"><P></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="RPGExample"> </A><A NAME="5686"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.14:</STRONG>
Example recursive process graph.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/rpgexample.eps}$ -->
<IMG
WIDTH="445" HEIGHT="341" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg120.gif"
ALT="\includegraphics{p/rpgexample.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00742000000000000000">
5.4.2 Constraint Checking</A>
</H2>
<P>
TRPG checks the immediately enforced and soft constraints
that are summarized in figure <A HREF="usersguidenode7.html#RPConstraints">5.15</A>.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="RPConstraints"> </A><A NAME="5695"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.15:</STRONG>
Immediately checked and soft constraints on RPGs.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/RPconstraints.eps}$ -->
<IMG
WIDTH="466" HEIGHT="287" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg121.gif"
ALT="\includegraphics{p/RPconstraints.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H1><A NAME="SECTION00750000000000000000"> </A>
<A NAME="5700"> </A><A NAME="5701"> </A>
<A NAME="5702"> </A>
<BR>
5.5 The Collaboration Diagram Editor (TCBD)
</H1>
<P>
<H2><A NAME="SECTION00751000000000000000">
5.5.1 Nodes and Edges</A>
</H2>
<P>
Collaboration diagrams describe the interactions among classes and
associations. These interactions are modeled as exchanges of messages
between classes through their associations.
See figure <A HREF="usersguidenode7.html#CBRepresentations">5.16</A> for the shapes and subjects.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="CBRepresentations"> </A><A NAME="5773"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.16:</STRONG>
Collaboration diagram nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/stickman_class.eps}$ -->
<IMG
WIDTH="33" HEIGHT="82" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg122.gif"
ALT="\includegraphics{p/stickman_class.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Actor (Stickman/Class) <A NAME="5717"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/stickman_object.eps}$ -->
<IMG
WIDTH="33" HEIGHT="84" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg123.gif"
ALT="\includegraphics{p/stickman_object.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Actor (Stickman/Object) <A NAME="5725"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/UCactorbox.eps}$ -->
<IMG
WIDTH="106" HEIGHT="46" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg124.gif"
ALT="\includegraphics{p/UCactorbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Actor (ClassBox) <A NAME="5733"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/actor_objectbox.eps}$ -->
<IMG
WIDTH="111" HEIGHT="51" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg125.gif"
ALT="\includegraphics{p/actor_objectbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Actor (ObjectBox) <A NAME="5741"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/box.eps}$ -->
<IMG
WIDTH="89" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg32.gif"
ALT="\includegraphics{p/box.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Class <A NAME="5749"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/objbox.eps}$ -->
<IMG
WIDTH="88" HEIGHT="44" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg91.gif"
ALT="\includegraphics{p/objbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Object <A NAME="5757"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/CBclasslink.eps}$ -->
<IMG
WIDTH="125" HEIGHT="41" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg126.gif"
ALT="\includegraphics{p/CBclasslink.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Class link <A NAME="5764"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/CBobjectlink.eps}$ -->
<IMG
WIDTH="125" HEIGHT="41" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg127.gif"
ALT="\includegraphics{p/CBobjectlink.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Object link<A NAME="5771"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00752000000000000000">
5.5.2 Interactions</A>
</H2>
<P>
Interactions are drawn as any other line type in TCM.
In addition to the standard line types, interactions also have an arbitrary number
of message labels located at the opposite side of the name area of the link.
<P>
On creation of an interaction an initial dummy message will be created, consisting of a
default message text ("<code>edit this</code>") followed by a message arrow.
See figure <A HREF="usersguidenode7.html#DefaultCBDInteraction">5.17</A> for an example of a default interaction.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="DefaultCBDInteraction"> </A><A NAME="5782"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.17:</STRONG>
Default interaction.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/interactionexample.eps}$ -->
<IMG
WIDTH="301" HEIGHT="47" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg128.gif"
ALT="\includegraphics{p/interactionexample.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
The order of the interaction may be described with a sequence of numbers,
usually starting with number 1.
<P>
The message text can be edited as usual.
The message direction can be changed either by:
<P>
<UL>
<LI>clicking on it with the left-button: this will toggle the message direction.
<LI>by adding a "direction prefix" add the end of the message text :
<P>
<UL>
<LI>'<code>></code>' : Add message direction from "left shape" towards "right shape".
<LI>'<code><</code>' : Add message direction from "right shape" towards "left shape".
<LI>'<code>^</code>' : Add message direction from "upper shape" towards "down shape".
<LI>'<code>v</code>' : Add message direction from "down shape" towards "upper shape".
</UL>
<P>
In this way message directions can be added easy without having to switch
between keyboard and mouse alternately.
E.g. adding two messages to an interaction: <BR>
<code>"1.2: create() > [CR] 1.3: respond() <"</code> <BR>
will result in:
<P>
<code>1.2: create() </code>
<!-- MATH: $\rightarrow$ -->
<IMG
WIDTH="20" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg129.gif"
ALT="$\rightarrow$">
<BR>
<code>1.3: respond() </code>
<!-- MATH: $\leftarrow$ -->
<IMG
WIDTH="20" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg130.gif"
ALT="$\leftarrow$">
<P>
</UL>
<P>
<H2><A NAME="SECTION00753000000000000000">
5.5.3 Constraint Checking</A>
</H2>
<P>
TCBD checks the immediately enforced and soft constraints
that are summarized in figure <A HREF="usersguidenode7.html#CBConstraints">5.18</A>.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="CBConstraints"> </A><A NAME="5802"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.18:</STRONG>
Immediately checked and soft constraints on CBDs.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/CBconstraints.eps}$ -->
<IMG
WIDTH="534" HEIGHT="109" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg131.gif"
ALT="\includegraphics{p/CBconstraints.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H1><A NAME="SECTION00760000000000000000"> </A>
<A NAME="5807"> </A><A NAME="5808"> </A>
<A NAME="5809"> </A>
<BR>
5.6 The StateChart Diagram Editor (TSCD)
</H1>
<P>
Statechart diagrams describe all the possible states a particular object
can get into and how the object's state changes as a result of events
that reach the object.
<P>
In contrast to most editors, TSCD starts in the hierarchical document mode.
To select a node, click near any visible part in the node, for example
on the inner side of the border.
<P>
<H2><A NAME="SECTION00761000000000000000">
5.6.1 Nodes and Edges</A>
</H2>
<P>
See figure <A HREF="usersguidenode7.html#SCRepresentations">5.19</A> for the shapes and subjects.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="SCRepresentations"> </A><A NAME="5897"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.19:</STRONG>
Statechart diagram nodes and edges.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1" ALIGN="CENTER">
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/roundedbox.eps}$ -->
<IMG
WIDTH="89" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg38.gif"
ALT="\includegraphics{p/roundedbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>State<A NAME="5824"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/minidiamond.eps}$ -->
<IMG
WIDTH="20" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg107.gif"
ALT="\includegraphics{p/minidiamond.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Decision pseudostate<A NAME="5832"> </A><A NAME="5833"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/roundedfolderbox.eps}$ -->
<IMG
WIDTH="224" HEIGHT="135" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg132.gif"
ALT="\includegraphics{p/roundedfolderbox.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>And-state <A NAME="5841"> </A><A NAME="5842"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/blackdot.eps}$ -->
<IMG
WIDTH="10" HEIGHT="10" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg37.gif"
ALT="\includegraphics{p/blackdot.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Default state<A NAME="5850"> </A><A NAME="5851"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/solidhorizontalbar.eps}$ -->
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Horizontal synchronization pseudostate <A NAME="5859"> </A>
<A NAME="5860"> </A>
<A NAME="5861"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/solidverticalbar.eps}$ -->
<IMG
WIDTH="4" HEIGHT="45" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg45.gif"
ALT="\includegraphics{p/solidverticalbar.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Vertical synchronization pseudostate <A NAME="5869"> </A>
<A NAME="5870"> </A>
<A NAME="5871"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/blackdotellipse.eps}$ -->
<IMG
WIDTH="24" HEIGHT="24" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg44.gif"
ALT="\includegraphics{p/blackdotellipse.eps}">
<BR> </DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Final state<A NAME="5879"> </A><A NAME="5880"> </A></TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
<TR><TD ALIGN="CENTER"><P>
<HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/arrow.eps}$ -->
<IMG
WIDTH="94" HEIGHT="19" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg59.gif"
ALT="\includegraphics{p/arrow.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>Transition <A NAME="5887"> </A></TD>
<TD ALIGN="CENTER">
<BR><HR><P></P>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/dashedemptyline.eps}$ -->
<IMG
WIDTH="81" HEIGHT="1" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg133.gif"
ALT="\includegraphics{p/dashedemptyline.eps}"></DIV>
<BR><HR>
<BR></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94>And-line <A NAME="5894"> </A><A NAME="5895"> </A></TD>
</TR>
<TR><TD ALIGN="CENTER"><P></TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
<TD ALIGN="CENTER"> </TD>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH=94> </TD>
</TR>
</TABLE></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<H2><A NAME="SECTION00762000000000000000"> </A> <A NAME="5902"> </A><A NAME="5903"> </A>
<BR>
5.6.2 And-states
</H2>
<P>
Drawing an <I>and-</I>state requires special attention.
An <I>and-</I>state is divided into substates by dashed lines.
You can draw <I>and</I> lines using the middle mouse button,
like you would draw edges between different nodes.
TSCD includes a feature that automatically adds intermediary points to the and
line<A NAME="tex2html109"
HREF="#foot5907"><SUP>5.2</SUP></A>
Unfortunately, TSCD is not able to move or resize the <I>and</I> line with its
intermediary points automatically
when you move or resize the <I>and-</I>state node.
To move an <I>and-</I>state, always also select the <I>and</I> lines.
After resizing an <I>and-</I>state,
you have to readjust the intermediary points in the <I>and</I> lines.
<P>
See figure <A HREF="usersguidenode7.html#SCExample">5.20</A> for an example diagram with an <I>and-</I>state.
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="SCExample"> </A><A NAME="5931"> </A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 5.20:</STRONG>
SCD with an <I>and-</I>state and <I>and</I> line.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<!-- MATH: $\includegraphics{p/statechart.eps}$ -->
<IMG
WIDTH="519" HEIGHT="278" ALIGN="BOTTOM" BORDER="0"
SRC="usersguideimg134.gif"
ALT="\includegraphics{p/statechart.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot5606">... area </A><A NAME="foot5606"
HREF="usersguidenode7.html#tex2html99"><SUP>5.1</SUP></A>
<DD>More precisely: the order
of the children is determined by the x-coordinates of the end points on
the parent side of the edges between the parent and
the children. This sounds a bit complex, but this includes the common left
to right ordering with straight edges.
<DT><A NAME="foot5907">...
line</A><A NAME="foot5907"
HREF="usersguidenode7.html#tex2html109"><SUP>5.2</SUP></A>
<DD>This
is needed because a line from a node to itself always has to have at
least two intermediary points.
The intermediary points help in determining where on the border the and
line needs to be attached.
</DL><HR>
<!--Navigation Panel-->
<A NAME="tex2html927"
HREF="usersguidenode8.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
<A NAME="tex2html923"
HREF="User.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
<A NAME="tex2html917"
HREF="usersguidenode6.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>
<A NAME="tex2html925"
HREF="usersguidenode1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A>
<A NAME="tex2html926"
HREF="usersguidenode15.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html928"
HREF="usersguidenode8.html">6. Architectural View Editors</A>
<B> Up:</B> <A NAME="tex2html924"
HREF="User.html">Toolkit for Conceptual Modeling</A>
<B> Previous:</B> <A NAME="tex2html918"
HREF="usersguidenode6.html">4. Data View Editors</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Henk van de Zandschulp</I>
<BR><I>2003-01-20</I>
</ADDRESS>
</BODY>
</HTML>
|