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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
id,content,layer,summary
100,Requirements shall be managed in a 3rd party requirements management tool such as DOORS.,Requirement,
101,Non-requirement artifacts shall be managed in 3rd party tools such as Rational Rose or Clear case,Requirement,
102,Only registered subscribers shall be allowed to establish traces.,Requirement,
103,A user shall register as a subscriber.,Requirement,
104,On registration a subscriber shall register itself under the control of a subscribermanager,Requirement,
105,The user shall establish traces between requirements and other types of artifacts by establishing a subscription from an artifact to the relevant requirement,Requirement,
106,Each artifact shall be placed under the control of a subscribermanager,Requirement,
107,The user shall be able to delete subscriptions.,Requirement,
108,A subscribermanager shall register itself with the eventserver so that it may receive relevant event messages.,Requirement,
109,If the subscribermanager is online; the push model shall be used to send it event notifications in real time.,Requirement,
110,Whenever the subscribermanager first comes on line; it shall implement the pull model to retrieve outstanding event messages from the eventserver.,Requirement,
111,A subscribermanager shall receive event notifications on behalf of the artifacts that it manages.,Requirement,
112,A subscribermanager shall manage traces for one or more artifacts.,Requirement,
113,On receipt of an event message; the subscribermanager shall differentiate between speculative and evolutionary events.,Requirement,
114,The subscribermanager shall store information for evolutionary events in an eventlog.,Requirement,
115,The user shall be able to construct speculative queries using a GUI.,Requirement,
116,The subscribermanager shall immediately process speculative events.,Requirement,
117,The subscribermanager shall re execute the model using the speculative values.,Requirement,
118,The subscribermanager shall report results indicating whether the speculative change negatively impacts other requirements and constraints.,Requirement,
119,The subscribermanager shall restore the executable model to its prior state.,Requirement,
120,The prototype system shall utilize a driver to trigger events.,Requirement,
121,Event types shall include adding new requirements.,Requirement,
122,Event types shall include decomposing one requirement into two or more requirements.,Requirement,
123,Event types shall include refining one requirement by adding an additional requirement to the existing one.,Requirement,
124,Event types shall include modifying a requirement.,Requirement,
125,Event types shall include deleting a requirement.,Requirement,
126,Event types shall include merging requirements.,Requirement,
127,The eventserver shall receive event messages when a requirement changes.,Requirement,
128,On receipt of an event message the eventserver shall record the event in an eventlog.,Requirement,
129,On receipt of an event; the eventserver shall identify all relevant subscribers for the event.,Requirement,
130,The eventserver shall differentiate between evolutionary and speculative events.,Requirement,
131,When an evolutionary event occurs; the eventserver shall notify subscribers of the event.,Requirement,
132,For speculative events; the eventserver shall construct a composite event message.,Requirement,
133,The eventserver shall identify all related requirements and constraints for each impacted executable model.,Requirement,
134,The eventserver shall retrieve quantitative values related to these additional requirements and constraints through querying the requirements management tool.,Requirement,
135,The eventserver shall create a composite speculative message which includes the speculative event plus all related requirements and constraint values for each impacted model.,Requirement,
136,The eventserver shall send the customized message to each impacted executable model.,Requirement,
137,The user shall view all evolutionary events received for a specific artifact in the order in which they were received.,Requirement,
138,The user shall update related artifacts according to the information contained in the event messages.,Requirement,
139,The user shall eliminate unnecessary traces that were temporarily constructed by the eventserver during initial event processing.,Requirement,
140,The notification processing system shall automatically eliminate any events that are not longer valid as a result of the user eliminating temporary traces.,Requirement,
141,Test case: Establish Trace  (2.1.1)(2.2.1) Preconditions Subscriber is registered Steps Subscriber establishes a trace between a UML artifact and a requirement. Postconditions A trace is established between the UML artifact and the requirement.,Test,
142,Test case: Non-registered subscriber attempts to establish a trace (2.1.1) Preconditions The proposed Subscriber is not registered Steps Subscriber attempts to establish a trace between a UML artifact and a requirement. Postconditions No trace is established between the UML artifact and the requirement.,Test,
143,Test case: Subscriber registers with subscriber manager (2.1.3)(2.2.2)(3.2.2?)(2.1.2?) Preconditions The subscriber is a valid subscriber At least one valid subscriber manager is in the system Steps The subscriber registers itself with the subscriber manager. Postconditions The subscriber is registered under the subscriber manager.,Test,
144,Test case: Subscriber fails to register with subscriber manager (2.1.3)(2.2.2)(3.2.2?) Preconditions The subscriber is a valid subscriber Steps The subscriber attempts to exit from the registration process without registering itself under a subscriber manager. Postconditions The subscriber is removed from the system. ,Test,
145,Test case: Delete subscriptions (2.2.3) Preconditions At least one subscription has been established in the system Steps The user deletes the subscription Postconditions The subscription has been deleted. ,Test,
146,"Test case: Subscriber Manager registers with event server (3.1.1) Preconditions A subscriber manager has been created. Steps The subscriber manager registers its IP address, port, and name with the event server Post conditions The subscriber manager is registered with the event server. ",Test,
147,Test case: An event is published in real time (3.1.2) Preconditions: At least one subscriber manager is online at its designated IP address and port. The subscriber manager has subscribed to at least one requirement. Steps The requirement changes. An event notification is sent to the relevant subscriber manager. Postconditions:,Test,
148,Test case: Subscriber Manager comes online and checks for missed events (3.1.3) Preconditions: The subscriber manager is off line. The event server has stored an event notification that was not previously delivered to the subscriber manager. Steps: The subscriber manager comes online. Post conditions: The subscriber manager has successfully downloaded the relevant event notifications from the event server.,Test,
149,Test case: Subscriber manager receives non-speculative event notification (3.2.1)(3.2.3)(3.3.1) Preconditions: The subscriber manager has registered subscribers Steps An event notification is sent to the subscriber manager for a registered subscriber. The relevant subscriber manager receives the event notification. Postconditions: The event notification message is stored in the local event log.,Test,
150,Test case: Subscriber manager receives speculative event notification (3.2.1)(3.2.3) Preconditions: The subscriber manager has registered subscribers Steps An event notification is sent to the subscriber manager for a registered subscriber. The relevant subscriber manager receives the event notification. Postconditions: The event notification message is processed according to predefined protocols.,Test,
151,Test case: User constructs a speculative query (3.4.1) Preconditions: At least one performance model has been built. Requirements and constraints have been defined for this performance model. Steps: The user constructs a speculative query using a GUI tool. Postconditions: A speculative event message is received by the event server.,Test,
152,"Test case: Speculative event message is processed by subscriber manager (3.4.2)(3.4.3)(3.4.4)(3.4.5) Preconditions: A speculative query has been issued and sent to the relevant subscriber manager. Steps: The subscriber manager receives the speculative event message. The subscriber manager parses the event message to determine that it is a speculative event. The subscriber manager injects values into the relevant performance model, re-executes the model, collates the results, restores the model to its prior state, and returns the results. Postconditions A response is sent to the speculative event. The performance model is restored to its original state",Test,
153,Test case: Add New Requirement (4.1.)(4.1.1) Preconditions: The trigger driver is running. Steps The user specifies a new event. The user adds a new requirement Post conditions: A new event message is sent.,Test,
154,Test case: Decompose a Requirement (4.1)(4.1.2) Preconditions: The trigger driver is running. At least one requirement is defined. Steps The user specifies a decompose event. The user selects an existing requirement and decomposes it into two or more requirements. Post conditions: The requirement is decomposed into two or more events. A decompose event message is sent. Temporary links are established between the original requirement and its decomposed parts.,Test,
155,Test case: Refine a requirement (4.1)(4.1.3) Preconditions: The trigger driver is running. At least one requirement is defined. Steps The user specifies a refine event. The user selects an existing requirement and adds an additional requirement related to it. Post conditions: The requirement is refined by adding at least one related requirement. A refine event message is sent. Temporary links are established between the original requirement and its refinements.,Test,
156,Test case: Modify a requirement (4.1)(4.1.4) Preconditions: The trigger driver is running. At least one requirement is defined Steps The user specifies a modify event. The user selects an existing requirement and changes it. Post conditions: The requirement is changed. A modify event message is sent. Existing links from the original requirement are changed to tentative status.,Test,
157,Test case: Delete a requirement (4.1)(4.1.5) Preconditions: The trigger driver is running. At least one requirement is defined Steps The user specifies a delete event. The user selects an existing requirement and deletes it. Post conditions: The status of the requirement is set to obsolete. A delete event message is sent. Existing links from the obsolete requirement are set to tentative status.,Test,
158,Test case: Merge two or more requirements (4.1)(4.1.6) Preconditions: The trigger driver is running. At least two requirements are defined Steps The user specifies a merge event. The user specifies two or more requirements to merge. Post conditions: The requirements are merged. A merge event message is sent. Existing links from the original requirements are assigned to the newly merged requirement.,Test,
159,Test case: Event server receives message (5.1)(5.2)(5.4) Preconditions: The event server is running and waiting for incoming events at a well known port and IP address. The event trigger issues an event message. Steps The event server receives an event message. The event server parses the event message into its constituent parts. The event server categorizes each event according to whether it is speculative or evolutionary. The event server stores event details in its event log. Post conditions: The event is stored in the log. The event is categorized according to whether it is evolutionary or speculative.,Test,
160,Test case: Event server identifies subscribers (5.3) Preconditions: The event server has received an event message. Steps: The event server identifies the impacted requirements from the received event message. The event server searches for subscribers to those impacted requirements. Post conditions All relevant subscribers are identified. ,Test,
161,Test case: Notify subscribers when an evolutionary event occurs  (5.5) Preconditions: The event server has received an evolutionary event message. The event server has identified a list of subscribers. Steps: The event server identifies the subscriber manager for each subscriber. The event server identifies the IP address and port for each relevant subscriber manager. The event server builds a notification event message and sends it to each relevant subscriber manager. Postconditions: The event message is received by each relevant subscriber manager or behalf of its managed subscribers.,Test,
162,"Test case: Event server constructs composite event message for a speculate event (5.6)(5.6.1)(5.6.2)(5.6.3)(5.6.4) Preconditions: The event server has received a speculative event message. The event server has identified a list of subscribers. Steps: For each identified subscriber the event server identifies all additional requirements that are linked to the same artifact. The event server polls DOORS to obtain additional quantitative information for each of these additional requirements. The event server constructs a composite event message that includes the requirement that has changed, plus quantitative constraints obtained from other related requirements. The customized event message is sent to the relevant subscriber. ",Test,
163,Test case: Events are displayed in the order in which they are received.(6.1) Preconditions: At least three event messages received for a single artifact. Steps: The user activates the notification process tool. The user selects the artifact. Event messages are displayed in the order in which they were received. Postconditions: none ,Test,
164,Test case: User attempts to process an event message in the incorrect order (6.1) Preconditions: At least three event messages have been received by a subscriber manager on behalf of a single subscriber. The notification processing tool is running. Steps: The user examines the event messages that have been received for a single subscriber. The user tries to process an event other than the first one received. The system prohibits the user from processing the events in the incorrect order. Post conditions No events are processed.,Test,
165,"Test case: User processes an event message (6.2)(6.3)(6.4) Preconditions: Event messages are displayed for a single artifact. Steps: The user examines the first event message. The user applies any information from the event message to update the artifact accordingly. The user selects which of the tentative links should be made permanent and which ones should be discarded. Postconditions: The links in the event server are changed according to the users directions. Any additional event messages that had previously been sent on the basis of a tentative link, and for which the tentative link has now been eliminated, are removed from the event processing list and display.",Test,
46,"private JPanel center  Panel = null  ;

 private JLabel des  Label = null  ;
 private JLabel change  Label = null  ;
 private JLabel from  Label = null  ;
 private JLabel to  Label = null  ;
 private JText  Area des  Text = null  ;
 private JText  Field c

 // Speculate Gui

 public Speculate  Gui  ()
 {

  super  (""  Speculate GUI  "");

  container = get  Content  Pane  ();

  set  Size  (  800  , 600  );

  this  . event  Server  IP =
   JOption  Pane
    . show  Input  Dialog  (""  Please Enter the IP Address of eventserver


 // Submit Listener

 public void action  Performed  (  Action  Event e  ) {

   if ( e  . get  Source  () == submit  Button  ) {

    send  Query  TO Server  ();

   }

   if ( e  . get  Source  () == fetch  Button  ) {


    System  . out  . println  (""  Fetch Button Pressed


    void send  Query  TO Server  ()
 {

  String ip = this  . event  Server  IP  ;
  int Port  No = 1701  ;

  Socket socket  ;
  try {

   socket = new Socket  ( ip  , Port  No  );

   Output  Stream os = socket  . get  Output  Stream  ();
   Output  Stream

 public void pull  Value  From  DOORS  ()
 {

  String server  IP = new String  ( doors server  IP  ); //""  140  .  192  .  37  .  150  "";

  String  [] attribute = { ""  Value  "", ""  Attribute  "" };

  String project  Name = this  . proj  Name  Text  . get


 public static void main  (  String  [] args  )
 {
  new Speculate  Gui  ();
 }",Code,
47,"47	""Impact Report

private String server  IP = """" local host  """";
 private JPanel center  Panel = null  ;

 private JPanel driver  Panel = new JPanel  ();

 private JPanel driver  Inner  Panel = null  ;

 private JPanel impact  Panel = null  ;
 private JPanel impact  Inner  P

 public Impact  Report  ()
 {

  super  (""""  Search Result GUI  """");

  container = get  Content  Pane  ();

  set  Size  (  800  , 250  );

  panel = new JPanel  ();

  panel  . set  Layout  ( null  );

  this  . server  IP =
   JOption  Pane
    . show  In


 public static void main  (  String [] args  )
 {

  Impact  Report im = new Impact  Report  ();

 }


 public Vector search  Date  ()
 {

  date  Vector = new Vector  ();
  date  Vector  . add  (""""  Select Query Date  """");
  Socket server  ;
  String line = new String  ();
  try
  {

   server = new Socket  ( server  IP  ,  1701  );
   if ( server  . is  C public void search  Query  ID  (  String date  )
 {

  pair  Vector = new Vector  ();

  query  String  Combo  . remove  All  Items  ();

  query  String  Combo  . add  Item  (""""  Select Query String  """");

  Socket server  ;
  String line = new String  ();


  // Select Actions

  public void action  Performed  (  Action  Event e  )
  {

   if ( date  Combo == (  JCombo  Box  ) e  . get  Source  ())
   {
    date = (  String  ) date  Combo  . get  Selected  Item  ();
    search  Query  ID  ( date  );
   }
  }

  // Button Actions


public void action  Performed  (  Action  Event e  ) {

   if ( submit  Button == e  . get  Source  ()) {

    for ( int i = 0  ; i < pair  Vector  . size  (); i  ++) {

     Pair pair = (  Pair  ) pair  Vector  . get  ( i  );

     if ( pair
      . get



 public void impact  Report  (  String id  )
 {

  // super  (""""  Impact Report  """");

  container = get  Content  Pane  ();

  set  Size  (  1020  , 740  );

  this  . query  ID = id  ;

  System  . out  . println  (""""  Impact Report Constructor ..... ID """" +


 public Vector get  Constraint  From  Data  Base  ()
 {

  Vector v = new Vector  ();

  Socket server  ;
  String line = new String  ();


  try
  {
   server = new Socket  ( server  IP  ,  1701  );

   if ( server  . is  Connected  () )
   {
    Buffered



 public Vector get  Driver  From  Data  Base  ()
 {

  Vector v = new Vector  ();

     Socket server  ;
  String line = new String  ();

  try
  {
   server = new Socket  ( server  IP  ,  1701  );

   if ( server  . is  Connected  () )
   {
    Buffered""
",Code,
48,"48	""Constraint Inner Panel

private String server  IP = """" local host  """";
 private JLabel performance  Model  Label = null  ;
 private JLabel project  Name  Label = null  ;
 private JLabel module  Path  Label = null  ;
 private JLabel requirement  Id  Label = null  ;
 private JLabel

 public Constraint  Inner  Panel  (
  String performance  Model  Name  ,
  String project  Name  ,
  String module  Path  ,
  String requirement  Id  ,
  String description  ,
  String logic  ,
  String units  ,
  String value  ,
  String impacted  Value


private void set goal  Label  Values  (
  String attribute  ,
  String logic  ,
  String value  ,
  String units  )
 {
  goal  Label  . set  Text  (
   """"  Goal : """" + attribute + """"  """" + logic + """"  """" + value + """" """" + units  );

 }


public Vector get  Values  From  Data  Base  ()
 {
  Vector v = new Vector  ();
  Socket server  ;
  String line = new String  ();
  try
  {
   server = new Socket  ( server  IP  ,  1701  );

   if ( server  . is  Connected  () )
   {
    Buffered  R


 private void set impacted  Label  Value  (
  String attribute  ,
  String value  ,
  String impacted  Value  ,
  String units  ,
  String logic  )
 {

  if ( impacted  Value !  = null  )
  {
   double value  1 = Double  . parse  Double  ( value  );
   d


public JPanel get  Panel  ()
 {
  return panel  ;
 }""
",Code,
49,"49	""Constraints Description

private String project  Name = null  ;
 private String module  Path = null  ;
 private String requirement  ID = null  ;

 private String value = null  ;
 private String logic = null  ;
 private String units = null  ;
 private String description = null  ;


 public Constraints  Description  (
  String project  Name  ,
  String module  Path  ,
  String requirement  ID  )
 {

  this  . project  Name = project  Name  ;
  this  . module  Path = module  Path  ;
  this  . requirement  ID = requirement  ID  ;

 }


 public String get  Description  () {
  return this  . description  ;
 }

 public String get  Logic  () {
  return this  . logic  ;
 }

 public String get  Module  Path  () {
  return this  . module  Path  ;
 }

 public String get  Project  Name  () {
  return this  . project  Name  ;
 }

 public String get  Requirement  ID  () {
  return this  . requirement  ID  ;
 }

 public String get  Units  () {
  return this  . units  ;
 }

 public String get  Value  () {
  return this  . value  ;
 }

 public void set  Description  (  String description  ) {
  this  . description = description  ;
 }

 public void set  Logic  (  String logic  ) {
  this  . logic = logic  ;
 }

 public void set  Module  Path  (  String module  Path  ) {
  this  . module  Path = module  Path  ;
 }

 public void set  Project  Name  (  String project  Name  ) {
  this  . project  Name = project  Name  ;
 }

 public void set  Requirement  ID  (  String requirement  ID  ) {
  this  . requirement  ID = requirement  ID  ;
 }

 public void set  Units  (  String units  ) {
  this  . units = units  ;
 }

 public void set  Value  (  String units  ) {
  this  . value = units  ;
 }

 public String get  Impacted  Constraint  () {
  return this  . impacted  Constraint  ;
 }

 public void set  Impacted  Constraint  (  String impacted  Constraint  ) {
  this  . impacted  Constraint = impacted  Constraint  ;
 }

 public String get  Attribute  () {
  return this  . attribute  ;
 }

 public void set  Attribute  (  String attribute  ) {
  this  . attribute = attribute  ;
 }

 public String get  Performance  Model  Name  () {
  return this  . performance  Model  Name  ;
 }

 public void set  Performance  Model  Name  (  String performance  Model  Name  ) {
  this  . performance  Model  Name = performance  Model  Name  ;
 }

 public String to  String  () {

  String str =
   """"\ n  Project Name = """"
    + this  . project  Name
    + """"\ n  """"
    + """"  Module Path = """"
    + this  . module  Path
    + """"\ n  """"
    + """"  Requirement ID = """"
    + this  . requirement  ID
    + """"\ n  """"


public boolean equals  (  Object o  ) {
  if (!( o instance of Constraints  Description  ))
   return false  ;
  Constraints  Description cd = (  Constraints  Description  ) o  ;
  if ( cd  . project  Name  . equals  Ignore  Case  ( this  . project  Na


public int hash  Code  () {
  int hash  Code = 0  ;
  if ( hash  Code == 0  ) {
   int result = 17  ;
   result = 37 * result + this  . project  Name  . hash  Code  ();
   result = 37 * result + this  . module  Path  . hash  Code  ();
   result = 37 * ""
",Code,
50,"50	""Driver Description

private String projectName = null;
 private String modulePath = null;
 private String requirementID = null;

 private String description = null; // Description of the requirement.
 private String changedArrtibute = null;
 private Strin


public DriverDescription(
String projectName,
String modulePath,
String requirementID,
String description,
String changedAttribute,
String fromAttribute,
String toAttribute)
 {

this. projectName = projec

public String getChangedAttribute()
 {
return changedAttribute;
 }

 public String getDescription()
 {
return description;
 }

 public String getFromAttribute()
 {
return fromAttribute;
 }

 public String getModulePath()
 {
return modulePath;
 }

 public String getProjectName()
 {
return projectName;
 }

 public String getRequirementID()
 {
return requirementID;
 }

 public String getToAttribute()
 {
return toAttribute;
 }

 public void setChangedAttribute(String changedAttribute)
 {
this. changedAttribute = changedAttribute;
 }

 public void setDescription(String description)
 {
this. description = description;
 }

 public void setFromAttribute(String fromAttribute)
 {
this. fromAttribute = fromAttribute;
 }

 public void setModulePath(String modulePath)
 {
this. modulePath = modulePath;
 }

 public void setProjectName(String projectName)
 {
this. projectName = projectName;
 }

 public void setRequirementID(String requirementID)
 {
this. requirementID = requirementID;
 }

 public void setToAttribute(String toAttribute)
 {
this. toAttribute = toAttribute;
 }

 public String createKey()
 {
String key = this. projectName + this. modulePath + """"\\"""" + this. requirementID;
return key. toLowerCase();
 }

 public boolean equals(Object o)
 {
if (!( o instance of DriverDescription))
 return false;
DriverDescription dd = (DriverDescription) o;
if ( dd. projectName. equalsIgnoreCase( this. projectName)
 && ddpublic String toString()
 {

String str =
 """"\ nProject Name = """"
+ this. projectName
+ """"\ n""""
+ """"Module Path = """"
+ this. modulePath
+ """"\ n""""
+ """"Requirement ID = """"
+ this. requirementID
+ """"\ n""""


public int hashCode()
 {
int hashCode = 0;
if ( hashCode == 0)
{
 int result = 17;
 result = 37 * result + this. projectName. hashCode();
 result = 37 * result + this. modulePath. hashCode();
 result = 37 ""
",Code,
51,"51	""Driver Inner Panel

private JLabel projectNameLabel = null;
 private JLabel modulePathLabel = null;
 private JLabel requirementIdLabel = null;
 private JLabel desLabel = null;
 private JLabel changeLabel = null;
 private JLabel fromLabel = null;

 String projectName,
String modulePath,
String requirementID,
String description,
String changeAttribute,
String fromValue,
String toValue) {

panel = new JPanel();

panel. setBackground(Color.LIGHTpublic JPanel createPanel() {

return panel;
 }""
",Code,
52,"52	""Pair

private String queryID;
 private String queryString;


 public Pair(String queryID, String queryString) {

this. queryID = queryID;
this. queryString = queryString;

 }

 public String getQueryID() {
return this. queryID;
 }

 public String getQueryString() {
return this. queryString;
 }

 public void setQueryID(String queryID) {
this. queryID = queryID ;
 }

 public void setQueryString(String queryString) {
this. queryString = queryString;
 }

 public String toString(){
return """"Query ID: """"
+ this. queryID
+ """"\ n""""
+""""Query String : """"
+ this. queryString
+ """"\ n"""";


 }""
",Code,
53,"53	""Performance Model

private String name = null;
 private Vector driverVector = null;
 private Vector constraintVector = null;

 private long queryID = 0;

 public static int count = 0;

 public PerformanceModel(String name, long queryID)
 {
this. name = name;
this. queryID = queryID;
this. driverVector = new Vector();
this. constraintVector = new Vector();
 }

 public Vector getConstraints()
 {
return constraintVector;
 }

 public Vector getDrivers()
 {
return driverVector;
 }

  public String getName()
 {
return name;
 }

  public void setName(String name)
 {
this. name = name;
 }

 public void addDriver(DriverDescription driver)
 {
if ( driverVector. contains( driver))
{
}
else
 this. driverVector. add( driver);
 }

 public void removeDriver(DriverDescription driver)
 {
this. driverVector. remove( driver);
 }

 public boolean containsDriver(DriverDescription driver)
 {
return this. driverVector. contains( driver);
 }

 public void addConstraint(ConstraintsDescription constraint)
 {
this. constraintVector. add( constraint);
 }

  public boolean containsConstraint(ConstraintsDescription constraint)
 {
return this. constraintVector. contains( constraint);
 }

  public void removeConstraint(ConstraintsDescription constraint)
 {
this. constraintVector. remove( constraint);
 }

 public DriverDescription getDriver(DriverDescription driver)
 {
DriverDescription dd = null;
for ( int i = 0; i < this. driverVector. size(); i++)
{
 dd = (DriverDescription) this. driverVector. get( i)

 public ConstraintsDescription getConstraint(ConstraintsDescription constraint)
 {
ConstraintsDescription cd = null;
for ( int i = 0; i < this. constraintVector. size(); i++)
{
 cd = (ConstraintsDescription) this

 public long getQueryID()
 {
return this. queryID;
 }

 public void setQueryID( long id)
 {
this. queryID = id;
 }

 public String toString()
 {
return """"performance modelName = """"
 + this. name
 + """"\ n""""
 + """"Query ID = """"
 + this. queryID
 + """"\ n""""
 + """"Drivers = """"
 + this. driverVector
 + """"\ n""""
 + """"Constraints = """"
 + this.""
",Code,
54,"54	""eventserver

public static void (String args[])
 {
ThreadPool pool = new ThreadPool(1);
 int port = defaultPort;
 try
 {
 ServerSocket ss = new ServerSocket( port);
 for( int i=0; i<4; i++)
 {
p

public final static int defaultPort = 1701;
 ServerSocket theServer;""
",Code,
55,"55	""eventserver Threadstatic private int count = 0;
 private int taskNumber;
 protected Done done;
 ServerSocket theServer;

 private Connection conn;
 private Statement stmt;
 private ResultSet rs;
 private EventParser ep;
 private int id;

 EventServerThread(ServerSocket ss)
 {
 theServer = ss;
 count++;
 taskNumber = count;
 ep = new EventParser();
 } public void run()
 {

 while( true)
 {
 try
 {
Socket client = theServer. accept();
BufferedReader input = new BufferedReader( new InputStreamReader( client. getInputStream()));
PrintWriter output = new P


public String getNextID()
 {
try
{
Class. forName("""" sun. jdbc. odbc.jdbcodbcDriver"""");
this. conn = DriverManager. getConnection("""" jdbc: odbc:EBT"""",""""EBT"""",""""EBT"""");
this. stmt = conn


public String searchDate()
 {
String dateString = new String();
Vector dateVector = new Vector();
try
{
 Class. forName("""" sun. jdbc. odbc.jdbcodbcDriver"""");
 Connection conn = DriverManager. getConnectio


public String searchQueryID(String date)
 {
Vector queryVector = new Vector();
String searchQuery = new String();
try
{
 Class. forName("""" sun. jdbc. odbc.JdbcOdbcDriver"""");
 conn = DriverManager. get


 public String getConstraintFromDataBase(String queryID)
 {
String ConstString = new String();
try
{
 Class. forName("""" sun. jdbc. odbc.JdbcOdbcDriver"""");
 conn = DriverManager. getConnection("""" j


 public String getDriverFromDataBase(String queryID)
 {
String driverString = new String();
try
{
 Class. forName("""" sun. jdbc. odbc.JdbcOdbcDriver"""");
 conn = DriverManager. getConnection("""" jdbc ""
",Code,
56,"56	""Event Parser

private Connection conn;
 private ResultSet rs;
 private Statement stmt;

 //EventParser Constructor
 // initializes the Database connection
 public EventParser()
 {
try
{
 Class. forName("""" sun. jdbc. odbc.JdbcOdbcDriver"""");
 this. conn = DriverManager. getConnection("""" jdbc: odbc:


 public void updateEvent(String str, String ID)
 {
String mProject;
String mEvent;
String mType;
String mNum;
String mrequirement ;
String mModule;
String mSQL;
String mDate;
String mReqtext;


//Check if a subscription exists
 public boolean CheckSubscription(String str)
 {

StringTokenizer tokens = new StringTokenizer( str, """"|"""");
String Message type = tokens. nextToken();
String SubscriberName = tokens. next


//Insert a subscription into the """"Subscription"""" table
 public void AddSubscription(String str, int ID)
 {
// Parse the message string and get the fields
StringTokenizer tokens = new StringTokenizer( str, """"|"""");
String Messag


//DeleteSubscription from the """"Subscription"""" table
 public void DeleteSubscription(String str, int ID)
 {
// Parse the message string and get the fields
StringTokenizer tokens = new StringTokenizer( str, """"|"""");
String Messag //Speculate method will receive a string from the Speculative GUI
 // tool and parse it using CallBack class to identify the
 // performance models


 public void speculate(String str)
 {
System. out. println(""""Speculate"""");
CallBack


public void impactReport(String str)
 {
CallBack cb = new CallBack();
cb. parseImpactReport( str);
 }// end impactReport()""
",Code,
57,"57	""Event Notifier
// Variables to process the requirement
 private String requirement No;//Requirement No.
 private String ProjName; //Project name
 private String ModPath;//Modular path
 private String requirement Text;/


 public EventNotifier(String rno, String proj, String mod, String rtext,String eID, String em, String eventType)
 {
requirement No = rno;//Requirement number
ProjName = proj;// project name
ModPath = mo

// finds the subscribers for this requirement
 public void IdentifySubscribers()
 {
String mSQL;
// Create an SQL statement that will limit the selection as much as possible
// If a subscription is to a specific requirement - check for requi


//Reads the result from IdentifySubscribers method selection
 // and adds each result into ActualSubscribers Vector.
 void ProcessResultSet()
 {

String sName, sReqno, sModule, sKey1, sKey2;
try
{
 System. o

 // Send messages to all subscribers listed in ActualSubscriber Vector
// Possible that a sort routine can be added later so that all notification to
// the same subscribermanager can be batched.This is not implemented yet.

 public void Dispatch


 public String getErrorMessage()
 {
 return errMsg;
 }


 public boolean Contains(String ContextString, String SearchString)
 {
int cLen = ContextString. length();
int sLen = SearchString. length();
if (SearchString. length() == 0)
 return false;

for ( int i = 0""
",Code,
58,"58	""Subscribed Model

private String SubscriberName;
private String SubscriberReqno;
private String SubscriberModule;
private String SubscriberKeyword1;
private String SubscriberKeyword2;

public SubscribedModel(String sn, String sr, String sm, String sk1, String sk2)
{
SubscriberName = sn;
SubscriberReqno = sr;
SubscriberModule = sm;
SubscriberKeyword1 = sk1;
SubscriberKeyword2 = s

public String GetSubscriberName() { return SubscriberName;}

public String GetSubscriberReqno() { return SubscriberReqno;}

public String GetSubscriberModule() { return SubscriberModule;}

public String GetSubscriberKeyword1() { return SubscriberKeyword1;}

public String GetSubscriberKeyword2() { return SubscriberKeyword2;}""
",Code,
59,"59	""Done /**
* The number of Worker object
* threads that are currently working
* on something.
*/
 private int _ activeThreads = 0;

 /**
* This boolean keeps track of if
* the very first thread has started
* or not. This prevents this objec /**
* This method can be called to block
* the current thread until the ThreadPool
* is done.
*/

 synchronized public void waitDone()
 {
try {
 while ( _ activeThreads>0 ) {
wait();
 }
} catch ( InterruptedException

/**
* Called to wait for the first thread to
* start. Once this method returns the
* process has begun.
*/
 synchronized public void waitBegin()
 {
try {
 while ( !_ started ) {
wait();
 }
} catch ( InterruptedException e


/**
* Called by a Worker object
* to indicate that it has begun
* working on a workload.
*/
 synchronized public void workerBegin()
 {
_ activeThreads++;
_ started = true;
notify();
 }


 /**
* Called by a Worker object to
* indicate that it has completed a
* workload.
*/
 synchronized public void workerEnd()
 {
_ activeThreads--;
notify();
 }


 /**
* Called to reset this object to
* its initial state.
*/
 synchronized public void reset()
 {
_ activeThreads = 0;
 }""
",Code,
60,"60	""Thread Pool

/**
* The threads in the pool.
*/
protected Thread threads[] = null;
/**
* The backlog of assignments, which are waiting
* for the thread pool.
*/
Collection assignments = new ArrayList(3);


/**
* A Done object that is /**
 * The constructor.
 *
 * @param sizeHow many threads in the thread pool.
 */
public ThreadPool( int size)
{
threads = new WorkerThread[ size];
for ( int i=0; i< threads. length; i++)
{
thr
/**
* Add a task to the thread pool. Any class
* which implements the Runnable interface
* may be assigned. When this task runs, its
* run method will be called.
*
* @param r An object that implements the Runnable interface
*/
 pub


 /**
* Get a new work assignment.
*
* @return A new assignment
*/
 public synchronized Runnable getAssignment()
 {
try {
 while ( ! assignments. iterator(). hasNext() )
wait();
 Runnable r = (Runnable) assignments.


 /**
* Called to block the current thread until
* the thread pool has no more work.
*/
 public void complete()
 {
done. waitBegin();
done. waitDone();
 } protected void finalize()
 {
done. reset();
for ( int i=0; i< threads. length; i++) {
 threads[ i]. interrupt();
 done. workerBegin();
 threads[ i]. destroy();
}
done. waitDone();
 }
}""
",Code,
61,"61	""Worker Thread

/**
* True if this thread is currently processing.
 */
public boolean busy;

/**
 * The thread pool that this object belongs to.
 */
public ThreadPool owner;


/**
 * The constructor.
 *
 * @param o the thread pool
 */
WorkerThread(ThreadPool o)
{
owner = o;
}


/**
 * Scan for and execute tasks.
 */
public void run()
{
Runnable target = null;

do
{
target = owner. getAssignment();
if ( target!=null)
{
 target. run();
 owner. done. worker""
",Code,
62,"62	""Call Back


private Hash table requirementDescTable = new Hash table();

 private Hash table constraintDescTable = new Hash table();

 private Hash table performanceModelTable = new Hash table();

 private PerformanceModel performance model= null


 public void parseSpeculateInformation(String str)
 {
System. out. println(""""Received String = """" + str);
Connection conn = null;
Statement stmt = null;
DriverDescription dd = null;
String eventType = null; //


public void identifyPerformanceModels()
 {
Connection conn = null;
ResultSet rs = null;
Statement stmt = null;
String subscriberName = null;
DriverDescription dd = null;
Enumeration subscriberTableEnumeration = nu


public void pullInformationFromDoors()
 {
String serverIP = """"140.192.37.150"""";
String[] attribute = { """"Value"""", """"Logic"""", """"Units"""", """"Attribute"""" };
String subscriberName = null;
Vector constraints = n


public void insertValuesInDataBase()
 {
Connection conn = null;
Statement stmt = null;
String subscriberName = null;
DriverDescription dd = null;
Vector driverVector = null;
ConstraintsDescription cd = null;



 public void createExecuteString()
 {

Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
StringBuffer sb = null;
String subscriberName = null;
DriverDescription dd = null;
Vector driverVector


public void parseImpactReport(String str)
 {

Connection conn = null;

Statement stmt = null;

Vector constraintsVector = null;
Vector driversVector = null;

ConstraintsDescription constraint = null;

int driverLoop""
",Code,
63,"63	""Doors Thread

static private int count = 0;
 private int taskNumber;
 protected Done done;
 ServerSocket theServer;
 private Connection conn;
 private Statement stmt;
 private ResultSet rs;


 DOORsThread(ServerSocket ss)
 {
 theServer = ss;
 count++;
 taskNumber = count;
 }


 public void run()
 {

 while( true)
 {
 try
 {
Socket client = theServer. accept();
BufferedReader input = new BufferedReader( new InputStreamReader( client. getInputStream()));
PrintWriter output = new P""
",Code,
64,"64	""DOORs Thread Pool

public final static int defaultPort = 2347;
 ServerSocket theServer;
 // static int numberOfThreads = 3;


 //@param argsNo arguments are used.
 public static void main(String args[])
 {
ThreadPool pool = new ThreadPool(1);
 int port = defaultPort;
 try
 {
 ServerSocket ss = new ServerSocket( port);
 for""
",Code,
65,"65	""About Dialog

public AboutDialog(JFrame parent, boolean modal) {
 super ( parent, modal);
 getContentPane (). setLayout ( new BorderLayout ());
 setTitle (""""About"""");
 setName ("""" aboutDialog"""");
 
 private JTextArea text;""
",Code,
66,"66	""Config Dialog

public ConfigDialog(Notification_Processing parent, boolean modal) {
super ( parent, modal);
 setTitle(""""Config Dialog Box"""");
 getContentPane (). setLayout ( new GridLayout(5,2));


private void closeDialog(WindowEvent evt) {
setVisible ( false);
dispose ();
}


// event listener for """"Ok"""" button
private void okButtonActionPerformed (ActionEvent evt) {
 if( UserName. getText(). equals("""""""") || DSN. getText(). equals("""""""") || EventServerIP. getText(). equa// event listener for """"Cancel"""" button


private void cancelButtonActionPerformed (ActionEvent evt) {
setVisible ( false);
dispose (); 
}

// configuration entries
private JLabel UserNameLabel; 
private JTextField UserName;
private JLabel DSN Label; 
private JTextField DSN;
private JLabel EventServerIP Label; 
private JTextField EventSe""
",Code,
67,"67	""Event Detail Dialog

private GridBagLayout grid bag;
private GridBagConstraints c;
// objects in top panel
private JPanel topPanel;
private JLabel modelLabel;
private JLabel typeLabel;
private JTextField modelField;
p


public EventDetailDialog(EventsProcessor parent, boolean modal,Notification_Event nEvt, boolean mode)
{

super ( parent, modal);
 setTitle(""""Event Details"""");
 getContentPane (). setLayout (private void closeDialog(WindowEvent evt)
{
setVisible ( false);
dispose ();
} // event listener for """"Ok/Update"""" button


private void okButtonActionPerformed (ActionEvent evt)
{
 if ( displayMode == true)
 {
// m_ parent.DeleteEvent( m_Evt. m_SubscriberName, m_


// event listener for """"Cancel"""" button
private void cancelButtonActionPerformed (ActionEvent evt)
{
setVisible ( false);
dispose ();
}


private void LeftListClicked(MouseEvent e){
 if (!LeftList. isSelectionEmpty()) {
 int index = LeftList. getSelectedIndex();
 Requirement requirement= (Requirement) m_Evt. m_LeftSide


private void RightListClicked(MouseEvent e){
 if (!RightList. isSelectionEmpty()) {
 int index = RightList. getSelectedIndex();
 Requirement requirement= (Requirement) m_Evt. m_RightS""
",Code,
68,"68	""Events Processor
// event list
 private JList eventList;
 private DefaultListModel listModel;
 private ArrayList events;

 // popup menu
 private JPopupMenu popup;
 // Subscriber name
 String m_SubscriberName;
 // list of requirements to be d

 public EventsProcessor(Notification_Processing parent, boolean modal, String SubsName)
 {
 setTitle(""""EventsProcessor"""");

addWindowListener( new WindowAdapter()
{


 public void windowClosing(WindowEve void exitApplication() {
m_ parent.UpdateDisplayList();
 this. setVisible( false);
 this. dispose();
}


// action for """" double click on Event List""""
 private void doubleClickEventList (MouseEvent evt)
 {
int index = eventList. getSelectedIndex();
if ( index != -1)
{
 try
 {
Notification


// action for """"Open First Record"""" in popup menu
 private void popupOpenActionPerformed (ActionEvent evt)
 {
if (! listModel. isEmpty())
{
 int index =0;
 try
 {
Notification_Event nEvt1 = (Notificati


/ action for """"View Current Record"""" in popup menu
 private void popupViewActionPerformed (ActionEvent evt)
 {
int index = eventList. getSelectedIndex();
if ( index != -1)
{
 try
 {
N

void DeleteEvent(String SubscriberName, String EventID)
 {
try
{
 int i, j=-1;
 for ( i=0; i< events. size(); i++)
 {
Notification_Event nEvt = (Notification_Event) events. get( i);
i


void DeleteRelatedEvents()
 {
while ( m_Deleterequirement List. size()!=0)
{
 Requirement requirement= (Requirement)( m_Deleterequirement List. get(0));

 m_Deleterequirement List. remove(0);



void AddSubscription(String SubscriberName, Requirement requirement )
 {
String SubscriberDependency = """"Requirements"""";
String Message = """"ADD_SUBSCRIPTION""""+""""|"""";
Message += m_UserName + """"|"""";
Message += Subscribervoid DeleteSubscription(String SubscriberName, Requirement requirement )
 {
String Message = """"REMOVE_SUBSCRIPTION""""+""""|"""";
Message += SubscriberName + """"|"""";
Message += requirement . m_RequirementID + """","""";
Message += req


void UpdateDisplayList()
 {
listModel. removeAllElements();
for ( int j=0; j< events. size(); j++)
{
 Notification_Event nEvt = (Notification_Event) events. get( j);
 String displayStri


 // Passes a CHECK_SUBSCRIPTION message to the eventserver and waits for a response
private boolean Check_Subscription(String ip,
 int PortNo,
 String SubscriberName,
 String Requirement // Takes an event string returned from the eventserver and
// extracts True or False response



private boolean Analyze_CheckSubscription(String str)
{
StringTokenizer tokens = new StringTokenizer( str,""""|"""");
String Messag""
",Code,
69,"69	""Notification Event

public String m_SubscriberName = """""""";
public String m_EventID = """""""";
public String m_Message type = """""""";
public String m_EventType = """""""";
public int m_NumberOfRequirements = 0;
public String m_EventTim

public Notification_Event()
{
 m_LeftSide = new ArrayList();
 m_RightSide = new ArrayList();
}


public Object clone() throws CloneNotSupportedException
 {
Notification_Event nEvt = (Notification_Event) super. clone();
 nEvt. m_LeftSide = new ArrayList();
 nEvt. m_RightSide = new ArrayLis


 public void ParseEvent(String TextLine)
 {
 StringTokenizer LineSt; // Tokenizer for the line
int i=0;
LineSt = new StringTokenizer(TextLine, """"|"""");
m_SubscriberName = LineSt. nextToken// Set the other members before calling this function


 public void ParseLeftAndRightLists(String LeftLine, String RightLine)
 {
m_LeftSide = new ArrayList();
 m_RightSide = new ArrayList();

if ( m_Eve

public void DisplayValues()
{
 System. out. println(""""\ r\ nValues of the event:\ r\ n"""");
 System. out. println("""" m_SubscriberName: """"+ m_SubscriberName);
 System. out. println("""" m_EventI""
",Code,
70,"70	""Notification Processing

// member variables for menu
 private JMenuBar menuBar;
 // subscriber list
 private JList SubscriberList;
 private DefaultListModel listModel;
 // popup menu
 private JPopupMenu popup;

 // database and eventserver information
 S

 public Notification_Processing()
 {
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);

addWindowListener( new WindowAdapter()
{
 public void windowClosing(WindowEvent evt)
 {
try


public static void main(String args[])
 {
try
{
 Notification_Processing mainFrame = new Notification_Processing();
 mainFrame. setSize(600, 400);
 mainFrame. setLocation(100, 100);
 mainFrame. void exitApplication()
{
try
{
int reply = JOptionPane. showConfirmDialog( this,
""""Do you really want to exit?"""",
""""No


// action for """"Open log database""""
 private void openMenuItemActionPerformed (ActionEvent evt)
 {
new ConfigDialog( this, true). show();
 if( m_DSN. equals("""""""") || m_EventServerIP. equals("""""""") || m_// action for """"Close log database""""



 private void saveMenuItemActionPerformed (ActionEvent evt)
 {
try
{
 m_ conn. close();
 m_DSN="""""""";
 m_EventServerIP="""""""";
 m_EventServerPort="""""""";


 // action for """" exit""""
 private void exitMenuItemActionPerformed (ActionEvent evt)
 {
exitApplication();
 }


 // action for """"Open Events"""" in popup menu
 private void popupOpenActionPerformed (ActionEvent evt)
 {
openEventsMenuItemActionPerformed( evt);
 }

 // action for """"Open Events""""
 private void openEventsMenuItemActionPerformed (ActionEvent evt)
 {
if (! listModel. isEmpty())
{
 int index = SubscriberList. getSelectedIndex();
 if ( index != -1)


 // action for """" double click on Subscriber List""""
 private void doubleClickSubscriberList (MouseEvent evt)
 {
if (! listModel. isEmpty())
{
 int index = SubscriberList. getSelectedIndex();
 if ( index != -1


// action for """"About""""
 private void aboutMenuItemActionPerformed (ActionEvent evt)
 {
new AboutDialog ( this, true). show();
 }


void UpdateDisplayList()
 {
listModel. removeAllElements();
 String mSQL = """"SELECT distinct SubscriberName FROM EventDetails"""";
try
{
 rs = stmt. executeQuery( mSQL);
 while ( rs. next())
 {
 ""
",Code,
71,"71	""Requirement

public String m_RequirementID ="""""""";
public String m_Project ="""""""";
public String m_ModulePath="""""""";
public String m_Content = """""""";
public String m_RegFlag = """"N"""";

public Requirement()
{
}

public Object clone() throws CloneNotSupportedException
 {
Requirement requirement= (Requirement) super. clone();
return requirement ;
 }


 public void ReadValues(String RequirementID, String Project, String ModulePath, String Content, String RegFlag)
 {
this. m_RequirementID = RequirementID;
this. m_Project = Project;
this. m_ModulePath

public void ParseRequirement(String TextLine)
 {
 StringTokenizer LineSt;
LineSt = new StringTokenizer(TextLine, """","""");
m_RequirementID=LineSt. nextToken();
m_Project=LineSt. ""
",Code,
72,"72	""Balance
/**
 * Symbol represents what will be placed on the stack.
 */
private static class Symbol
{
public chartoken;
public int theLine;

public Symbol( char tok, int line )
{
token = /**
 * Constructor.
 * @param inStream the stream containing a program.
 */


public Balance( Reader inStream )
{
errors = 0;
tok = new Tokenizer( inStream );
}


/**
 * Print an error message for unbalanced symbols.
 * @return number of errors detected.
 */
public int checkBalance( )
{
char ch;
Symbol match = null;
Stack pendingTokens = new Stack( );
 private Tokenizer tok;
private int errors;


 /**
 * Print an error message if clSym does not match opSym.
 * Update errors.
 */
private void checkMatch( Symbol opSym, Symbol clSym )
{
if( opSym. token == '(' && clSym. token != ')' ||


 /**
 * main routine for balanced symbol checker.
 * Slightly different from text.
 * If no command line parameters, standard input is used.
 * Otherwise, files in command line are used.
 */
public static void main( St""
",Code,
73,"73	""Constraints

String id;
 String name;
 double value;
 String logic;


 Constraints(String id, String name, double value, String logic){
this. id = id;
this. name = name;
this. value = value;
this. logic = logic;
 }


 public String toString(){
 String temp;
 temp = """"ID = """" + id + """", Name = """" + name +"""", value = """" + value + """", Logic = """" + logic;
 return temp;
 }


 /**
* Returns the id.
* @return int
*/
 public String getId() {
return id;
 }


 /**
* Returns the logic.
* @return String
*/
 public String getLogic() {
return logic;
 }


 /**
* Returns the name.
* @return String
*/
 public String getName() {
return name;
 }

 /**
* Returns the value.
* @return double
*/
 public double getValue() {
return value;
 }


 /**
* Sets the id.
* @param id The id to set
*/
 public void setId(String id) {
this. id = id;
 }

 **
* Sets the logic.
* @param logic The logic to set
*/
 public void setLogic(String logic) {
this. logic = logic;
 }


 /**
* Sets the name.
* @param name The name to set
*/
 public void setName(String name) {
this. name = name;
 }


 /**
* Sets the value.
* @param value The value to set
*/
 public void setValue( double value) {
this. value = value;
 }""
",Code,
74,"74	""database


QueryConnection conn=null;
 ResultSet rs=null;
 Statement stmt=null;
 String mSQL="""""""";

 Vector structVector = new Vector(); // for holding the dummy variable objects used in executeStructure()
 Variable v;// create this object and


 /**
 * Construct a connection object.
 * @param Returns an object of type Connection
 */
 public Connection getConnection()
 {
System. out. println("""" in get Connection"""");
Connection connect=null;
try
{
 Class. fo



 /**
* Returns GraphId as int
* @param graphName performance modelHandler calls this method with graphName
* as parameter, performance modelHandler parse the EventServer message and get the
* graphName
*/
 public int get


 /**
* Copy data from one set of columns to other in table Variable
* @param graphId is the id of graph for which you want to save the
* current state of variables
*/
 public void saveCurrentModel( int graphId)
 {
conn = this. getConnect


/**
* Injects new value into Variable table, using Data stored in
* Vector of Variable object
* @param graphId is the id of graph
* @param Vector var is the Vector that stores the Object of type Variable
*/
 public void injectVa

 /**
* this method will pick up the structure id from SPE Structure
* If DependentStructureId is 0 then select StructureID
* and invoke the executeStructure method on Selected
* StructureId
* Who Invokes this method: performance model // this method is about executing the structure
 // based on StructureId find all the data related to given StructureId
 // and using the equation in string format call the method equationParser.
 //I am passing Vector that has all the data abou
 public void solveStructure( int StructureId, Vector vr)
 {
System. out. println(""""Inside solveStructure()&&&&&&&&&&&&&&&&&&&&&&&"""");
Connection conn1 = this. getConnection();
System. out. println("""" in solveStru


public void solveStructureEquation()
 {
System. out. println(""""Inside solveStructureEquation()%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"""");
//Based on that result find out the equation and replace the name by its value
System


public void getTrackVariableName()
 {
System. out. println(""""Inside getTrackVariableName()$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"""");
//This will get the variable name from SPE Graph and find the same name in variable
// and inse


public void setCalculatedValues()
 {
System. out. println(""""Inside setCalculatedValues()>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"""");
// and at matching location put the calculated values
System. out. println("""" enter calcValue // this method creates the token for each variable name in the string
 // and store that variable into vector
 // it also creates the vector called varValues
 // varValues has values of each variable stored in varName
 //So equation has variable n


 public Vector getImpactReport()
 {
//This SPE Graph works on the assumption that each model tracks
// the effect of changes on one variable
Vector report = new Vector();
report. add( trackVariableName);
report. add(Stri""
",Code,
75,"75	""Driver

String id;
 double valueFrom;
 double valueTo;
 String name; Driver(String id, double valueFrom, double valueTo, String name)
 {
this. id = id;
this. valueFrom = valueFrom;
this. valueTo = valueTo;
this. name = name;
 }


 public String toString()
 {
String temp;
temp = """"ID = """" + id + """", valueFrom = """" + valueFrom + """", valueTo = """" + valueTo + """", Name = """" + name;
return temp;
 }

 /**
* Returns the id.
* @return int
*/
 public String getId()
 {
return id;
 }


 /**
* Returns the name.
* @return String
*/
 public String getName()
 {
return name;
 }


 /**
* Returns the value.
* @return double
*/
 public double getValueFrom()
 {
return valueFrom;
 }


 public double getValueTo()
 {
return valueTo;
 }


 /**
* Sets the id.
* @param id The id to set
*/
 public void setId(String id)
 {
this. id = id;
 }


 **
* Sets the name.
* @param name The name to set
*/
 public void setName(String name)
 {
this. name = name;
 }


 **
* Sets the value.
* @param value The value to set
*/
 public void setValueFrom( double value)
 {
this. valueFrom = valueFrom;
 }


 public void setValueTo( double value)
 {
this. valueTo = valueTo;
 }""
",Code,
76,"76	""Evaluator

private static final int EOL = 0;
private static final int VALUE = 1;
private static final int OPAREN= 2;
private static final int CPAREN= 3;
private static final int EXP = 4;
private static final int MULT=


private static class Precedence
{
public int inputSymbol; // refers to the precedence level of operator
public int topOfStack; // stores the operator in the form of integer

public Precedence( int inSymbol, int // PrecTable matches order of Token enumeration
private static Precedence [ ] precTable = new Precedence[ ]
{

new Precedence( 0, -1 ),// EOL
new Precedence( 0,0 ),// VALUE
new Precedence( 100


private static class Token
{
public Token( ) { this( EOL ); }
public Token( int t ) { this( t, 0 ); }
public Token( int t, double v ) {
 System. out. println("""" INSIDE Token.Token()"""");
 private static class EvalTokenizer {


public EvalTokenizer( StringTokenizer is ) {
 System. out. println(""""INSIDE EvalTokenizer"""");
 str = is;
}

/**
 * Find the next token, skipping blanks, and return it.
 * For VALUE token, place the processed value in currentValue.
 * Print error message if input is unrecognized.
 */
public Token getToken

/**
 * Construct an evaluator object.
 * @param s the string containing the expression.
 */
public Evaluator( String s ) {
opStack = new Stack( );
postfixStack = new Stack( );
str = new StringTokeni // The only publicly visible routine

/**
 * Public routine that performs the evaluation.
 * Examine thepostfix machine to see if a single result is
 * left and if so, return it; otherwise print error.
 * @return the result.
private Stack opStack; // Operator stack for conversion
private Stack postfixStack;// Stack for postfix machine that stores the numbers could be values or result
private StringTokenizer str; // StringTokenizer stream, conte


/**
 * Internal method that hides type-casting.
 * Changed the method to support double
 */
private double postFixTopAndPop( ) {
 System. out. println(""""INSIDE postFixTopAndPop method"""");
 System


 /**
 * Another internal method that hides type-casting.
 */
private int opStackTop( ) {
return ( (Integer) ( opStack. peek( ) ) ). intValue( );
}


/**
 * After a token is read, use operator precedence parsing
 * approach to process it; missing opening parentheses
 * are detected here.
 */
private void processToken( Token lastToken ) {
System. out. printl


/*
 * topAndPop the postfix machine stack; return the result.
 * If the stack is empty, print an error message.
 */
private double getTop( ) { // change to support double
 System. out. println(""""INSIDE GET TOP


 /**
 * Internal routine to compute x^ n.
 */
private static double pow( double x, double n ) {
 System. out. println(""""INSIDE pow"""");
if( x == 0 ) {
 if( n == 0 ){
System. out.


/**
 * Process an operator by taking two items off the postfix
 * stack, applying the operator, and pushing the result.
 * Print error if missing closing parenthesis or division by 0.
 */
private void binaryOp( int topOp/**
 * Simple main to exercise Evaluator class.
 */



public static void main( String [ ] args ) {
String str;
BufferedReader in = new BufferedReader( new InputStreamReader( System. in ) );
try {
 ""
",Code,
77,"77	""Model Driver

String msg="""""""";

public ModelDriver(String text)
 {
this. msg = text;
init();
 }


 public void init()
 {
System. out. println(""""MODEL DRIVER CLASS 1/10"""");
performance modelHandler pmh = new performance modelHandler( msg);
System. out. println(""""MODEL DRIVER CLASS 2/10"""");
 pmh. messageParser""
",Code,
78,"78	""Notification Event

public String m_SubscriberName = """""""";
public String m_EventID = """""""";
public String m_Message type = """""""";
public String m_EventType = """""""";
public int m_NumberOfRequirements = 0;
public String m_EventTim

// constructor
public Notification_Event()
{
 m_LeftSide = new ArrayList();
 m_RightSide = new ArrayList();
}

// end of class Notification_Event
public Object clone() throws CloneNotSupportedException
 {
// create new object with the same type
Notification_Event nEvt = (Notification_Event) super. clone();
 nEvt. m_LeftSide = new ArrayList();
 n


 public void ParseEvent(String TextLine)
 {
String msg = TextLine;
if( msg. startsWith(""""Re-execute"""") )
{
 ModelDriver md = new ModelDriver( msg );
 md. init();
//ToDo:
// divert all the calls fo


// Set the other members before calling this function
 public void ParseLeftAndRightLists(String LeftLine, String RightLine)
 {
m_LeftSide = new ArrayList();
 m_RightSide = new ArrayList();
if ( m_Eve //Comment Added by Amit Uchat



 //This method displays the contents of two array list to console
public void DisplayValues()
{
 System. out. println(""""\ r\ nValues of the event:\ r\ n"""");
 System. out. println("""" ""
",Code,
79,"79	""performance model Handler

String strES; // string received from eventserver
 String impactReport;// string to be send to eventServer

 String commandStr; // represent the command ex. execute, re - execute etc
 String eventId;// refers to the eventId
 String


 performance model Handler(String msg)
 {
this. strES = msg;
 }

 public void messageParser()
 {
System. out. println(""""INSIDE PARSER"""");
mainSto = new StringTokenizer( strES,""""|""""); // current ex will have 10 tokens in mainSto
tempStr1 = mainSto. nextToken();


//Re-execut
public String generateReport()
{
 System. out. println(""""INSIDE generateReport"""");
 mainSto = new StringTokenizer( strES,""""|""""); // current ex will have 10 tokens in mainSto
 /*
""""ImpactReport|1015818161020| int grId;


public int getId(){
 // get GraphId
 System. out. println(""""database start"""");
 int grId = database. getGraphId( modelName);
 return grId;
 }


 public void saveModel( int id)
 {
// save current model
database. saveCurrentModel( id);
 }


 public void insertData( int id){
// inject data into model
database. injectVariables( id, variable);
 }

 public void execute( int id){
// inject data into model
database. executeModel( id, variable);
 }""
",Code,
80,"80	""Requirement

public String m_RequirementID ="""""""";
public String m_Project ="""""""";
public String m_ModulePath="""""""";
public String m_Content = """""""";
public String m_RegFlag = """"N"""";


public Requirement() {// empty constructor

}

public Object clone() throws CloneNotSupportedException {
Requirement requirement= (Requirement) super. clone();
return requirement ; 
 }


 public void ReadValues(String RequirementID, String Project, String ModulePath, String Content, String RegFlag) {
this. m_RequirementID = RequirementID;
this. m_Project = Project;
this. m_ModulePath


public void ParseRequirement(String TextLine) {
 StringTokenizer LineSt;
LineSt = new StringTokenizer(TextLine, """","""");
m_RequirementID=LineSt. nextToken();
m_Project=Line""
",Code,
81,"81	""subscribermanager

Socket aSocket;
 int ID;
 String EventLog;

 Connection conn;
 ResultSet rs;
 Statement stmt;

 // constructor, this object will be created in the main method of these class
 SubscriberListener() { }

 // constructor, this object will be created in the main method of these class
 SubscriberListener(Socket socket, int ID, String ELog)
 {
 this. aSocket = socket;
this.ID = ID;
this.EventLog = ELog;
try
{


}
public void sendImpactReportToEventServer(String text)
 {
//String impactReport = text;
System. out. println(""""WOW IN SEND REPORT"""");
System. out. println(""""The IR = """"+ text);
String serverIP = """"140.


// run method will be execute from the main method when u say Thread. start() in main
 public void run()
 {
System. out. println(""""Inside Run method"""");
String str="""""""";
try
{



 // set up for reading the byte data in to characte // start of class from here
 public static void main(String[] args)
 {
// default port number
int port = 1705;
// the message coming from eventserver
String LogName = """"EventLog"""";
//LogName is the database name used to log t""
",Code,
82,"82	""Tokenizer


/**
 * Constructor.
 * @param inStream the stream containing a program.
 */
public Tokenizer( Reader inStream )
{
errors = 0;
ch = '\0';
currentLine = 1;
in = new PushbackReader


/**
 * Gets current line number.
 * @return current line number.
 */
public int getLineNumber( )
{
return currentLine;
}


/**
 * Gets error count.
 * @return error count.
 */
public int getErrorCount( )
{
return errors;
}


/**
 * Get the next opening or closing symbol.
 * Return false if end of file.
 * Skip past comments and character and string constants
 */
public char getNextOpenClose( )
{
while( nextChar( ) )
{



 /**
 * Return true if ch can be part of a Java identifier
 */
private static final boolean isIdChar( char ch )
{
return Character. isJavaIdentifierPart( ch );
}


/**
 * Return an identifier read from input stream
 * First character is already read into ch
 */
private String getRemainingString( )
{
String result = """""""" + ch;

for( ; nextChar( ); result += ch )



 /**
 * Return next identifier, skipping comments
 * string constants, and character constants.
 * Place identifier in currentIdNode. word and return false
 * only if end of stream is reached.
 */
public String getNe


/**
 * nextChar sets ch based on the next character in the input stream.
 * putBackChar puts the character back onto the stream.
 * It should only be used once after a nextChar.
 * Both routines adjust currentLine if necess
 private void putBackChar( )
{
if( ch == '\ n' )
currentLine--;
try
{ in. unread( ( int) ch ); }
catch( IO Exception e ) { }
}


/**
 * Precondition: We are about to process a comment; have already seen
 * comment-start token
 * Post condition: Stream will be set immediately after
 * comment-ending token
 */
private


/**
 * Precondition: We are about to process a quote; have already seen
 * beginning quote.
 * Post condition: Stream will be set immediately after
 * matching quote
 */

private void skip


/**
 * After the opening slash is seen deal with next character.
 * If it is a comment starter, process it; otherwise put back
 * the next character if it is not a new line.
 */
private void processSlash( )
{
ifpublic static final int SLASH_SLASH = 0;
public static final int SLASH_STAR= 1;
private PushbackReader in;// The input stream
private char ch;// Current character
private int currentLine;//""
",Code,
83,"83	""Variable

String id = """"""""; // requirement id ex WB10
 String type= """"""""; // type of requirement ex Driver or Constraints
 String name= """"""""; // requirement name which is same as variable name in graph
 double value= 0.0; // value of variable
 double speculat


 //General Constructor to initialize all the members
 Variable(String id, String type, String name, double value, double speculateValue, String logic, String project_ path)
 {
this. id = id;
this. type = type;
this.


//Constructor to Add driver related members
 Variable(String id, String type, String name, double value, double speculateValue)
 {
this. id = id;
this. type = type;
this. name = name;
this. value = value;
this


//Constructor to Add constraints related members
 Variable(String id, String type, String name, double value, String logic){
this. id = id;
this. type = type;
this. name = name;
this. value = value;
this. logic



public String toString()
 {
String temp;
temp = """"ID = """" + id + """", Type = """" + type + """", Name = """" + name +"""", value = """" + value +
 """", SpeculateValue = """" + speculateValue + """", Logic = """" + logic + """", Project_Path = """" + project_ path


 /**
* Returns the id.
* @return int
*/
 public String getId()
 {
return id;
 }


 /**
* Returns the logic.
* @return String
*/
 public String getLogic()
 {
return logic;
 }


 /**
* Returns the name.
* @return String
*/
 public String getName()
 {
return name;
 }


 /**
* Returns the value.
* @return double
*/
 public double getValue() {
return value;
 }


 /**
* Sets the id.
* @param id The id to set
*/
 public void setId(String id) {
this. id = id;
 }


 /**
* Sets the logic.
* @param logic The logic to set
*/
 public void setLogic(String logic) {
this. logic = logic;
 }


 /**
* Sets the name.
* @param name The name to set
*/
 public void setName(String name) {
this. name = name;
 }


 /**
* Sets the value.
* @param value The value to set
*/
 public void setValue( double value) {
this. value = value;
 }


 /**
* Returns the speculateValue.
* @return double
*/
 public double getSpeculateValue() {
return speculateValue;
 }


 /**
* Sets the speculateValue.
* @param speculateValue The speculateValue to set
*/
 public void setSpeculateValue( double speculateValue) {
this. speculateValue = speculateValue;
 }


 /**
* Returns the type.
* @return String
*/
 public String getType() {
return type;
 }


 /**
* Sets the type.
* @param type The type to set
*/
 public void setType(String type) {
this. type = type;
 }


 /**
* Returns the project_ path.
* @return String
*/
 public String getProject_ path() {
return project_ path;
 }


  /**
* Sets the project_ path.
* @param project_ path The project_ path to set
*/
 public void setProject_ path(String project_ path) {
this. project_ path = project_ path;
 }""
",Code,
84,"84	""White Board Execution Graph

//Driver data members
 double avgShapeSize_Original;
 double avgShapeSize_Speculate;
 // constraints data members
 double avgTextSize;
 double writeTime;
 double noShapes;
 double noTextItems;
 double bandWidth


 public WhiteBoardExecutionGraph(Vector driver, Vector constraints){
this. driver = driver;
this. constraints = constraints;
 }// end of constructor



 public String toString(){
 String result;
 result = """" avgShapeSize_Original = """" + avgShapeSize_Original +
"""",\ navgShapeSize_Speculate = """" + avgShapeSize_Speculate +
"""",\ navgTextSize = """" + avgTextSize


public void injectDrivers(){
System. out. println(""""\ t\ tINSIDE INJECT DRIVERs METHOD"""");
//To Do: Run for loop for more then one drivers
//To Do: have a case insensitive check for driver name and then populate the data member


public void injectConstraints(){
System. out. println(""""\ t\ tINSIDE INJECT CONSTRAINTs METHOD"""");
//To Do: have a case insensitive check for constraints name and then populate the data member
//System. out. println( const

public double timeToBroadcastShapeBefore(){
System. out. println(""""\ t\ t\ tINSIDE timeToBroadcastShapeBefore METHOD"""");
double targetResponse time_ temp = 0.00;
 for( int i=0; i< noShapes; i++


 public double timeToBroadcastShapeAfter(){
System. out. println(""""\ t\ t\ tINSIDE timeToBroadcastShapeAfter METHOD"""");
double targetResponse time_ temp = 0.00;
 for( int i=0; i< noShapes; i++){


 public double timeToBroadcastText(){
System. out. println(""""\ t\ t\ tINSIDE timeToBroadcastText METHOD"""");
double targetResponse time_ temp = 0.00;
 for( int i=0; i< noTextItems; i++){
 target


 public double writeTime(){
System. out. println(""""\ t\ t\ tINSIDE writeTime METHOD"""");
System. out. println(""""\ t\ t\ t\ tTotal time to write = """" + writeTime);
System. out. println(""""\ t\ t\ tLEAVING w


public double targetResponseTimeBefore(){
System. out. println(""""\ t\ tINSIDE targetResponseTimeBefore METHOD\ n"""");
targetResponse time = timeToBroadcastShapeBefore() +timeToBroadcastText()


public double targetResponseTimeAfter(){
System. out. println(""""\ t\ tINSIDE targetResponseTimeAfter METHOD\ n"""");
targetResponse time = timeToBroadcastShapeAfter() +
timeToBroadcastText() + w""
",Code,
85,"85	""Decompose Model


public DecomposeModel(EBT em)
{
super( em);
MinimumNoRects = 3;
 }


 // Construct Visual model for Merge Event
public void BuildEvent()
{
 ClearVectors();
AddEventRect(20,20,1);
AddEventRect(60,70,1);
AddEventRect(60,120,1);
AddEventRect



public StringBuffer GenerateEvent()
{
StringBuffer thisEvent = new StringBuffer();
StringBuffer temp = new StringBuffer();
int Count = -1;
thisEvent. append(""""Decompose|"""");
for ( int i = 0; i < EventShapes""
",Code,
86,"86	""EB Shape


private int x, y;
 private String requirement No;
 private String ProjectName, ModulePath;
private Color c;


public EBShape( int xpos, int ypos, Color col)
 {
x = xpos;
y = ypos;
c = col;
requirement No = """""""";
ProjectName = """""""";
ModulePath = """""""";
 }


 public void Updaterequirement Info(String rno, String pname, String mname)
 {
requirement No = rno. trim();
ProjectName = pname. trim();
ModulePath = mname. trim();
 }


 public boolean match( int mx, int my)
 {
return true;
 }


 public int GetX()
 {
return x;
 }


 public int GetY()
 {
return y;
 }

 public Color GetC()
{
return c;
 }

 public String GetReqno()
 {
return requirement No;
 }

 public String GetProject()
 {
return ProjectName;
 }


 public String GetModule()
 {
return ModulePath;
 }""
",Code,
87,"87	""EBT


private JSplitPane splitPane;
private JSplitPane splitPane2;
private Frame FrameParent;
private JPanel MenuPanel;
private TextModel WorkArea;
private EventModel VisualPanel;
private MergeModel M


public EBT(Frame f)
{
FrameParent = f;
CurrentEvent = -1;
this. serverIP =
 JOptionPane
. showInputDialog(""""Please Enter the IP Address of eventserver"""")
. trim();


 // Set up JList Selection wid
 public void getrequirement Text(EBShape sh)
{
WorkArea. showText( sh);
 }


 public boolean mouseDown( java. awt.Evente, int x, int y)
 {
 return true;
 }


 public boolean mouseUp( java. awt.Evente, int x, int y)
{
return true;
 }

 public void mouseClicked( java. awt. event.MouseEvente)
{
VisualPanel.Clicked( e. getX(), e. getY());
}


public void mouseExited( java. awt. event.MouseEvente){}


public void mousePressed( java. awt. event.MouseEvente){}

public void mouseReleased( java. awt. event.MouseEvente){}

public void mouseEntered( java. awt. event.MouseEvente){}

public void paint(Graphics g) {}

public void update(Graphics g) {}

 public JSplitPane getSplitPane()
{
return splitPane;
}


public void valueChanged(ListSelectionEvent e)
{
if ( e. getValueIsAdjusting())
return;
}

private class ValueReporter implements ListSelectionListener
{
public void valueChanged(ListSelectionEvent event)
{
 if (! event. getValueIsAdjusting())
 {
switch(EventList. getSelectedIndex())

public void RedrawAll(EBShape sh)
{
VisualPanel. drawModel( sh);
VisualPanel.CheckNotifyStatus();
}
public static void main(String s[])
{
JFrame mainframe = new JFrame(""""Trigger an Event Notification"""");

mainframe. addWindowListener( new WindowAdapter()
{
public void windowClosing(Wind""
",Code,
88,"88	""Event Model


protected Vector EventShapes = new Vector();
protected Vector EventLines = new Vector();
protected EB Shape ebs, ebs2;
protected EventLine mline;
protected Color ShapeColor = new Color (190,190,190);


 public EventModel(EBT e)
{
ebt = e;
CurrentEvent = -1;
NotifyButton = new JButton(""""Notify"""");
setLayout( null);
NotifyButton. setBounds(305,265,80,25);
MinimumNoRects = 1;
add


public void getIP Server( String serverIP)
 {
this. serverIP = serverIP;
 }


 public void ClearVectors()
{
EventShapes. removeAllElements();
EventLines. removeAllElements();
}


public void drawModel()
{
repaint();
}


public void drawModel(EBShape sh)
{
EventShapes. setElementAt( sh, ESCursor);
repaint();
}


private void ClearData()
{
for ( int i = 0; i < EventShapes. size(); i++)
{
ebs = (EBShape)EventShapes. elementAt( i);
ebs.Updaterequirement Info("""""""","""""""","""""""");
 }
}


public void Clicked ( int x, int y)
{
int Hit = 0;
for ( int i = 0; i < EventShapes. size(); i++)
{
 ebs = (EBShape)EventShapes. elementAt( i);
if (( x >= ebs.GetX() && ( x <= ebs


public void CheckNotifyStatus()
 {
//Check if Minimum Standards have been met.
int j = 0;
for ( j = 0; j < MinimumNoRects; j++)
{
ebs2 = (EBShape)EventShapes. elementAt( j);
 if (((((


 protected void BuildEvent(){}


 protected void AddLine( int t, int l, int r, int b)
{
EventLines. addElement( new EventLine( t, l, r, b));
}


protected void AddEventRect( int x, int y, int colorStatus)
{
if ( colorStatus == 1)
{
 EventShapes. addElement( new EBShape( x, y, new Color (100,100,100)));
 }
 else
 {
Even


public String getrequirement Text(String r, String p, String m)
{
return new String(""""requirementwill go here"""");
 }


 public StringBuffer GenerateEvent()
{
return new StringBuffer("""" """");
 }// end of GenerateEvent method


 protected void paintComponent(Graphics g)
{
super. paintComponent( g);
for ( int i = 0; i < EventShapes. size(); i++)
{
ebs = (EBShape)EventShapes. elementAt( i);
 g. setC""
",Code,
89,"89	""Event Line

protected int top, left, right, bottom;


public EventLine ( int t, int l, int r, int b)
{
top = t;
left = l;
right = r;
bottom = b;
}


public int GetT() { return top;}

public int GetL() { return left;}

public int GetR() { return right;}

public int GetB() { return bottom;}""
",Code,
90,"90	""Merge Model


public MergeModel(EBT em)
 {
super( em);
 MinimumNoRects = 3;
 }


 // Construct Visual model for Merge Event
public void BuildEvent()
{
 ClearVectors();
AddEventRect(90,220,1);
 AddEventRect(20,20,1);
AddEventRect(20,70,1);
AddEvent


public StringBuffer GenerateEvent()
{
StringBuffer thisEvent = new StringBuffer();
StringBuffer temp = new StringBuffer();
int MergeCount = -1;
thisEvent. append(""""Merge|"""");
for ( int i = 0; i < EventSha""
",Code,
91,"91	""Modify Model

public ModifyModel(EBT em)
{
super( em);
 }


 // Construct Visual model for Merge Event
public void BuildEvent()
{
 ClearVectors();
AddEventRect(60,80,1);
CurrentEvent = 4;
}


public StringBuffer GenerateEvent()
{
StringBuffer thisEvent = new StringBuffer();
thisEvent. append(""""Modify|0|"""");
thisEvent. append( new Date(). toString()+ """"|"""");
 ebs = (EBShape)EventShapes


 protected void paintComponent(Graphics g)
{
g. drawString(""""TESTING MODIFY"""",5,5);
super. paintComponent( g);
 }""
",Code,
92,"92	""New Model

public NewModel(EBT em)
{
super( em);
 }


 // Construct Visual model for Merge Event
public void BuildEvent()
{
ClearVectors();
AddEventRect(60,80,1);
AddArrow(35,97,59,97);
CurrentEvent = 0;
}


public StringBuffer GenerateEvent()
{
StringBuffer thisEvent = new StringBuffer();
thisEvent. append(""""New|0|"""");
thisEvent. append( new Date(). toString()+ """"|"""");
ebs = (EBShape)EventShapes. elem""
",Code,
93,"93	""Obsolete Model

public ObsoleteModel(EBT em)
{
super( em);
 }


// Construct Visual model for Merge Event
public void BuildEvent()
{
 ClearVectors();
AddEventRect(60,80,1);
AddLine(60,60,225,135);
AddLine(60,135,225,60);
CurrentEve


public StringBuffer GenerateEvent()
 {
StringBuffer thisEvent = new StringBuffer();
thisEvent. append(""""Obsolete|0|"""");
thisEvent. append( new Date(). toString()+""""|"""");
ebs = (EBShape)EventShapes. e""
",Code,
94,"94	""Refine Model

public RefineModel(EBT em)
{
super( em);
 }

 // Construct Visual model for Merge Event
public void BuildEvent()
{
 ClearVectors();
AddEventRect(60,80,1);
CurrentEvent = 3;
}

public StringBuffer GenerateEvent()
{
StringBuffer thisEvent = new StringBuffer();
thisEvent. append(""""Refine|0|"""");
thisEvent. append( new Date(). toString()+""""|"""");
ebs = (EBShape)EventShapes. el""
",Code,
95,"95	""Text Model

private int CurrentEvent;
private EBT ebt;
private JLabel lblrequirement No, lblProject, lblModulePath;
private JTextField txtrequirement No, txtProject, txtModulePath;
private boolean HideMsg;
p

public TextModel(EBT e)
{
 // System. out. println(""""Trying to create text box"""");
ebt = e;
CurrentEvent = -1;
// setForeground( new Color ( 255,255,255) );
 lblrequirement No = new JLabel(""""requirement


 public void showText(EBShape sh)
{
 // Hide message in bottom box.
 HideMsg = true;
 repaint();
lblProject. setVisible( true);
lblrequirement No. setVisible( true);
lblModulePath. set

public void HideText()
{
lblProject. setVisible( false);
lblrequirement No. setVisible( false);
lblModulePath. setVisible( false);
txtProject. setVisible( false);
txtrequirement No. setVisi

public void ShowInfo( int CE)
{
CurrentEvent = CE;
HideMsg = false;
HideText();
 repaint();
}

public void drawModel()
{
repaint();
}


protected void paintComponent(Graphics g)
{
 super. paintComponent( g);

if (HideMsg == true)
{
 g. drawString("""" """",20,25);
 g. drawString("""" """",20,40);
 g. drawString("""" """",20,55 ""
",Code,