rev: tip HaverOnCuis/haver/db/PlanE.pck.st -rw-r--r-- 85.9 KiB View raw Log this file
798a51da0a2c — Gerald Klix (speedy) SUM: Vertical button pane for world model morph. a day ago
                                                                                
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
'From Haver 5.0 [latest update: #4619] on 30 May 2021 at 11:25:30 pm'!
'Description Yet another try on some means of peristence.'!
!provides: 'PlanE' 1 35!
!requires: 'Cuis-Base' 50 4594 nil!
!requires: 'Transactions' 1 21 nil!
!requires: 'Collections-TwoAndEightByteArrays' 1 1 nil!
SystemOrganization addCategory: 'PlanE'!
SystemOrganization addCategory: 'PlanE-Records'!
SystemOrganization addCategory: 'PlanE-Proxies'!


!moduleCreation: PlanE!
Modules newEnvironment: #PlanE!

!interfacesOf: PlanE!
Modules environment: #PlanE ::
	interface: #SPI exporting: #(#ClassRecord #AbstractMetaRecord #CodePackageProxy #EnvironmentProxy #ModuleProxy #TransactionManager #LocalSymbolProxy #LargePositiveIntegerRecord #AbstractProxy #InternedSymbolRecord #AbstractAtomicRecord #WordArrayRecord #StringRecord #AbstractStatelessProxy #PlanEClassRecord #RootsRecord #UninternedSymbolRecord #AbstractInstanceRecord #AbstractSmallIntegerRecord #AbstractSetRecord #PlanE #PositiveSmallIntegerRecord #PersistentObject #BaseClassRecord #ByteArrayRecord #DoubleWordArrayRecord #ObjectRecord #FileStore #LargeNegativeIntegerRecord #Transaction #AbstractStringLike #StoreRecord #DictionaryRecord #AbstractRecord #AbstractLargeIntegerRecord #NegativeSmallIntegerRecord #DoubleByteArrayRecord #SmalltalkProxy #CompiledMethodProxy #SetRecord #AbstractClassRecord #AbstractAtomicCollectionRecord ) ::
	interface: #UTI exporting: #(#ClassRecord #AbstractMetaRecord #CodePackageProxy #EnvironmentProxy #ModuleProxy #TransactionManager #LocalSymbolProxy #LargePositiveIntegerRecord #AbstractProxy #InternedSymbolRecord #AbstractAtomicRecord #WordArrayRecord #StringRecord #AbstractStatelessProxy #PlanEClassRecord #RootsRecord #UninternedSymbolRecord #AbstractInstanceRecord #AbstractSmallIntegerRecord #AbstractSetRecord #PlanE #PositiveSmallIntegerRecord #PersistentObject #BaseClassRecord #ByteArrayRecord #DoubleWordArrayRecord #ObjectRecord #FileStore #LargeNegativeIntegerRecord #Transaction #AbstractStringLike #StoreRecord #DictionaryRecord #AbstractRecord #AbstractLargeIntegerRecord #NegativeSmallIntegerRecord #DoubleByteArrayRecord #SmalltalkProxy #CompiledMethodProxy #SetRecord #AbstractClassRecord #AbstractAtomicCollectionRecord ) ::
	interface: #API exporting: #(#PlanE )!

!importsOf: PlanE!
Modules environment: #PlanE :: 
	import: #(#Transaction #ObjectTracker #TransactionManager ) from: #SPI of: Modules>>#Transactions!

!classDefinition: (Modules>>#PlanE>>#Transaction) category: 'PlanE'!
(Modules>>#Transactions>>#Transaction) subclass: #Transaction
	instanceVariableNames: 'manager'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#Transaction) class category: 'PlanE'!
(Modules>>#PlanE>>#Transaction) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#TransactionManager) category: 'PlanE'!
(Modules>>#Transactions>>#TransactionManager) subclass: #TransactionManager
	instanceVariableNames: 'fileStore'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#TransactionManager) class category: 'PlanE'!
(Modules>>#PlanE>>#TransactionManager) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#FileStore) category: 'PlanE'!
Object subclass: #FileStore
	instanceVariableNames: 'stream positionsToObjects objectsToPositions proxies fixUps roots objectsToUpdate'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#FileStore) class category: 'PlanE'!
(Modules>>#PlanE>>#FileStore) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#PersistentObject) category: 'PlanE'!
Object subclass: #PersistentObject
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#PersistentObject) class category: 'PlanE'!
(Modules>>#PlanE>>#PersistentObject) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#PlanE) category: 'PlanE'!
Object subclass: #PlanE
	instanceVariableNames: 'fileStore transactionManager'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#PlanE) class category: 'PlanE'!
(Modules>>#PlanE>>#PlanE) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractRecord) category: 'PlanE-Records'!
Object subclass: #AbstractRecord
	instanceVariableNames: 'store position'
	classVariableNames: 'MagicNumbersToClasses'
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractRecord) class
	instanceVariableNames: 'magicWords'!

!classDefinition: (Modules>>#PlanE>>#AbstractClassRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractRecord) subclass: #AbstractClassRecord
	instanceVariableNames: 'className'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractClassRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractClassRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#BaseClassRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractClassRecord) subclass: #BaseClassRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#BaseClassRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#BaseClassRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#ClassRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractClassRecord) subclass: #ClassRecord
	instanceVariableNames: 'package environment'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#ClassRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#ClassRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#PlanEClassRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractClassRecord) subclass: #PlanEClassRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#PlanEClassRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#PlanEClassRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractInstanceRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractRecord) subclass: #AbstractInstanceRecord
	instanceVariableNames: 'object'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractInstanceRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractInstanceRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractAtomicRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractInstanceRecord) subclass: #AbstractAtomicRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractAtomicRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractAtomicCollectionRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicRecord) subclass: #AbstractAtomicCollectionRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractAtomicCollectionRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractLargeIntegerRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) subclass: #AbstractLargeIntegerRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractLargeIntegerRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractLargeIntegerRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#LargeNegativeIntegerRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractLargeIntegerRecord) subclass: #LargeNegativeIntegerRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#LargeNegativeIntegerRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#LargeNegativeIntegerRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#LargePositiveIntegerRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractLargeIntegerRecord) subclass: #LargePositiveIntegerRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#LargePositiveIntegerRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#LargePositiveIntegerRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractStringLike) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) subclass: #AbstractStringLike
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractStringLike) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractStringLike) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#InternedSymbolRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractStringLike) subclass: #InternedSymbolRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#InternedSymbolRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#InternedSymbolRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#StringRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractStringLike) subclass: #StringRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#StringRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#StringRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#UninternedSymbolRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractStringLike) subclass: #UninternedSymbolRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#UninternedSymbolRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#UninternedSymbolRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#ByteArrayRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) subclass: #ByteArrayRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#ByteArrayRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#ByteArrayRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#DoubleByteArrayRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) subclass: #DoubleByteArrayRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#DoubleByteArrayRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#DoubleByteArrayRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#DoubleWordArrayRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) subclass: #DoubleWordArrayRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#DoubleWordArrayRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#DoubleWordArrayRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#WordArrayRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) subclass: #WordArrayRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#WordArrayRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#WordArrayRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractSmallIntegerRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicRecord) subclass: #AbstractSmallIntegerRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractSmallIntegerRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractSmallIntegerRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#NegativeSmallIntegerRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractSmallIntegerRecord) subclass: #NegativeSmallIntegerRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#NegativeSmallIntegerRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#NegativeSmallIntegerRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#PositiveSmallIntegerRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractSmallIntegerRecord) subclass: #PositiveSmallIntegerRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#PositiveSmallIntegerRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#PositiveSmallIntegerRecord) class
	instanceVariableNames: ''!

!classDefinition: #FloatRecord category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractAtomicRecord) subclass: #FloatRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'!
!classDefinition: 'FloatRecord class' category: 'PlanE-Records'!
FloatRecord class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractSetRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractInstanceRecord) subclass: #AbstractSetRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractSetRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractSetRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#DictionaryRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractSetRecord) subclass: #DictionaryRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#DictionaryRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#DictionaryRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#SetRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractSetRecord) subclass: #SetRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#SetRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#SetRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#ObjectRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractInstanceRecord) subclass: #ObjectRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#ObjectRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#ObjectRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractMetaRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractRecord) subclass: #AbstractMetaRecord
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractMetaRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractMetaRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#RootsRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractMetaRecord) subclass: #RootsRecord
	instanceVariableNames: 'roots'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#RootsRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#RootsRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#StoreRecord) category: 'PlanE-Records'!
(Modules>>#PlanE>>#AbstractMetaRecord) subclass: #StoreRecord
	instanceVariableNames: 'storedMagicString storedVersion'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Records'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#StoreRecord) class category: 'PlanE-Records'!
(Modules>>#PlanE>>#StoreRecord) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractStatelessProxy) category: 'PlanE-Proxies'!
Object subclass: #AbstractStatelessProxy
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractStatelessProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractStatelessProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#AbstractProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractStatelessProxy) subclass: #AbstractProxy
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#AbstractProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#CodePackageProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractProxy) subclass: #CodePackageProxy
	instanceVariableNames: 'feature fullFileName'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#CodePackageProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#CodePackageProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#CompiledMethodProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractProxy) subclass: #CompiledMethodProxy
	instanceVariableNames: 'methodClass methodSelector'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#CompiledMethodProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#CompiledMethodProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#EnvironmentProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractProxy) subclass: #EnvironmentProxy
	instanceVariableNames: 'managerName environmentName'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#EnvironmentProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#EnvironmentProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#LocalSymbolProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractProxy) subclass: #LocalSymbolProxy
	instanceVariableNames: 'symbolString environment'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#LocalSymbolProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#LocalSymbolProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#ModuleProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractProxy) subclass: #ModuleProxy
	instanceVariableNames: 'moduleName package'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#ModuleProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#ModuleProxy) class
	instanceVariableNames: ''!

!classDefinition: (Modules>>#PlanE>>#SmalltalkProxy) category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#AbstractStatelessProxy) subclass: #SmalltalkProxy
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'PlanE-Proxies'
	inModule: #PlanE!
!classDefinition: (Modules>>#PlanE>>#SmalltalkProxy) class category: 'PlanE-Proxies'!
(Modules>>#PlanE>>#SmalltalkProxy) class
	instanceVariableNames: ''!


!(Modules>>#PlanE>>#Transaction) commentStamp: '<historical>' prior: 0!
I am the PlanE transaction.!

!(Modules>>#PlanE>>#TransactionManager) commentStamp: '<historical>' prior: 0!
I am the PlanE transaction manager.!

!(Modules>>#PlanE>>#FileStore) commentStamp: '<historical>' prior: 0!
I am a PlanE store, that stores everything into a file.!

!(Modules>>#PlanE>>#PersistentObject) commentStamp: '<historical>' prior: 0!
I am a super class for persistent objects.

I register automatically with my transaction manager.!

!(Modules>>#PlanE>>#PlanE) commentStamp: '<historical>' prior: 0!
I am PlanE's API.!

!(Modules>>#PlanE>>#AbstractRecord) commentStamp: '<historical>' prior: 0!
I am the abstract super class of a database record.!

!(Modules>>#PlanE>>#BaseClassRecord) commentStamp: '<historical>' prior: 0!
I am a record for a class in Cuis's base system.

I just have a class name, no package no environment.!

!(Modules>>#PlanE>>#ClassRecord) commentStamp: '<historical>' prior: 0!
I am a record for a class.!

!(Modules>>#PlanE>>#AbstractInstanceRecord) commentStamp: '<historical>' prior: 0!
I am the asbtract super class for all instance records.!

!(Modules>>#PlanE>>#AbstractAtomicRecord) commentStamp: '<historical>' prior: 0!
I a the abstract super class for all types that are treated as atomic.!

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) commentStamp: '<historical>' prior: 0!
I am the abstract superclass for all atomic collections.!

!(Modules>>#PlanE>>#InternedSymbolRecord) commentStamp: '<historical>' prior: 0!
I am the record for interned symbols.!

!(Modules>>#PlanE>>#StringRecord) commentStamp: '<historical>' prior: 0!
I am the record for strings.!

!(Modules>>#PlanE>>#AbstractSetRecord) commentStamp: '<historical>' prior: 0!
I am the abstract super class for all set records.
I provide a space optimized representation
and I avoid rehashing the object after a load.!

!(Modules>>#PlanE>>#SetRecord) commentStamp: '<historical>' prior: 0!
I am the record for sets.

Persisting sets works with the standard mechanism,
but needs a rehash. Rehashing aSets creats a copy
by adding all elements to an empty set.

We can do the same in one go.!

!(Modules>>#PlanE>>#ObjectRecord) commentStamp: '<historical>' prior: 0!
I am the record for ordinary fixed instance size Smalltalk object!

!(Modules>>#PlanE>>#AbstractMetaRecord) commentStamp: '<historical>' prior: 0!
I am the abstract super class of all record objects that manage the database state.!

!(Modules>>#PlanE>>#RootsRecord) commentStamp: '<historical>' prior: 0!
I hold the database's root objects.

My number of root objects -- my size -- has utterly pragmatic reasons.
The pseudo positions for nil, true and false should be used by something sensible.!

!(Modules>>#PlanE>>#StoreRecord) commentStamp: '<historical>' prior: 0!
I am the record that describes the store itself.!

!(Modules>>#PlanE>>#AbstractProxy) commentStamp: '<historical>' prior: 0!
I am the abstract superclass of all classes with instances that  are not directly stored in the database.!

!(Modules>>#PlanE>>#CodePackageProxy) commentStamp: '<historical>' prior: 0!
I am the proxy for a code package.!

!(Modules>>#PlanE>>#CompiledMethodProxy) commentStamp: '<historical>' prior: 0!
I am the proxy for a compiled method.!

!(Modules>>#PlanE>>#EnvironmentProxy) commentStamp: '<historical>' prior: 0!
I am a proxy for an environment.!

!(Modules>>#PlanE>>#LocalSymbolProxy) commentStamp: '<historical>' prior: 0!
I am the proxy for symbols with an environment.!

!(Modules>>#PlanE>>#ModuleProxy) commentStamp: '<historical>' prior: 0!
I am the proxy for a module, I also store the package.!

!(Modules>>#PlanE>>#SmalltalkProxy) commentStamp: '<historical>' prior: 0!
I am the proxy for Smalltalk.!

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'printing' stamp: 'KLG 5/14/2021 22:18:18'!
printOn: aStream
	"Answer a decent string representation."

	aStream 	
		nextPutAll: self class name;
		nextPut: $(.
	storedMagicString
		ifNil: [
			aStream nextPutAll: 
				(storedVersion 
					ifNil: [ 'New' ]
					ifNotNil: [ 'Inconsistent ' ]) ]
		ifNotNil: [ 
			aStream nextPutAll:
				(self checkHeader
					ifNil: [ 'OK' ]
					ifNotNil: [ :errorString | errorString ] ) ].
	aStream nextPut: $)! !

!(Modules>>#PlanE>>#Transaction) methodsFor: 'accessing' stamp: 'KLG 5/21/2021 17:01:06'!
manager
	"Answer the value of manager"

	self flagHaver: 'XXX: This might have concurrency issues!!'.
	^ manager! !

!(Modules>>#PlanE>>#Transaction) methodsFor: 'accessing' stamp: 'KLG 5/21/2021 16:50:26'!
manager: anObject
	"Set the value of manager"

	manager _ anObject! !

!(Modules>>#PlanE>>#Transaction) methodsFor: 'accessing' stamp: 'KLG 5/21/2021 17:00:25'!
managerNoLocking
	"Answer the value of manager"

	^ manager! !

!(Modules>>#PlanE>>#Transaction) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 16:51:23'!
forManager: aTransactionManger
	"Create the transaction for aTransactionManager."

	^ self new manager: aTransactionManger! !

!(Modules>>#PlanE>>#TransactionManager) methodsFor: 'initialization' stamp: 'KLG 5/21/2021 14:35:24'!
fileStore: aFileStore
	"Set the fileStore."

	self assert: fileStore isNil.
	fileStore _ aFileStore ! !

!(Modules>>#PlanE>>#TransactionManager) methodsFor: 'transactions - private' stamp: 'KLG 5/21/2021 15:34:03'!
committed: aTransaction withInvolvedObjects: someInvolvedObjects 
	"aTransaction was commited with its involved objects."

	someInvolvedObjects do: [ :invovedObject |
		fileStore
			markObjectForUpdate: invovedObject;
			dumpObject: invovedObject ].
	super 	committed: aTransaction withInvolvedObjects: someInvolvedObjects.! !

!(Modules>>#PlanE>>#TransactionManager) methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 17:02:24'!
newTransaction

	^ self transactionClass forManager: self! !

!(Modules>>#PlanE>>#TransactionManager) class methodsFor: 'class initialization' stamp: 'KLG 5/21/2021 16:05:21'!
initialize
	"Defined here, becuase it's called when the package is installed."

	super initialize ! !

!(Modules>>#PlanE>>#TransactionManager) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 14:36:29'!
forFileStore: aFileStore
	"Answer a new instance of mine for aFileStore."

	^ self new fileStore: aFileStore! !

!(Modules>>#PlanE>>#TransactionManager) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 16:50:06'!
newTransaction

	^ self transactionClass forManager: self! !

!(Modules>>#PlanE>>#TransactionManager) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 10:43:47'!
transactionClass
	"Answer the transaction class for me."

	^ Transaction ! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'testing' stamp: 'KLG 5/13/2021 19:37:49'!
isOpen
	"Answer true if the store is open."

	^ stream notNil! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'opening' stamp: 'KLG 5/20/2021 10:53:00'!
openOn: aFilename
	"Open the store on aFilename"

	| fileEntry didExist |
	positionsToObjects _ WeakValueDictionary new.
	objectsToPositions _ WeakIdentityKeyDictionary new.
	proxies _ WeakIdentityKeyDictionary new.
	self resetFixups.
	self resetObjectsToUpdate.
	fileEntry _ aFilename isString 
		ifTrue: [ aFilename asFileEntry ]
		ifFalse: [ 	aFilename ].
	didExist _ fileEntry exists.
	stream _ fileEntry appendStream.
	stream useBytes.
	didExist
		ifTrue: [ self checkHeader ]
		ifFalse: [ 
			self dumpHeader.
			self dumpRoots ]
! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'opening' stamp: 'KLG 5/15/2021 20:45:10'!
resetFixups

	^ fixUps _ IdentityDictionary new! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'opening' stamp: 'KLG 5/20/2021 10:52:36'!
resetObjectsToUpdate

	^ objectsToUpdate _ WeakIdentitySet new! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'closing' stamp: 'KLG 5/20/2021 10:53:18'!
close
	"Close the store."

	self assert: self isOpen.
	stream close.
	stream _ positionsToObjects _ objectsToPositions _ fixUps _ objectsToUpdate _ nil! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'finalization' stamp: 'KLG 5/13/2021 19:35:47'!
finalize
	"Finalize the store."

	self isOpen ifTrue: [ self close ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/21/2021 19:48:28'!
fixStreamPosition
	"Fix the stream position so that is a multiple of 16."

	| position |
	(position _ stream position) < 48 ::
		ifTrue: [ stream position: 48 ]
		ifFalse: [
			position noMask: 2r1111 :: ifFalse: [
				stream position: (position bitClear: 2r1111)  + 16 ] ]	! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/15/2021 22:31:39'!
recordFixUpFor: anObject andOffset: anOffset 
	"Record the fact that we need to write anObject's position to the current stream position once we know it."

	fixUps at: anObject ifAbsentPut: [
		OrderedCollection new ] :: add: stream position + (anOffset << 3)! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/19/2021 10:45:35'!
recordPosition
	"Answer the position to store in records."
	
	^ stream position >> 4! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/15/2021 17:58:31'!
recordPosition: anInteger
	"Set the stream to a position stored in records.."
	
	^ stream position: anInteger << 4! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/15/2021 22:19:04'!
recordPositionOf: anObject
	"Answer the record position of a object.
	
	Answer the position of anObject if known.
	If unknown answer 0 and remember the object and the stream position for later fixup."

	^ self recordPositionOf: anObject andOffset: 0! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/21/2021 22:36:43'!
recordPositionOf: anObject andOffset: anOffset
	"Answer the record position of a object.
	
	Answer the position of anObject if known.
	If unknown answer 0 and remember the object and the stream position for later fixup."

	"D: Transcript cr; show: anObject; show:' recorded '; show: (positions at: anObject ifAbsent: [ 0 ])."
	self pseudoPositionFor: anObject :: ifNotNil: [ :position | ^ position ].
	^ objectsToPositions at: anObject ifAbsent: [
		self recordFixUpFor: anObject andOffset: anOffset.
		`1 << 63 - 1` ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/20/2021 10:47:13'!
registerObject: anObject at: aPosition
	"Register a newly loaded object at a position.
	
	This will terminate the recursive loading of (indirectly) self referencing object.s."

	positionsToObjects at: aPosition put: anObject.
	objectsToPositions at: anObject put: aPosition! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/15/2021 17:55:02'!
setToEnd
	"Set the stream to its end. 
	
	Always use a multiple of 16."

	stream setToEnd.
	self fixStreamPosition 
	! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'stream position' stamp: 'KLG 5/15/2021 18:08:53'!
streamPosition: aPosition
	"Set the stream to aPosition
	
	Always use a multiple of 16."

	stream position: aPosition.
	self fixStreamPosition 
	! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'pseudo positions' stamp: 'KLG 5/16/2021 21:07:37'!
objectAtPseudoPosition: aPosition ifNot: aBlock
	"Answer the smalltalk object at a pseudo position.
	if not evaluate aBlock."
	
	^ aPosition
		caseOf: {
			[ 2 ]  -> [ nil ].
			[ 3 ] -> [ true ].
			[ 4 ] -> [ false ] }
		otherwise: [ aBlock value ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'pseudo positions' stamp: 'KLG 5/16/2021 21:08:11'!
pseudoPositionFor: anObject
	"Answer the pseudo position for nil, true and false.
	
	If anObject is not a builtin constant answer nil."

	^ anObject
		caseOf: {
			[ nil ] -> [ 2 ].
			[ true ] -> [ 3 ].
			[ false ] -> [ 4 ] }
		otherwise: [ nil ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/20/2021 15:47:56'!
basicDumpObject: anObject
	"Dump a  object, do nothing if we already know the position of anObject.
	Answer the object position."
	
	self pseudoPositionFor: anObject :: ifNotNil: [ :pseudoPosition | ^ pseudoPosition ].
	objectsToUpdate includes: anObject :: ifTrue: [
		objectsToPositions
			at: anObject
			ifPresent: [ :position | | oldPosition newPosition |
				oldPosition _ position.
				objectsToUpdate remove: anObject.
				newPosition _ self rawDumpObject: anObject.
				self updateObjectAtPosition: oldPosition withNewPosition: newPosition.
				^ newPosition ] ].
	^ objectsToPositions
		at: anObject
		ifPresent: [ :position | position ]
		ifAbsent: [ self rawDumpObject: anObject ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 10:55:02'!
dumpAllMissingObjects
	"Dump all missing objects."

	| positionArray |
	positionArray _ DoubleWordArray new: 1.
	[ fixUps isEmpty ] whileFalse: [ | currentFixUps |
		currentFixUps _ fixUps. ": No copy needed, we create a new dictionary."
		self resetFixups.
		currentFixUps keysAndValuesDo: [ :object :positionsToFix | 
			positionArray at: 1 put: (self basicDumpObject: object).
			positionsToFix do: [ :positionToFix |
				"D: Transcript
					newLine;
					show: 'Fixup: ';
					show: object;
					nextPut:$(;
					show: object class;
					nextPut: $);
					show: ': ';
					show: positionToFix;
					show: ' <= ';
					show: (positionArray at: 1 :: << 4)."
				"These are unaligned!!"
				"O: self streamPosition: positionToFix."
				stream position: positionToFix.
				stream nextPutAll: positionArray ] ] ]
! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 20:41:35'!
dumpObject: anObject
	"Dump a  object, do nothing if we already know the position of anObject.
	Perform any fixups necessary.."
	
	| answer |
	answer _ self basicDumpObject: anObject.
	self dumpAllMissingObjects.
	^ answer
! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 17:53:26'!
dumpRoots
	"Dump the roots object."

	self recordPosition: self rootsPosition.
	roots ifNil: [
		roots _ RootsRecord forStore: self position: self recordPosition ] ::
		dumpOn: stream! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/20/2021 11:11:50'!
loadObjectAt: aPosition
	"Load the object at a position. 
	Answer a chached copy if possible."
	
	^ self objectAtPseudoPosition: aPosition ifNot: [
		positionsToObjects at: aPosition 
			ifPresent: [ :object | 
				object ifNil: [ "That's the lost weak reference case:"
					^ self rawLoadObjectAt: aPosition ].
				object principalForPlanE ]
			ifAbsent: [ self rawLoadObjectAt: aPosition ] ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/20/2021 10:56:10'!
markObjectForUpdate: anObject
	"Mark an object for update.
	
	It will be written to a new position and its old position
	will be updated a dump operation touches it.	"

	objectsToUpdate add: anObject! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 19:51:31'!
rawDumpObject: anObject
	"Dump a new object, do not write any broken hearts.
	Answer the object position."

	| answer record |
	self setToEnd.
	answer _ self recordPosition.
	self registerObject: anObject at: answer.
	record _ anObject recordForPlanE: self.
	record dumpOn: stream.
	"D: Transcript
		newLine;
		show: anObject;
		nextPut:$(;
		show: anObject class;
		nextPut: $);
		show: ' @ ';
		show: answer << 4;
		show: ' ... ';
		show: stream position."
	^ answer ! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/20/2021 10:42:44'!
rawLoadObjectAt: aPosition
	"Load the object at a position."

	| record |
	self recordPosition: aPosition.
	record _ AbstractRecord loadFrom: stream forStore: self andPosition: self recordPosition.
	^  record smalltalkObject! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 12:11:32'!
root
	"Answer the first root object.."

	^ self rootAt: 1! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 12:11:16'!
root: anObject
	"Set the first root object."

	^ self rootAt: 1 put: anObject! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 12:09:00'!
rootAt: anIndex
	"Answer the database root at an index."

	^ self roots at: anIndex! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 12:41:01'!
rootAt: anIndex put: anObject
	"Put a root object at anIndex."

	| answer |
	answer _ self roots at: anIndex put: anObject.
	self 
		dumpRoots;
		dumpAllMissingObjects.
	^ answer ! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 17:33:14'!
roots
	"Answer the roots object."

	^ roots ifNil: [ roots _ self rawLoadObjectAt: self rootsPosition ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 19:37:32'!
rootsPosition

	^ 3! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'persistence' stamp: 'KLG 5/20/2021 15:45:59'!
updateObjectAtPosition: anOldPosition withNewPosition: aNewPosition
	"Update the forwarder of the record at anOldPosition with aNewPosition."
	
	self recordPosition: anOldPosition.
	stream
		skip: 2;
		nextPutAll: (DoubleWordArray with: aNewPosition)
	! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:45:55'!
byteArrayRecordFor: anArray
	"Answer a byte array record for anArray."

	^ ByteArrayRecord forStore: self position: self recordPosition andObject: anArray! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:46:30'!
classRecordFor: aClass
	"Answer a class record for a class."

	^ aClass package isNil and: [ aClass name environment isNil ] :: 
		ifTrue: [ BaseClassRecord ]
		ifFalse: [ ClassRecord ] ::
			forStore: self position: self recordPosition andObject: aClass! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:46:39'!
classRecordForPlanEClass:  aPlanEClass
	"Answer a record for aPlanEClass."
	
	^ PlanEClassRecord
		forStore: self
		position: self recordPosition andObject: aPlanEClass! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/17/2021 14:55:34'!
codePackageRecord: aCodePackage
	"Answer a record for aCodePackage."

	^ self objectRecordFor:  
		(self proxyForObject: aCodePackage ifAbsentPut: [
			CodePackageProxy			forObject: aCodePackage ] )! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/22/2021 17:54:16'!
compiledMethodRecord: aCompiledMethod
	"Answer a record for aCompiledMethod."

	^ self objectRecordFor:  
		(self proxyForObject: aCompiledMethod ifAbsentPut: [
			CompiledMethodProxy forObject: aCompiledMethod ] )! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:46:55'!
dictionaryRecordFor: aDictionary
	"Answer a dictionary record for aDictionary."

	^ DictionaryRecord forStore: self position: self recordPosition andObject: aDictionary ! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:47:04'!
doubleByteArrayRecordFor: anArray
	"Answer a double byte array record for anArray."

	^ DoubleByteArrayRecord forStore: self position: self recordPosition andObject: anArray! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:47:13'!
doubleWordArrayRecordFor: anArray
	"Answer a double word array record for anArray."

	^ DoubleWordArrayRecord forStore: self position: self recordPosition andObject: anArray! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/17/2021 22:21:56'!
environmentRecord: aModule
	"Answer a record for aModule."

	^ self objectRecordFor:  
		(self proxyForObject: aModule ifAbsentPut: [
			EnvironmentProxy 	forObject: aModule ] )! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:47:26'!
floatRecordFor: aFloat
	"Answer a float record for aFloat."

	^ FloatRecord forStore: self position: self recordPosition andObject: aFloat! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:47:48'!
largeNegativeIntegerRecordFor: anInteger
	"Answer a record for a large negative integer."

	^ LargeNegativeIntegerRecord forStore: self position: self recordPosition andObject: anInteger! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:47:58'!
largePositiveIntegerRecordFor: anInteger
	"Answer a record for a large positive integer."

	^ LargePositiveIntegerRecord forStore: self position: self recordPosition andObject: anInteger! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/18/2021 22:26:49'!
moduleRecordFor: anEnvironment
	"Answer a record for aModule."

	^ self objectRecordFor:  
		(self proxyForObject: anEnvironment ifAbsentPut: [
			ModuleProxy forObject: anEnvironment ] )! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:48:11'!
objectRecordFor: anObject
	"Answer an object record for anObject."

	^ ObjectRecord forStore: self position: self recordPosition andObject: anObject ! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:48:21'!
setRecordFor: aSet
	"Answer a set record for aSet."

	^ SetRecord forStore: self position: self recordPosition andObject: aSet! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:48:30'!
smallIntegerRecordFor: anInteger
	"Answer a record for a large positive integer."

	^ anInteger negative
		ifTrue: [ NegativeSmallIntegerRecord ]
		ifFalse: [ PositiveSmallIntegerRecord ] ::
			 forStore: self position: self recordPosition andObject: anInteger! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:48:39'!
stringRecordFor: aString
	"Answer a string record for a string."

	^ StringRecord forStore: self position: self recordPosition andObject: aString! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 14:46:23'!
symbolRecordFor: aSymbol
	"Answer a string record for a string."

	Symbol hasInterned: aSymbol ifTrue: [ :symbol |
		^ InternedSymbolRecord forStore: self position: self recordPosition andObject: symbol ].
	aSymbol environment ifNil: [
		^ UninternedSymbolRecord forStore: self position: self recordPosition andObject: aSymbol ].
	^ self objectRecordFor:  
		(self proxyForObject: aSymbol ifAbsentPut: [
			LocalSymbolProxy forObject: aSymbol ] )! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/18/2021 22:25:27'!
systemDictionaryRecordFor: aSystemDictionary
	"Answer a record for aSystemDictionary."
	
	^ aSystemDictionary == Smalltalk
		ifTrue: 
			[ self objectRecordFor: 
					(self 
						proxyForObject: aSystemDictionary
						ifAbsentPut: [ SmalltalkProxy new ]) ]
		ifFalse:
			[ self dictionaryRecordFor: aSystemDictionary ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'records' stamp: 'KLG 5/19/2021 10:48:53'!
wordArrayRecordFor: anArray
	"Answer a word array record for anArray."

	^ WordArrayRecord forStore: self position: self recordPosition andObject: anArray! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'version' stamp: 'KLG 5/14/2021 21:53:10'!
checkHeader
	"Dump the data base header"

	self rawLoadObjectAt: 0 :: checkHeader ifNotNil: [ :error | self error: error ]! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'version' stamp: 'KLG 5/19/2021 10:54:15'!
dumpHeader
	"Dump the data base header"

	stream position: 0.
	StoreRecord forStore: self position: self recordPosition :: dumpOn: stream! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'version' stamp: 'KLG 5/14/2021 21:34:51'!
storeVersion
	"Answer the store version."

	^ self class storeVersion! !

!(Modules>>#PlanE>>#FileStore) methodsFor: 'proxies' stamp: 'KLG 5/17/2021 14:50:53'!
proxyForObject: anObject ifAbsentPut: aBlock
	"Answer a Proxy for anObject.
	
	Memorize and answer the value of aBlock."

	^ proxies at: anObject ifAbsentPut: aBlock ! !

!(Modules>>#PlanE>>#FileStore) class methodsFor: 'instance creation' stamp: 'KLG 5/13/2021 19:29:46'!
openOn: aFilename
	"Open of a file name."

	^ self new openOn: aFilename ! !

!(Modules>>#PlanE>>#FileStore) class methodsFor: 'version' stamp: 'KLG 5/14/2021 21:34:29'!
storeVersion
	"Answer the store version."

	^ 0	! !

!(Modules>>#PlanE>>#PersistentObject) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 16:23:45'!
registerWithTransaction
	"Register me with the current transaction."
	
	planE ifNotNil: [ planE register: self ]! !

!(Modules>>#PlanE>>#PersistentObject) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 17:12:57'!
forPlanE: aPlanE
	"Create instance of mine for a aPlane."

	| answer |
	answer _ self basicNew.
	aPlanE register: answer.
	answer initialize.
	^ answer ! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'root' stamp: 'KLG 5/21/2021 15:26:41'!
root
	"Answer the root object."

	^ fileStore root! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'root' stamp: 'KLG 5/21/2021 15:26:21'!
root: anObject
	"Set the root object."

	^ fileStore root: anObject ! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 10:44:24'!
fileStoreClass
	"Answer the file store class to use."

	^ self class fileStoreClass! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 10:44:42'!
transactionManagerClass
	"Answer the transaction manager classto use."

	^ self class transactionManagerClass! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'testing' stamp: 'KLG 5/21/2021 16:14:23'!
isOpen
	"Answer true, if I am open."

	^ fileStore notNil and: [ fileStore isOpen]! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'testing' stamp: 'KLG 5/21/2021 15:24:39'!
isRegistered: anObject 
	"Answer if anObject is registered."
	
	^ transactionManager isRegistered: anObject 
	! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'opening' stamp: 'KLG 5/21/2021 16:13:37'!
openOn: aFilename
	"Open the interface on aFilename"
	
	fileStore _ self fileStoreClass new.
	transactionManager _ self transactionManagerClass forFileStore: fileStore.
	fileStore openOn: aFilename! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'closing' stamp: 'KLG 5/21/2021 16:13:56'!
close
	"Close the the interface"

	fileStore close.
	fileStore _ transactionManager _ nil! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
abort
	"Abort the current transaction."

	^ transactionManager abort! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
active
	"Answer the transaction for this process."

	^ transactionManager active! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
begin
	"Begin the active transaction."

	^ transactionManager begin! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
begin: anId
	"Begin the active transaction give it an id."

	^ transactionManager begin: anId! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
commit
	"Commit the current transaction."

	^ transactionManager commit! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
do: aBlock inMyTransaction: anObject
	"Evaluate a block while anObject transaction is the active one for this process."
	
	^ transactionManager do: aBlock inMyTransaction: anObject! !

!(Modules>>#PlanE>>#PlanE) methodsFor: 'transactions' stamp: 'KLG 5/21/2021 15:24:39'!
register: anObject
	"Register anObject and answer its transaction."

	^ transactionManager register: anObject! !

!(Modules>>#PlanE>>#PlanE) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 10:42:42'!
fileStoreClass
	"Answer the file store class to use."

	^ FileStore! !

!(Modules>>#PlanE>>#PlanE) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 15:48:02'!
openOn: aFilename
	"Create a new PlanE interface that is open on a Filename."
	
	^ self new openOn: aFilename! !

!(Modules>>#PlanE>>#PlanE) class methodsFor: 'instance creation' stamp: 'KLG 5/21/2021 10:43:16'!
transactionManagerClass
	"Answer the transaction manager classto use."

	^ TransactionManager! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'magic' stamp: 'KLG 5/13/2021 20:24:39'!
magicWords
	"Answer the magic bytes."

	^ self class magicWords! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 20:09:50'!
dumpDataOn: aStream
	"Dump the data an aStream."

	self subclassResponsibility! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 21:19:14'!
dumpHeaderOn: aStream
	"Dump the header on a stream"

	aStream 
		nextPutAll: self magicWords;
		nextPutAll: self metaHeader.
	self header ifNotNil: [ :header | aStream 		nextPutAll: header ]! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 20:24:18'!
dumpOn: aStream
	"Dump the class on a stream."

	self
		dumpHeaderOn:aStream;
		dumpDataOn: aStream! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 21:31:17'!
header
	"Answer the header"

	| headerArray |
	headerArray _ self headerArrayClass ifNil: [ ^ nil ] ifNotNil: [ :headerArrayClass |
		headerArrayClass new: self headerSize ].
	self storeHeaderIn: headerArray.
	^ headerArray ! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:25:05'!
headerArrayClass
	"Answer the header array class.
	
	If we answer nil, there is no header."

	^ nil! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:22:16'!
headerSize
	"Answer the header size.
	
	If we answer nil, there is no header."

	^ nil! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 12:11:56'!
loadDataFrom: aStream
	"Creat an instance of mine and load it from aStream."

	^ self loadDataFrom: aStream header: (self loadHeaderFrom: aStream) ! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 12:08:15'!
loadDataFrom: aStream header: aHeader
	"Creat an instance of mine and load it from aStream."

	^ self subclassResponsibility! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 20:41:14'!
loadHeaderFrom: aStream
	"Load the header form aStream and answer it."

	| header headerSize "F: metaHeader" |
	"F: metaHeader _ DoubleWordArray new: 1.
	aStream nextInto: metaHeader."
	(headerSize _ self headerSize) ifNil: [ ^ nil ].
	header _ self headerArrayClass new: headerSize.
	aStream next: headerSize into: header startingAt: 1..
	^ header! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 20:34:18'!
metaHeader
	"Answer the metaHeader.
	
	Essentially this space for one position pointing to meta information
	like a new version of the object or transaction. If the magicWords least significat bit
	is set in contains 2 positions pointing to a transaction and a never version of the object."

	^ `DoubleWordArray new: 1`! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/20/2021 10:47:50'!
registerPositionFor: anObject
	"Regster the position for a newly loaded object.
	
	This will terminate the loading of (indirectly) self referencing objects."

	store registerObject: anObject at: position! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 11:42:40'!
smalltalkObject
	"Answer the reals smalltlak object."

	^ self subclassResponsibility ! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:29:01'!
storeHeaderIn: aHeaderArray
	"Store the header data in aHeaderArray"

	self subclassResponsibility! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'accessing' stamp: 'KLG 5/14/2021 20:51:04'!
store: anObject
	"Set the value of store"

	self assert: store isNil.
	store _ anObject! !

!(Modules>>#PlanE>>#AbstractRecord) methodsFor: 'accessing' stamp: 'KLG 5/19/2021 10:39:01'!
store: anObject position: aPosition
	"Set the value of store"

	self assert: store isNil.
	store _ anObject.
	position _ aPosition! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'magic' stamp: 'KLG 5/13/2021 20:23:02'!
magicNumber
	"Answer the magic number."

	^ self subclassResponsibility! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'magic' stamp: 'KLG 5/13/2021 21:07:42'!
magicNumbersToClasses
	"Answer the dictionary that maps magic nubers to classes."

	^ MagicNumbersToClasses! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'magic' stamp: 'KLG 5/16/2021 20:27:14'!
magicWords
	"Answer the magic bytes."

	^ magicWords ifNil: [ magicWords _ DoubleByteArray with: self magicNumber << 1]! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'magic' stamp: 'KLG 5/15/2021 22:42:56'!
recordClassForMagicNumbers: anInteger
	"Answer the right class for someMagic words."

	^ self magicNumbersToClasses at: anInteger ifAbsent: [
		self error: 'Unkown database record number: ', anInteger asString]! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'persistence' stamp: 'KLG 5/20/2021 15:49:35'!
loadFrom: aStream forStore: aStore andPosition: aPosition  
	"Load the right subclass from aStream"

	| magic recordClass updatedPosition headerPosition |
	updatedPosition _ aPosition.
	magic _ self loadMagicWordsFrom: aStream.
	[ (headerPosition _ self loadMetaHeaderFrom: aStream) = 0] whileFalse: [
		aStore recordPosition: headerPosition.
		magic _ self loadMagicWordsFrom: aStream.
		updatedPosition _ headerPosition ].
	aPosition = updatedPosition ifFalse: [
		Transcript newLine; show: 'LOAD: '; show: aPosition; show: ' => '; show: updatedPosition ].
	recordClass _ self recordClassForMagicNumbers: (magic at: 1) >> 1.
	^ recordClass forStore: aStore position: updatedPosition :: loadDataFrom: aStream! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'persistence' stamp: 'KLG 5/13/2021 21:03:11'!
loadMagicWordsFrom: aStream
	"Load the magic words from aStream"

	| words |
	words _ DoubleByteArray new: 1.
	aStream readInto: words startingAt: 1  count: 1.
	^ words! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'persistence' stamp: 'KLG 5/19/2021 16:36:54'!
loadMetaHeaderFrom: aStream
	"Load the meta header and answer the position it points to."

	| metaHeader |
	aStream nextInto: (metaHeader _ DoubleWordArray new: 1).
	^ metaHeader at: 1! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'class initialization' stamp: 'KLG 5/14/2021 23:33:21'!
initialize
	"Initialize the magic numbers mapping"

	MagicNumbersToClasses _ Dictionary new.
	self allSubclassesDo: [ :subclass | | found |
		found _ subclass ~~ self.
		[ Transcript cr; show: subclass; show: ' => '; show: subclass magicWords. ] on: Exception do: [].
		subclass resetMagicWords.
		subclass class compiledMethodAt: #magicNumber ifAbsent: [ found _ false ].
		"D: Transcript newLine; show: subclass; show: ' --> '; show: found."
		found ifTrue: [ | magicNumber |
			MagicNumbersToClasses 
				at: (magicNumber _ subclass magicNumber) ifPresent: [ :class |
					self error: 'Duplicate magic number: ', magicNumber asString, ' -> ', class name ].
			MagicNumbersToClasses at: magicNumber put: subclass ] ]! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'class initialization' stamp: 'KLG 5/14/2021 23:25:08'!
resetMagicWords
	"Reset the changed magic words."

	magicWords _ nil! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 10:40:01'!
forStore: aStore position: aPosition
	"Answer a new record foraStore."

	^ self new store: aStore position: aPosition ! !

!(Modules>>#PlanE>>#AbstractRecord) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 10:42:54'!
forStore: aStore position: aPosition andObject: anObject
	"Answer a new record foraStore and anObject."

	^ self subclassResponsibility ! !

!(Modules>>#PlanE>>#AbstractClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 22:03:31'!
dumpDataOn: aStream
	"Dump the data an aStream."

	aStream nextPutAll: className! !

!(Modules>>#PlanE>>#AbstractClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:39:38'!
header
	"Answer the header"

	^ self headerArrayClass 	with: className size! !

!(Modules>>#PlanE>>#AbstractClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:39:38'!
headerArrayClass

	^ DoubleByteArray! !

!(Modules>>#PlanE>>#AbstractClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 23:13:07'!
headerSize

	^ 1! !

!(Modules>>#PlanE>>#AbstractClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 23:16:37'!
loadDataFrom: aStream header: aHeader
	"Creat an instance of mine and load it from aStream."

	aStream nextInto: (className _ String new: (aHeader at: 1))! !

!(Modules>>#PlanE>>#AbstractClassRecord) methodsFor: 'initialization' stamp: 'KLG 5/15/2021 21:38:43'!
className: aClassName
	"Initalize me from my class."
	
	className _ aClassName! !

!(Modules>>#PlanE>>#AbstractClassRecord) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 11:02:10'!
forStore: aStore position: aPosition andObject: aClass 
	"Create a new class record for a class."
	
	^ self forStore: aStore position: aPosition :: className: aClass name asString! !

!(Modules>>#PlanE>>#BaseClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 11:51:36'!
smalltalkObject
	"Answer the realsmalltlak object."

	^ Smalltalk at: className asSymbol ! !

!(Modules>>#PlanE>>#BaseClassRecord) class methodsFor: 'magic' stamp: 'KLG 5/16/2021 12:12:46'!
magicNumber
	"Answer the magic number."

	^ 4! !

!(Modules>>#PlanE>>#ClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/17/2021 22:02:15'!
dumpDataOn: aStream
	"Dump the data an aStream."

	super dumpDataOn: aStream.
	aStream nextPutAll: (
		DoubleWordArray
			with: (store recordPositionOf: package)
			with: (store recordPositionOf: environment andOffset: 1))
	! !

!(Modules>>#PlanE>>#ClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/17/2021 22:02:44'!
loadDataFrom: aStream header: aHeader
	"Load our data from aStream using aHeader."

	| dataArray |
	super
		loadDataFrom: aStream
		header: aHeader.
	aStream nextInto: (dataArray _ DoubleWordArray new: 2).
	package _ store loadObjectAt: dataArray first.
	environment _ store loadObjectAt: dataArray second! !

!(Modules>>#PlanE>>#ClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:21:15'!
smalltalkObject
	"Answer the real Smalltalk object."

	^ environment ifNil: [ Smalltalk ] :: at: className asSymbol ! !

!(Modules>>#PlanE>>#ClassRecord) methodsFor: 'initialization' stamp: 'KLG 5/17/2021 22:02:15'!
className: aClassName environment: anEnvironmentOrNil package: aPackageOrNil
	"Initalize me from my class."
	
	className _ aClassName.
	environment _ anEnvironmentOrNil.
	package _ aPackageOrNil! !

!(Modules>>#PlanE>>#ClassRecord) class methodsFor: 'magic' stamp: 'KLG 5/17/2021 15:10:09'!
magicNumber
	"Answer my magic number."

	^ 6.! !

!(Modules>>#PlanE>>#ClassRecord) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 11:01:15'!
forStore: aStore position: aPosition andObject: aClass 
	"Create a new class record for a class."
	
	^ self forStore: aStore position: aPosition ::
		className: aClass name asString
		environment: aClass name environment
		package: aClass package! !

!(Modules>>#PlanE>>#PlanEClassRecord) methodsFor: 'instance creation' stamp: 'KLG 5/17/2021 22:29:21'!
className: aClassName
	"Initialize me from aClassName and aModule"

	className _ aClassName! !

!(Modules>>#PlanE>>#PlanEClassRecord) methodsFor: 'persistence' stamp: 'KLG 5/17/2021 22:30:07'!
smalltalkObject
	"Answer the class in the module."

	^ `Modules >> #PlanE` at: className asSymbol.! !

!(Modules>>#PlanE>>#PlanEClassRecord) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 11:01:43'!
forStore: aStream position: aPosition andObject: aPlanEClass
	"Answer a new instance of mine or aStore and aPlanEClass."

	^ (self forStore: aStream position: aPosition)
		className: aPlanEClass name asString! !

!(Modules>>#PlanE>>#PlanEClassRecord) class methodsFor: 'magic' stamp: 'KLG 5/17/2021 15:03:33'!
magicNumber
	"Answer the magic number."

	^ 5.! !

!(Modules>>#PlanE>>#AbstractInstanceRecord) methodsFor: 'accessing' stamp: 'KLG 5/14/2021 22:46:42'!
object
	"Answer the value of object"

	^ object! !

!(Modules>>#PlanE>>#AbstractInstanceRecord) methodsFor: 'accessing' stamp: 'KLG 5/14/2021 22:46:42'!
object: anObject
	"Set the value of object"

	object _ anObject! !

!(Modules>>#PlanE>>#AbstractInstanceRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:16:47'!
registerPosition
	"Regster the position for a newly loaded object.
	
	This will terminate the loading of (indirectly) self referencing objects."

	self registerPositionFor: object! !

!(Modules>>#PlanE>>#AbstractInstanceRecord) methodsFor: 'persistence' stamp: 'KLG 5/17/2021 10:58:35'!
smalltalkObject 
	"Answer the smalltalk object."
	
	^ self object principalForPlanE! !

!(Modules>>#PlanE>>#AbstractInstanceRecord) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 11:00:44'!
forStore: aStore position: aPosition andObject: anObject 
	"Answer an instance record for a store an anObject."
	
	^ self forStore: aStore position: aPosition :: object: anObject! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 21:52:55'!
dumpDataOn: aStream
	"Dump the data an aStream."

	aStream nextPutAll: object! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:35:56'!
header
	"Answer the header"

	^ self headerArrayClass with: object size! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:34:37'!
headerArrayClass

	^ DoubleWordArray! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:35:37'!
headerSize

	^ 1! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:18:07'!
loadDataFrom: aStream header: aHeader
	"Load the data for aStream"
	
	object _ self smalltalkCollectionClass new: (aHeader at: 1).
	self registerPosition.
	aStream nextInto: object.
	! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) methodsFor: 'persistence' stamp: 'KLG 5/14/2021 22:50:26'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ self class smalltalkCollectionClass! !

!(Modules>>#PlanE>>#AbstractAtomicCollectionRecord) class methodsFor: 'persistence' stamp: 'KLG 5/14/2021 22:50:54'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ self subclassResponsibility! !

!(Modules>>#PlanE>>#LargeNegativeIntegerRecord) class methodsFor: 'persistence' stamp: 'KLG 5/16/2021 21:54:40'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ LargeNegativeInteger! !

!(Modules>>#PlanE>>#LargeNegativeIntegerRecord) class methodsFor: 'magic' stamp: 'KLG 5/16/2021 21:56:46'!
magicNumber
	"Answer my magic number"
	
	^ 20! !

!(Modules>>#PlanE>>#LargePositiveIntegerRecord) class methodsFor: 'persistence' stamp: 'KLG 5/16/2021 21:54:56'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ LargePositiveInteger ! !

!(Modules>>#PlanE>>#LargePositiveIntegerRecord) class methodsFor: 'magic' stamp: 'KLG 5/16/2021 21:56:32'!
magicNumber
	"Answer my magic number"
	
	^ 19! !

!(Modules>>#PlanE>>#AbstractStringLike) class methodsFor: 'persistence' stamp: 'KLG 5/15/2021 22:37:56'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ String! !

!(Modules>>#PlanE>>#InternedSymbolRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 14:01:13'!
loadDataFrom: aStream header: aHeader
	"Load the data for aStream"
	
	object _ self smalltalkCollectionClass new: (aHeader at: 1).
	aStream nextInto: object.
	object _ object asSymbol.
	"Now that we know the object, we can register it."
	self registerPosition
	! !

!(Modules>>#PlanE>>#InternedSymbolRecord) class methodsFor: 'magic' stamp: 'KLG 5/15/2021 22:38:56'!
magicNumber
	"Answer my magic number"
	
	^ 18! !

!(Modules>>#PlanE>>#StringRecord) class methodsFor: 'magic' stamp: 'KLG 5/15/2021 21:28:41'!
magicNumber
	"Answer my magic number"
	
	^ 17! !

!(Modules>>#PlanE>>#UninternedSymbolRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 14:13:05'!
loadDataFrom: aStream header: aHeader
	"Load the data for aStream"
	
	| size |
	object _ self smalltalkCollectionClass new: (size _ aHeader at: 1).
	aStream nextInto: object.
	object _ Symbol new: size :: string: object.
	"Now that we know the object, we can register it."
	self registerPosition
	! !

!(Modules>>#PlanE>>#UninternedSymbolRecord) class methodsFor: 'magic' stamp: 'KLG 5/19/2021 14:17:05'!
magicNumber
	"Answer my magic number"
	
	^ 30! !

!(Modules>>#PlanE>>#ByteArrayRecord) class methodsFor: 'magic' stamp: 'KLG 5/18/2021 14:18:57'!
magicNumber
	"Answer my magic number"
	
	^ 24! !

!(Modules>>#PlanE>>#ByteArrayRecord) class methodsFor: 'persistence' stamp: 'KLG 5/18/2021 14:14:03'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ ByteArray! !

!(Modules>>#PlanE>>#DoubleByteArrayRecord) class methodsFor: 'magic' stamp: 'KLG 5/18/2021 14:33:07'!
magicNumber
	"Answer my magic number"
	
	^ 27! !

!(Modules>>#PlanE>>#DoubleByteArrayRecord) class methodsFor: 'persistence' stamp: 'KLG 5/18/2021 14:34:00'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ DoubleByteArray! !

!(Modules>>#PlanE>>#DoubleWordArrayRecord) class methodsFor: 'magic' stamp: 'KLG 5/18/2021 14:32:39'!
magicNumber
	"Answer my magic number"
	
	^ 26! !

!(Modules>>#PlanE>>#DoubleWordArrayRecord) class methodsFor: 'persistence' stamp: 'KLG 5/18/2021 14:33:36'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^ DoubleWordArray! !

!(Modules>>#PlanE>>#WordArrayRecord) class methodsFor: 'magic' stamp: 'KLG 5/18/2021 14:27:15'!
magicNumber
	"Answer my magic number"
	
	^ 25! !

!(Modules>>#PlanE>>#WordArrayRecord) class methodsFor: 'persistence' stamp: 'KLG 5/18/2021 14:26:57'!
smalltalkCollectionClass
	"Answer the collection class to use."

	^WordArray! !

!(Modules>>#PlanE>>#AbstractSmallIntegerRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 22:55:42'!
dumpDataOn: aStream
	"Dump the data an aStream."

	aStream nextPutAll: (DoubleWordArray with: object)! !

!(Modules>>#PlanE>>#AbstractSmallIntegerRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:18:41'!
loadDataFrom: aStream
	"Creat an instance of mine and load it from aStream."

	| dataArray |
	aStream nextInto: (dataArray _ DoubleWordArray new: 1).
	object _ dataArray at: 1.
	self registerPosition! !

!(Modules>>#PlanE>>#NegativeSmallIntegerRecord) methodsFor: 'accessing' stamp: 'KLG 5/16/2021 22:45:23'!
object
	"Answer the object"

	^ object negated! !

!(Modules>>#PlanE>>#NegativeSmallIntegerRecord) methodsFor: 'accessing' stamp: 'KLG 5/16/2021 22:54:35'!
object: anInteger
	"Set the object"

	object _ anInteger negated! !

!(Modules>>#PlanE>>#NegativeSmallIntegerRecord) class methodsFor: 'as yet unclassified' stamp: 'KLG 5/16/2021 22:42:12'!
magicNumber
	"Answer my magic number"
	
	^ 22! !

!(Modules>>#PlanE>>#PositiveSmallIntegerRecord) class methodsFor: 'magic' stamp: 'KLG 5/16/2021 22:23:13'!
magicNumber
	"Answer my magic number"
	
	^ 21! !

!FloatRecord methodsFor: 'persistence' stamp: 'KLG 5/17/2021 20:41:24'!
dumpDataOn: aStream
	"Dump the data an aStream."

	aStream nextPutAll: (DoubleWordArray with: (object at: 1) with: (object at: 2))! !

!FloatRecord methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:18:55'!
loadDataFrom: aStream
	"Creat an instance of mine and load it from aStream."

	| dataArray |
	object _ Float new.
	self registerPosition.
	aStream nextInto: (dataArray _ DoubleWordArray new: 2).
	object at: 1 put: (dataArray at: 1).
	object at: 2 put: (dataArray at: 2)! !

!FloatRecord class methodsFor: 'magic' stamp: 'KLG 5/17/2021 20:34:30'!
magicNumber
	"Answer my magic number"
	
	^ 23! !

!(Modules>>#PlanE>>#AbstractSetRecord) methodsFor: 'persistence' stamp: 'KLG 5/18/2021 19:42:12'!
headerArrayClass
	"Answer the header array class.
	
	If we answer nil, there is no header."

	^ DoubleWordArray ! !

!(Modules>>#PlanE>>#AbstractSetRecord) methodsFor: 'persistence' stamp: 'KLG 5/18/2021 19:40:53'!
headerSize
	"Answer the header size.
	
	If we answer nil, there is no header."

	^ 1! !

!(Modules>>#PlanE>>#DictionaryRecord) methodsFor: 'persistence' stamp: 'KLG 5/18/2021 21:19:03'!
dumpDataOn: aStream
	"Dump the data an aStream."

	| dataArray arrayIndex |
	dataArray _ DoubleWordArray new: object size * 2 + 1.
	dataArray at: 1 put: (store recordPositionOf: object class).
	arrayIndex _ 2.
	object keysAndValuesDo: [ :key :value |
		dataArray 
			at: arrayIndex
			put: (store recordPositionOf: key andOffset: arrayIndex - 1).
		arrayIndex _ arrayIndex + 1.
		dataArray 
			at: arrayIndex put: (store recordPositionOf: value andOffset: arrayIndex - 1).
		arrayIndex _ arrayIndex + 1 ].
	aStream nextPutAll: dataArray! !

!(Modules>>#PlanE>>#DictionaryRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:19:16'!
loadDataFrom: aStream header: aHeader
	"Creat an instance of mine and load it from aStream."

	| dataArray size |
	aStream nextInto: (dataArray _ DoubleWordArray new: (size _ aHeader at: 1)).
	object _ (store loadObjectAt: (dataArray at: 1)) new: (size - 1) / 2.
	self registerPosition.
	2 to: size by: 2 do: [ :index |
		object 
			at: (store loadObjectAt: (dataArray at: index))
			put: (store loadObjectAt: (dataArray at: index + 1)) ]! !

!(Modules>>#PlanE>>#DictionaryRecord) methodsFor: 'persistence' stamp: 'KLG 5/18/2021 21:16:01'!
storeHeaderIn: aHeaderArray
	"Store the header data in aHeaderArray"

	aHeaderArray at:1 put: object size * 2 + 1! !

!(Modules>>#PlanE>>#DictionaryRecord) class methodsFor: 'magic' stamp: 'KLG 5/18/2021 19:51:20'!
magicNumber
	"Answer my magic number"
	
	^ 28! !

!(Modules>>#PlanE>>#SetRecord) methodsFor: 'persistence' stamp: 'KLG 5/18/2021 21:19:19'!
dumpDataOn: aStream
	"Dump the data an aStream."

	| dataArray index |
	dataArray _ DoubleWordArray new: object size + 1.
	dataArray at: 1 put: (store recordPositionOf:  object class).
	index _ 1.
	object do: [ :element |
		dataArray 
			at: index + 1 
			put: (store recordPositionOf: element andOffset: index).
			index _ index + 1 ].
	aStream nextPutAll: dataArray! !

!(Modules>>#PlanE>>#SetRecord) methodsFor: 'persistence' stamp: 'KLG 5/19/2021 11:19:29'!
loadDataFrom: aStream header: aHeader
	"Creat an instance of mine and load it from aStream."

	| dataArray size |
	aStream nextInto: (dataArray _ DoubleWordArray new: (size _ aHeader at: 1)).
	object _ (store loadObjectAt: (dataArray at: 1)) new: size - 1.
	self registerPosition.
	2 to: size do: [ :index |
		object add: (store loadObjectAt: (dataArray at: index)) ]! !

!(Modules>>#PlanE>>#SetRecord) methodsFor: 'persistence' stamp: 'KLG 5/18/2021 21:14:35'!
storeHeaderIn: aHeaderArray
	"Store the header data in aHeaderArray"

	aHeaderArray at:1 put: object size + 1! !

!(Modules>>#PlanE>>#SetRecord) class methodsFor: 'magic' stamp: 'KLG 5/18/2021 19:50:23'!
magicNumber
	"Answer my magic number"
	
	^ 29! !

!(Modules>>#PlanE>>#ObjectRecord) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 22:55:47'!
dumpDataOn: aStream
	"Dump the data an aStream."

	| dataArray class instSize collectionIndex |
	dataArray _ DoubleWordArray new: ((instSize _ (class _ object class) instSize)) + object basicSize + 1.
	dataArray at: 1 put: (store recordPositionOf: class).
	1 to: instSize do: [ :index |
		dataArray 
			at: index + 1
			put: (store recordPositionOf: (object instVarAt: index) andOffset: index) ].
	collectionIndex _ instSize + 1.
	1 to: object basicSize do: [ :index |
		dataArray
			at: collectionIndex + 1
			put: (store recordPositionOf: (object basicAt: index) andOffset: collectionIndex).
		collectionIndex _ collectionIndex + 1 ].
	aStream nextPutAll: dataArray
	! !

!(Modules>>#PlanE>>#ObjectRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 20:14:17'!
headerArrayClass
	"Answer the header array class.
	
	If we answer nil, there is no header."

	^ DoubleWordArray ! !

!(Modules>>#PlanE>>#ObjectRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 20:13:55'!
headerSize
	"Answer the header size.
	
	If we answer nil, there is no header."

	^ 1! !

!(Modules>>#PlanE>>#ObjectRecord) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 18:51:44'!
loadDataFrom: aStream header: aHeader
	"Creat an instance of mine and load it from aStream."

	| dataArray class collectionIndex variableSize |
	dataArray _ DoubleWordArray new: (aHeader at: 1) + 1.
	aStream nextInto: dataArray.
	class _ store loadObjectAt: (dataArray at: 1).
	object _
		(variableSize _ dataArray size - class instSize - 1) positive
			ifTrue: [ class basicNew: variableSize ]
			ifFalse: [ class basicNew ].
	self registerPosition.
	1 to: class instSize do: [ :index |
		object instVarAt: index put: (store loadObjectAt: (dataArray at: index + 1)) ].
	collectionIndex _ class instSize + 2.
	1 to: object basicSize do: [ :index |
		object basicAt: index put: (store loadObjectAt: (dataArray at: collectionIndex)).
		collectionIndex _ collectionIndex + 1 ].
	! !

!(Modules>>#PlanE>>#ObjectRecord) methodsFor: 'persistence' stamp: 'KLG 5/17/2021 16:22:19'!
storeHeaderIn: aHeaderArray
	"Store the header data in aHeaderArray"

	aHeaderArray at: 1 put: object class instSize + object basicSize! !

!(Modules>>#PlanE>>#ObjectRecord) class methodsFor: 'magic' stamp: 'KLG 5/15/2021 21:28:50'!
magicNumber
	"Answer my magic number"
	
	^ 16! !

!(Modules>>#PlanE>>#AbstractMetaRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 11:28:55'!
smalltalkObject 
	"Answer the smalltalk object."
	
	^ self
! !

!(Modules>>#PlanE>>#RootsRecord) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 22:40:58'!
dumpDataOn: aStream
	"Dump the data an aStream."

	| dataArray  |
	dataArray _ DoubleWordArray new: self rootArraySize.
	1 to: self rootArraySize do: [ :index |
		dataArray at: index put: (store recordPositionOf: (roots at: index) andOffset: index  - 1)  ].
	aStream nextPutAll: dataArray! !

!(Modules>>#PlanE>>#RootsRecord) methodsFor: 'persistence' stamp: 'KLG 5/16/2021 13:09:09'!
loadDataFrom: aStream
	"Dump the data an aStream."

	| dataArray  |
	dataArray _ DoubleWordArray new: self rootArraySize.
	aStream nextInto: dataArray.
	1 to: self rootArraySize do: [ :index |
		roots at: index put: (store loadObjectAt: (dataArray at: index)) ]! !

!(Modules>>#PlanE>>#RootsRecord) methodsFor: 'persistence' stamp: 'KLG 5/21/2021 19:37:11'!
rootArraySize

	^ 3! !

!(Modules>>#PlanE>>#RootsRecord) methodsFor: 'accessing' stamp: 'KLG 5/16/2021 13:08:40'!
at: anIndex
	"Answer the root at an index."

	^ roots at: anIndex! !

!(Modules>>#PlanE>>#RootsRecord) methodsFor: 'accessing' stamp: 'KLG 5/16/2021 13:08:45'!
at: anIndex put: anObject

	^ roots at: anIndex put: anObject ! !

!(Modules>>#PlanE>>#RootsRecord) methodsFor: 'initialization' stamp: 'KLG 5/16/2021 13:08:19'!
initialize
	"Create the array of root objects."

	super initialize.
	roots _ Array new: self rootArraySize! !

!(Modules>>#PlanE>>#RootsRecord) class methodsFor: 'magic' stamp: 'KLG 5/16/2021 12:12:02'!
magicNumber
	"Answer the magic number."

	^ 2! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'magic' stamp: 'KLG 5/14/2021 22:35:34'!
checkHeader
	"Answer the result of the header check.
	
	nil means ok,
	aString is an error diagnosi."

	^ String streamContents: [ :stream | | ok |
		ok _ true.
		storedMagicString = self magicString ifFalse: [
			ok _ false.
			stream
				nextPutAll: 'Invalid magic string: ''';
				nextPutAll: storedMagicString;
				nextPut: $' ].
		storedVersion = store storeVersion ifFalse: [
			ok ifFalse: [ stream nextPutAll: ' - '].
			ok _ false.
			stream
				nextPutAll: 'Wrong database version: ';
				nextPutAll: storedVersion asString ].
		ok ifTrue: [ ^ nil ] ]! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'magic' stamp: 'KLG 5/21/2021 20:02:17'!
magicString
	"Answer the magic string for databases"

	^ 'Haver PlanE'! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'persistence' stamp: 'KLG 5/14/2021 21:59:20'!
dumpDataOn: aStream
	"Dump the data an aStream."

	aStream nextPutAll: self magicString
! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:31:44'!
header
	"Answer the header"

	^ self headerArrayClass 
		with: store storeVersion
		with: self magicString size! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:31:44'!
headerArrayClass

	^ DoubleByteArray! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:32:07'!
headerSize
	"Answer the header size"

	^ 2! !

!(Modules>>#PlanE>>#StoreRecord) methodsFor: 'persistence' stamp: 'KLG 5/15/2021 18:33:36'!
loadDataFrom: aStream header: aHeader
	"Creat an instance of mine and load it from aStream."

	|  versionStringSize |
	storedVersion _ aHeader at: 1.
	storedMagicString _ String new: (versionStringSize _ aHeader at: 2).
	aStream next: versionStringSize  into: storedMagicString startingAt: 1
! !

!(Modules>>#PlanE>>#StoreRecord) class methodsFor: 'magic' stamp: 'KLG 5/14/2021 21:10:25'!
magicNumber
	"Answer the magic number."

	^ 1! !

!(Modules>>#PlanE>>#AbstractStatelessProxy) class methodsFor: 'persistence' stamp: 'KLG 5/18/2021 22:17:24'!
recordForPlanE: aStore
	"Answer a record for me."
	
	^ aStore classRecordForPlanEClass: self.! !

!(Modules>>#PlanE>>#AbstractProxy) methodsFor: 'proxies' stamp: 'KLG 5/17/2021 10:58:35'!
principalForPlanE
	"Answer the object we are acting as proxy."

	^ self subclassResponsibility! !

!(Modules>>#PlanE>>#AbstractProxy) class methodsFor: 'instance creation' stamp: 'KLG 5/17/2021 10:37:07'!
forObject: anObject
	"Answer the proxy for an object."

	^ self subclassResponsibility! !

!(Modules>>#PlanE>>#CodePackageProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 10:35:22'!
feature
	"Answer the value of feature"

	^ feature! !

!(Modules>>#PlanE>>#CodePackageProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 10:35:22'!
feature: anObject
	"Set the value of feature"

	feature _ anObject! !

!(Modules>>#PlanE>>#CodePackageProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 11:06:50'!
fullFileName
	"Answer the value of fullFileName"

	^ fullFileName! !

!(Modules>>#PlanE>>#CodePackageProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 11:06:50'!
fullFileName: anObject
	"Set the value of fullFileName"

	fullFileName _ anObject! !

!(Modules>>#PlanE>>#CodePackageProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 11:10:22'!
principalForPlanE
	"Answer the object we are acting as proxy."

	fullFileName ifNil: [ false ] ifNotNil: [ :filename | filename asFileEntry exists ] ::
		ifTrue: [ Feature require: fullFileName ]
		ifFalse: [
			Feature
				require: feature name
				version: feature version
				revision: feature revision ].
	^ CodePackage 
		named: feature name
		createIfAbsent: false
		registerIfNew: false! !

!(Modules>>#PlanE>>#CodePackageProxy) class methodsFor: 'instance creation' stamp: 'KLG 5/17/2021 11:06:07'!
forObject: aCodePackage
	"Answer the proxy for a code package."

	^ self new
		feature: aCodePackage provides;
		fullFileName: aCodePackage fullFileName ! !

!(Modules>>#PlanE>>#CompiledMethodProxy) methodsFor: 'accessing' stamp: 'KLG 5/22/2021 17:54:00'!
methodClass
	"Answer the value of methodClass"

	^ methodClass! !

!(Modules>>#PlanE>>#CompiledMethodProxy) methodsFor: 'accessing' stamp: 'KLG 5/22/2021 17:54:00'!
methodClass: anObject
	"Set the value of methodClass"

	methodClass _ anObject! !

!(Modules>>#PlanE>>#CompiledMethodProxy) methodsFor: 'accessing' stamp: 'KLG 5/22/2021 17:54:00'!
methodSelector
	"Answer the value of methodSelector"

	^ methodSelector! !

!(Modules>>#PlanE>>#CompiledMethodProxy) methodsFor: 'accessing' stamp: 'KLG 5/22/2021 17:54:00'!
methodSelector: anObject
	"Set the value of methodSelector"

	methodSelector _ anObject! !

!(Modules>>#PlanE>>#CompiledMethodProxy) methodsFor: 'proxies' stamp: 'KLG 5/30/2021 23:11:17'!
principalForPlanE
	"Answer the object we represent."

	^ methodClass >> methodSelector ! !

!(Modules>>#PlanE>>#CompiledMethodProxy) class methodsFor: 'instance creation' stamp: 'KLG 5/22/2021 18:09:05'!
forObject: aCompiledMethod
	"Create a an instance of mine."

	^ self new 
		methodSelector: aCompiledMethod selector;
		methodClass: aCompiledMethod methodClass! !

!(Modules>>#PlanE>>#EnvironmentProxy) methodsFor: 'proxies' stamp: 'KLG 5/17/2021 21:04:42'!
principalForPlanE
	"Answer the object we are acting as proxy."

	^ (EnvironmentImplementations at: managerName) >> environmentName! !

!(Modules>>#PlanE>>#EnvironmentProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 20:56:19'!
environmentName
	"Answer the value of environmentName"

	^ environmentName! !

!(Modules>>#PlanE>>#EnvironmentProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 20:56:19'!
environmentName: anObject
	"Set the value of environmentName"

	environmentName _ anObject! !

!(Modules>>#PlanE>>#EnvironmentProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 20:56:19'!
managerName
	"Answer the value of managerName"

	^ managerName! !

!(Modules>>#PlanE>>#EnvironmentProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 20:56:19'!
managerName: anObject
	"Set the value of managerName"

	managerName _ anObject! !

!(Modules>>#PlanE>>#EnvironmentProxy) class methodsFor: 'instance creation' stamp: 'KLG 5/17/2021 20:56:05'!
forObject: anEnvironment
	"Answer the proxy for a code package."

	^ self new
		managerName: anEnvironment managerClass environmentImplementationName;
		environmentName: anEnvironment name! !

!(Modules>>#PlanE>>#LocalSymbolProxy) methodsFor: 'accessing' stamp: 'KLG 5/19/2021 14:38:11'!
environment: anObject
	"Set the value of environment"

	environment _ anObject! !

!(Modules>>#PlanE>>#LocalSymbolProxy) methodsFor: 'accessing' stamp: 'KLG 5/19/2021 14:48:11'!
principalForPlanE
	"Answer the object we are acting as proxy."

	^ (Symbol new: symbolString size :: string: symbolString) forEnvironment: environment! !

!(Modules>>#PlanE>>#LocalSymbolProxy) methodsFor: 'accessing' stamp: 'KLG 5/19/2021 14:47:25'!
symbol: aSynbol
	"Set the value of symbol"

	symbolString _ aSynbol asString! !

!(Modules>>#PlanE>>#LocalSymbolProxy) class methodsFor: 'instance creation' stamp: 'KLG 5/19/2021 14:38:24'!
forObject: aSymbol
	"Answer the proxy for an object."

	^ self new symbol: aSymbol; environment: aSymbol environment! !

!(Modules>>#PlanE>>#ModuleProxy) methodsFor: 'accessing' stamp: 'KLG 5/17/2021 22:32:07'!
module: aModule
	"Set from a module"

	moduleName _ aModule name.
	aModule hasPackage ifTrue: [
		package _
			CodePackage
				named: aModule packageName
				createIfAbsent: false
				registerIfNew: false ].! !

!(Modules>>#PlanE>>#ModuleProxy) methodsFor: 'proxies' stamp: 'KLG 5/17/2021 22:32:07'!
principalForPlanE
	"Answer the object we are acting as proxy."

	^ Modules >> moduleName! !

!(Modules>>#PlanE>>#ModuleProxy) class methodsFor: 'instance creation' stamp: 'KLG 5/17/2021 22:32:07'!
forObject: aModule
	"Create an instance of mine for a module."

	^ self new module: aModule! !

!(Modules>>#PlanE>>#SmalltalkProxy) methodsFor: 'proxies' stamp: 'KLG 5/18/2021 22:26:11'!
principalForPlanE
	"Answer the object we are acting as proxy."
	
	^ Smalltalk! !

!Object methodsFor: '*PlanE' stamp: 'KLG 5/17/2021 10:58:35'!
principalForPlanE
	"Answer the object we are acting as proxy.
	
	Answer self, because we are no proxy."! !

!Object methodsFor: '*PlanE' stamp: 'KLG 5/15/2021 21:28:00'!
recordForPlanE: aStore 
	"Answer a record for the PlanE database."
	
	^ aStore objectRecordFor: self! !

!Class methodsFor: '*PlanE' stamp: 'KLG 5/14/2021 20:34:48'!
recordForPlanE: aFileStore
	"Answer the PlanE record for a class."
	
	^ aFileStore classRecordFor: self! !

!Float methodsFor: '*PlanE' stamp: 'KLG 5/17/2021 20:47:09'!
recordForPlanE: aStore 
	"Answer the PlanE record for a aFloat"
	
	^ aStore floatRecordFor: self! !

!LargePositiveInteger methodsFor: '*PlanE' stamp: 'KLG 5/16/2021 22:00:24'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore largePositiveIntegerRecordFor: self! !

!LargeNegativeInteger methodsFor: '*PlanE' stamp: 'KLG 5/16/2021 22:00:12'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore largeNegativeIntegerRecordFor: self! !

!SmallInteger methodsFor: '*PlanE' stamp: 'KLG 5/16/2021 22:39:12'!
recordForPlanE: aStore 
	"Answer a record for the PlanE database."
	
	^ aStore smallIntegerRecordFor: self! !

!String methodsFor: '*PlanE' stamp: 'KLG 5/14/2021 22:57:06'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore stringRecordFor: self! !

!Symbol methodsFor: '*PlanE' stamp: 'KLG 5/19/2021 14:09:04'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore symbolRecordFor: self! !

!ByteArray methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 14:17:13'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore byteArrayRecordFor: self! !

!CompiledMethod methodsFor: '*PlanE' stamp: 'KLG 5/22/2021 17:55:44'!
recordForPlanE: aStore
	"Answer a record for me."
	
	^ aStore compiledMethodRecord: self.! !

!WordArray methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 14:29:26'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore wordArrayRecordFor: self! !

!DoubleByteArray methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 14:41:07'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore doubleByteArrayRecordFor: self! !

!DoubleWordArray methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 14:41:52'!
recordForPlanE: aStore 
	"Answer the PlanE record for a string"
	
	^ aStore doubleWordArrayRecordFor: self! !

!Set methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 20:11:28'!
recordForPlanE: aStore 
	"Answer a record for the PlanE database."
	
	^ aStore setRecordFor: self! !

!Dictionary methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 20:11:47'!
recordForPlanE: aStore 
	"Answer a record for the PlanE database."
	
	^ aStore dictionaryRecordFor: self! !

!SystemDictionary methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 22:40:34'!
recordForPlanE: aStore 
	"Answer a record for the PlanE database."
	
	^ aStore systemDictionaryRecordFor: self! !

!CodePackage methodsFor: '*PlanE' stamp: 'KLG 5/17/2021 11:02:03'!
recordForPlanE: aStore
	"Answer a persistent record for PlanE."

	^ aStore codePackageRecord: self! !

!SimpleEnvironment methodsFor: '*PlanE' stamp: 'KLG 5/17/2021 21:01:10'!
recordForPlanE: aStore
	"Answer a persistent record for PlanE."

	^ aStore environmentRecord: self! !

!(Environments>>#Modules>>#Module) methodsFor: '*PlanE' stamp: 'KLG 5/18/2021 22:26:49'!
recordForPlanE: aStore
	"Answer a persistent record for PlanE."

	^ aStore moduleRecordFor: self! !
(Modules>>#PlanE>>#TransactionManager) initialize!
(Modules>>#PlanE>>#AbstractRecord) initialize!