File: DeveloppersGuide.html

package info (click to toggle)
melting 5.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,836 kB
  • sloc: java: 12,710; xml: 8,395; perl: 1,581; sh: 112; makefile: 4
file content (2381 lines) | stat: -rw-r--r-- 76,606 bytes parent folder | download | duplicates (3)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>MELTING - development guide</TITLE>
<META NAME="description" CONTENT="MELTING - development guide">
<META NAME="keywords" CONTENT="DeveloppersGuide">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="DeveloppersGuide.css">

</HEAD>

<BODY >

<DIV CLASS="navigation"><!--Navigation Panel-->
<IMG WIDTH="81" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next_inactive"
 SRC="/usr/share/latex2html/icons/nx_grp_g.png"> 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up_g.png"> 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev_g.png">   
<BR>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->

<H1 ALIGN="CENTER"><SMALL>MELTING</SMALL> - development guide</H1>
<DIV CLASS="author_info">

<P ALIGN="CENTER"><STRONG>Marine Dumousseau</STRONG></P>
</DIV>
<DIV CLASS="author_info">

<P ALIGN="CENTER"><STRONG>Nicolas Le Nov&#232;re</STRONG></P>
<P ALIGN="CENTER"><I><TT>lenov@ebi.ac.uk</TT></I></P>
</DIV>
<P ALIGN="CENTER"><STRONG>August 2009</STRONG></P>

<P>

<P>
<BR>

<H2><A NAME="SECTION00010000000000000000">
Contents</A>
</H2>
<!--Table of Contents-->

<UL CLASS="TofC">
<LI><A NAME="tex2html30"
  HREF="DeveloppersGuide.html#SECTION00020000000000000000">Introduction</A>
<LI><A NAME="tex2html31"
  HREF="DeveloppersGuide.html#SECTION00030000000000000000">Package layout</A>
<LI><A NAME="tex2html32"
  HREF="DeveloppersGuide.html#SECTION00040000000000000000">How to add new approximative formulas</A>
<LI><A NAME="tex2html33"
  HREF="DeveloppersGuide.html#SECTION00050000000000000000">How to add new thermodynamic model</A>
<LI><A NAME="tex2html34"
  HREF="DeveloppersGuide.html#SECTION00060000000000000000">How to create a new duplex structure</A>
<LI><A NAME="tex2html35"
  HREF="DeveloppersGuide.html#SECTION00070000000000000000">How to add new nucleic acids</A>
<LI><A NAME="tex2html36"
  HREF="DeveloppersGuide.html#SECTION00080000000000000000">How to add new corrections for Na, Mg, K, Tris, DMSO and/or formamide</A>
<UL>
<LI><A NAME="tex2html37"
  HREF="DeveloppersGuide.html#SECTION00081000000000000000">New ion correction</A>
<LI><A NAME="tex2html38"
  HREF="DeveloppersGuide.html#SECTION00082000000000000000">New sodium equivalence formula</A>
<LI><A NAME="tex2html39"
  HREF="DeveloppersGuide.html#SECTION00083000000000000000">New DMSO and formamide corrections</A>
</UL>
<BR>
<LI><A NAME="tex2html40"
  HREF="DeveloppersGuide.html#SECTION00090000000000000000">How to add new ion and denaturing agent species</A>
<UL>
<LI><A NAME="tex2html41"
  HREF="DeveloppersGuide.html#SECTION00091000000000000000">New ion species</A>
<LI><A NAME="tex2html42"
  HREF="DeveloppersGuide.html#SECTION00092000000000000000">New denaturing agent species or other species</A>
</UL>
<BR>
<LI><A NAME="tex2html43"
  HREF="DeveloppersGuide.html#SECTION000100000000000000000">How to change the default textitMelting options</A>
<LI><A NAME="tex2html44"
  HREF="DeveloppersGuide.html#SECTION000110000000000000000">XML Files</A>
<UL>
<LI><A NAME="tex2html45"
  HREF="DeveloppersGuide.html#SECTION000111000000000000000">General information</A>
<LI><A NAME="tex2html46"
  HREF="DeveloppersGuide.html#SECTION000112000000000000000">List of existing nodes and attributes</A>
<LI><A NAME="tex2html47"
  HREF="DeveloppersGuide.html#SECTION000113000000000000000">what to change if you add new subnodes or new attributes</A>
</UL>
<BR>
<LI><A NAME="tex2html49"
  HREF="DeveloppersGuide.html#SECTION000120000000000000000">How to change the default ion corrections</A>
</UL>
<!--End of Table of Contents-->
<P>

<P>

<H1><A NAME="SECTION00020000000000000000">
Introduction</A>
</H1>

<P>
This document describes the general layout of the code and can help the developpers
to quickly add new models, corrections into the program. The API is documented in the 
Javadoc.If you want to see the details about the different models and corrections and 
the program usages, you can read the <SMALL>MELTING</SMALL> documentation. 

<P>

<H1><A NAME="SECTION00030000000000000000">
Package layout</A>
</H1>

<P>

<UL>
<LI><SPAN  CLASS="textit">examples</SPAN> 
<BR>
This package contains all the main classes to test the program.
    
<UL>
<LI><SPAN  CLASS="textit">test</SPAN> 
<BR>
It contains all the experimental Data and sequences to test the program.
    
</LI>
</UL>
</LI>
<LI><SPAN  CLASS="textit">melting</SPAN> 
<BR>
This package contains the general classes used by most classes of the program. It also
  contains the main class which runs <SMALL>MELTING</SMALL>. This package also contains the CompatibleMain
  class which allow the user to use MELTING 5 with the MELTING 4 option syntax (except for the option '-q').
    
<UL>
<LI><SPAN  CLASS="textit">approximativeMethods</SPAN> 
<BR>
It contains all the classes which implement an approximative formula to compute the melting
    temperature.
</LI>
<LI><SPAN  CLASS="textit">configuration</SPAN> 
<BR>
It contains all the classes which register the option, models and corrections names. It contains
    the classes which manage the default options and which map the models and correction names with the
    matching classes.
</LI>
<LI><SPAN  CLASS="textit">correctionMethods</SPAN> 
<BR>
It regroups some of the base implementations for ion or denaturing agent corrections.
</LI>
<LI><SPAN  CLASS="textit">exceptions</SPAN> 
<BR>
It contains all the exceptions used in the program.
</LI>
<LI><SPAN  CLASS="textit">handlers</SPAN> 
<BR>
It contains all the Handler classes necessary to parse the XML files.
</LI>
<LI><SPAN  CLASS="textit">ionCorrection</SPAN> 
<BR>      
<UL>
<LI><SPAN  CLASS="textit">magnesiumCorrections</SPAN> 
<BR>
It contains all the classes which implement a magnesium correction.
</LI>
<LI><SPAN  CLASS="textit">mixedNaMgCorrections</SPAN> 
<BR>
It contains all the classes which implement a mixed sodium, magnesium correction.
</LI>
<LI><SPAN  CLASS="textit">sodiumCorrections</SPAN> 
<BR>
It contains all the classes which implement a sodium correction.
</LI>
<LI><SPAN  CLASS="textit">sodiumEquivalence</SPAN> 
<BR>
It contains all the classes which implement a formula to compute a sodium-equivalent concentration.
      
</LI>
</UL>
</LI>
<LI><SPAN  CLASS="textit">methodInterfaces</SPAN> 
<BR>
It contains all the interfaces.
</LI>
<LI><SPAN  CLASS="textit">nearestNeighborModel</SPAN> 
<BR>
It contains the class which uses a Nearest-Neighbor approach to compute the enthalpy, entropy and
    melting temperature. 
</LI>
<LI><SPAN  CLASS="textit">otherCorrections</SPAN> 
<BR>      
<UL>
<LI><SPAN  CLASS="textit">dmsoCorrections</SPAN> 
<BR>
It contains all the classes which implement a DMSO correction.
</LI>
<LI><SPAN  CLASS="textit">formamideCorrections</SPAN> 
<BR>
It contains all the classes which implement a formamide correction.
      
</LI>
</UL>
</LI>
<LI><SPAN  CLASS="textit">patternModels</SPAN> 
<BR>
It contains the base implementation of each thermodynamic model. 
      
<UL>
<LI><SPAN  CLASS="textit">cngPatterns</SPAN> 
<BR>
It contains the class which implements a thermodynamic model for CNG repetitions computation.
</LI>
<LI><SPAN  CLASS="textit">cricksPair</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for Crick's pairs computation.
</LI>
<LI><SPAN  CLASS="textit">InternalLoops</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for internal loop computation.
</LI>
<LI><SPAN  CLASS="textit">longBulge</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for long bulge loop computation.
</LI>
<LI><SPAN  CLASS="textit">longDanglingEnds</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for long dangling end computation.
</LI>
<LI><SPAN  CLASS="textit">secondDanglingEnds</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for two adjacent dangling end computation.
</LI>
<LI><SPAN  CLASS="textit">singleBulge</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for single bulge loop computation.
</LI>
<LI><SPAN  CLASS="textit">singleDanglingEnds</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for single dangling end computation.
</LI>
<LI><SPAN  CLASS="textit">singleMismatch</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for single mismatch computation.
</LI>
<LI><SPAN  CLASS="textit">specificAcids</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for specific or modified nucleic acids
      computation.
</LI>
<LI><SPAN  CLASS="textit">tandemMismatches</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for tandem mismatches computation.
</LI>
<LI><SPAN  CLASS="textit">wobble</SPAN> 
<BR>
It contains the classes which implement a thermodynamic model for inosine and GU base pair computation.
      
</LI>
</UL> 
</LI>
<LI><SPAN  CLASS="textit">sequences</SPAN> 
<BR>
It contains the classes which allow to represent nucleic acids and sequences and analyze them.
    
</LI>
</UL>
</LI>
</UL>

<P>

<H1><A NAME="SECTION00040000000000000000">
How to add new approximative formulas</A>
</H1>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Creates a new class which implements the MeltingComputationMethod interface or which extends the 
ApproximativeMode class in the melting.approximativeMethods package. 
<BR>
<BR>
The ApproximativeMode class already implements the public functions <SPAN  CLASS="textit">RegisterMethods getRegister()</SPAN> 
and <SPAN  CLASS="textit">void setUpVariables(HashMap&lt;String, String&gt; options)</SPAN> of the MeltingComputationMethod interface. 
This last method is useful to compute an equivalent sodium concentration if other cations than sodium are 
entered by the user. 
<BR>
<BR>
If you extend the ApproximativeMode class, you just need to implement the public functions
<SPAN  CLASS="textit">ThermoResult computesThermodynamics()</SPAN> and <SPAN  CLASS="textit">boolean isApplicable()</SPAN> of the MeltingComputationMethod 
interface. These methods are respectively important to compute the melting temperature with the approximative 
formula and to define the conditions of application of this formula. (read the Javadoc for further information).
You also can override the different ApproximativeMode methods.
<BR>
<BR>
If you don't extend the ApproximativeMode class, you have to implement all the MeltingComputationMethod
methods. (<SPAN  CLASS="textit">RegisterMethods getRegister()</SPAN>, <SPAN  CLASS="textit">void setUpVariables(HashMap&lt;String, String&gt; options)</SPAN>,
<SPAN  CLASS="textit">ThermoResult computesThermodynamics()</SPAN> and <SPAN  CLASS="textit">boolean isApplicable()</SPAN>).
<BR>
<BR>
Don't forget to add a private static String as instance variable of the class. This String must represent the
approximative formula and must be printed when the verbose mode is required by the user (see the following
example).

<P>
<PRE>
// Create a private static String which represents the 
// approximative formula
private static String temperatureFormula = "formula";

[...]

public ThermoResult computesThermodynamics(){

// To print the article reference of the approximative 
// formula if the verbose mode is required.
OptionManagement.meltingLogger.log(Level.FINE, "from 
                                Ahsen et al. (2001)");

// To print the approximative formula (the private 
 // static String)
OptionManagement.meltingLogger.log(Level.FINE, 
                                  temperatureFormula);

[...]
}
</PRE>

<P>
<SPAN  CLASS="textbf">2)</SPAN> Register the approximative formula name and the class which represents it in the RegisterMethods
class (melting.configuration package). 
You have to add in the function <SPAN  CLASS="textit">private void initialiseApproximativeMethods()</SPAN> of RegisterMethods
this following line :

<P>
<PRE>
private void initialiseApproximativeMethods(){
		[...]
		
		// To map the formula name to the class which 
		// implements it.
        approximativeMethod.put("formula-Name", 
                                  ClassName.class);
	}
</PRE>

<P>

<H1><A NAME="SECTION00050000000000000000">
How to add new thermodynamic model</A>
</H1>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Creates a new class which implements the PatternComputationMethod interface or which extends the 
PatternComputation class in the melting.patternModels package. 
<BR>
<BR>
If the structure computed by the new class is already registered by the program, you can create your class 
in the appropriate package (cngPatterns, cricksPair, InternalLoops, longBulge, longDanglingEnds, 
secondDanglingEnds, singleBulge, singleDanglingEnds, singleMismatch, specificAcids, tandemMismatches or wobble).
<BR>
<BR>
The PatternComputation class contains all the base implementations of each PatternComputationMethod method
except for this function : <SPAN  CLASS="textit">boolean isApplicable(Environment environment, int pos1, int pos2)</SPAN>.
<BR>
<BR>
You have to implement this method to compute the enthalpy and entropy of a motif in the duplex.
You also have to override the function <SPAN  CLASS="textit">boolean isApplicable(Environment environment, int pos1,int pos2)</SPAN>
to define the conditions of application of the new thermodynamic model. 
<BR>
<BR>
<P>
<SPAN  CLASS="textbf">2)</SPAN> Always register the new model in the RegisterMethod class in the melting.configuration package.
Depending on which structure in the duplex your new model computes, you will have to add one of these
following lines :

<P>

<UL>
<LI><SPAN  CLASS="textit">New model for Crick's pairs computation</SPAN>

<P>
<PRE>
private void initialiseCricksMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        cricksMethod.put("model-Name", 
                         ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for single mismatch computation</SPAN>

<P>
<PRE>
private void initialiseSingleMismatchMethods(){
		[...]
		
		// To map the model name to the class which implements it.
        singleMismatchMethod.put("model-Name", ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for tandem mismatches computation</SPAN>

<P>
<PRE>
private void initialiseTandemMismatchMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        tandemMismatchMethod.put("model-Name", 
                               ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for GU base pairs computation</SPAN>

<P>
<PRE>
private void initialiseWobbleMismatchMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        wobbleMethod.put("model-Name", 
                        ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for internal loop computation</SPAN>

<P>
<PRE>
private void initialiseInternalLoopMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        internalLoopMethod.put("model-Name", 
                               ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for single bulge loop computation</SPAN>

<P>
<PRE>
private void initialiseSingleBulgeLoopMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        singleBulgeLoopMethod.put("model-Name", 
                                  ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for long bulge loop computation</SPAN>

<P>
<PRE>
private void initialiseLongBulgeLoopMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        longBulgeLoopMethod.put("model-Name", 
                                ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for single dangling end computation</SPAN>

<P>
<PRE>
private void initialiseSingleDanglingEndMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        singleDanglingEndMethod.put("model-Name", 
                                    ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for double dangling end computation</SPAN>

<P>
<PRE>
private void initialiseDoubleDanglingEndMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        doubleDanglingEndMethod.put("model-Name", 
                                    ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for long dangling end computation</SPAN>

<P>
<PRE>
private void initialiseLongDanglingEndMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        longDanglingEndMethod.put("model-Name", 
                                  ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for CNG repeats computation</SPAN>

<P>
<PRE>
private void initialiseCNGRepeatsMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        CNGRepeatsMethod.put("model-Name", 
                            ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for inosine computation</SPAN>

<P>
<PRE>
private void initialiseInosineMethods(){
		[...]
		
		// To map the model name to the class 
		// which implements it.
        inosineMethod.put("model-Name", 
                          ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for azobenzene computation</SPAN>

<P>
<PRE>
private void initialiseAzobenzeneMethods(){
		[...]
		
		// To map the model name to the class 
		// which implements it.
        azobenzeneMethod.put("model-Name", 
                            ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for locked nucleic acid computation</SPAN>

<P>
<PRE>
private void initialiseLockedAcidMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        lockedAcidMethod.put("model-Name", 
                            ClassName.class);
	}
</PRE>

<P>
</LI>
<LI><SPAN  CLASS="textit">New model for hydroxyadenosine computation</SPAN>

<P>
<PRE>
private void initialiseHydroxyadenosineMethods(){
		[...]
		
		// To map the model name to the class which 
		// implements it.
        hydroxyadenosineMethod.put("model-Name", 
                                  ClassName.class);
	}
</PRE>
</LI>
</UL>

<P>
<SPAN  CLASS="textbf">3)</SPAN> Create a <SPAN  CLASS="textit">public static String defaultFileName</SPAN> as instance variable of the class. It represents
the name of the XML file containing the thermodynamic parameters for this model. You must print it if the
user requires the verbose mode. You can create another <SPAN  CLASS="textit">public static String</SPAN> which contains the 
thermodynamic formula of the model and print it during the verbose mode.
<BR>
<BR>
For each message you want to print during the verbose mode, you must write this line :
<SPAN  CLASS="textit">OptionManagement.meltingLogger.log(Level.FINE, "message to print");</SPAN> 
<BR>
<BR>
<P>
<SPAN  CLASS="textbf">4)</SPAN> You always must override or implement this function : <SPAN  CLASS="textit">void initialiseFileName(String methodName)</SPAN>.
It is necessary to write that the new class can use the thermodynamic parameters of its default File or
use the thermodynamic parameters of another file required by the user.

<P>
<PRE>
@Override
	public void initialiseFileName(String methodName){
		super.initialiseFileName(methodName);
		
		if (this.fileName == null){
			this.fileName = defaultFileName; // The public static String
			                                 // of this class.
		}
	}
</PRE>

<P>
Some base implementations have been written for some non specific thermodynamic models, maybe your new
class can extend one of the following base implementations. (but you always have to do the steps 1 to 4)

<P>

<H3><A NAME="SECTION00050100000000000000">
Thermodynamic model for Crick's pairs computation</A>
</H3>

<P>
If it is possible, you directly can create a new class which extends the CricksNNMethod class. (melting.patternModels.cricksPair) 
<BR>
<BR>
The CrickNNMethod class already implements the following public functions of the PatternComputationMethod interface.: 
<SPAN  CLASS="textit">ThermoResult computeThermodynamics(NucleotidSequences sequences,int pos1, int pos2, ThermoResult result)</SPAN>,
<SPAN  CLASS="textit">isMissingParameters(NucleotidSequences sequences, int pos1, int pos2)</SPAN>, 
and <SPAN  CLASS="textit">ThermoResult computesHybridizationInitiation(Environment environment)</SPAN>. 
<BR>
<BR>
A CricksNNMethod can compute the enthalpy and entropy of a perfectly matching structure by adding
the thermodynamic parameters of each Crick's base pair. The implemented function
<SPAN  CLASS="textit">isMissingParameters(NucleotidSequences sequences, int pos1, int pos2)</SPAN> can determine if
a thermodynamic parameter for one of the Crick's pair is missing. Finally, the implemented function
<SPAN  CLASS="textit">ThermoResult computesHybridizationInitiation(Environment environment)</SPAN> is the base implementation
of the hybridization initiation computation and the symetry correction for self complementary sequences.
<BR>
<BR>
<P>
If the hybridization initiation can be computed with the function 
<SPAN  CLASS="textit">public ThermoResult computesHybridizationInitiation(Environment environment)</SPAN> of one of the
following classes : DecomposedInitiation or GlobalInitiation, you directly can create a new class
which extends DecomposedInitiation or GlobalInitiation.

<P>

<H3><A NAME="SECTION00050200000000000000">
Thermodynamic model for single bulge loop computation</A>
</H3>

<P>
If it is possible, you directly can create a new class which extends the GlobalSingleBuleLoop class 
(melting.patternModels.singleBulge).
<BR>
<BR>
The GlobalSingleBuleLoop class already implements the following public functions of the PatternComputationMethod interface.: 
<SPAN  CLASS="textit">ThermoResult computeThermodynamics(NucleotidSequences sequences,int pos1, int pos2, ThermoResult result)</SPAN>,
and <SPAN  CLASS="textit">isMissingParameters(NucleotidSequences sequences, int pos1, int pos2)</SPAN>. 
<BR>
<BR>
A GlobalSingleBuleLoop can compute the enthalpy and entropy of a single bulge loop by adding
the thermodynamic parameters for the trinucleotide containing the single bulge loop. 
The implemented function <SPAN  CLASS="textit">isMissingParameters(NucleotidSequences sequences, int pos1, int pos2)</SPAN> 
can determine if a thermodynamic parameter for the trinucleotide containing the single bulge loop is missing. 
<BR>
<BR>
Finally, the implemented function <SPAN  CLASS="textit">int[] correctPositions(int pos1, int pos2, int duplexLength)</SPAN> is necessary
to take into account the adjacent base pairs of the single bulge loop.

<P>

<H3><A NAME="SECTION00050300000000000000">
Thermodynamic model for inosine computation</A>
</H3>

<P>
If it is possible, you directly can create a new class which extends the InosineNNMethod class 
(melting.patternModels.wobble). 
<BR>
<BR>
The InosineNNMethod class already implements the following public functions of the PatternComputationMethod interface.: 
<SPAN  CLASS="textit">ThermoResult computeThermodynamics(NucleotidSequences sequences,int pos1, int pos2, ThermoResult result)</SPAN>,
and <SPAN  CLASS="textit">isMissingParameters(NucleotidSequences sequences, int pos1, int pos2)</SPAN>. 
<BR>
<BR>
An InosineNNMethod can compute the enthalpy and entropy of a Crick's pair containing an inosine base by adding
the thermodynamic parameters for each Crick's pair containing an inosine base. 
The implemented function <SPAN  CLASS="textit">isMissingParameters(NucleotidSequences sequences, int pos1, int pos2)</SPAN> 
can determine if a thermodynamic parameter for one of the Crick's pair containing an inosine base is missing. 
<BR>
<BR>
Finally, the implemented function <SPAN  CLASS="textit">int[] correctPositions(int pos1, int pos2, int duplexLength)</SPAN> is necessary
to take into account the adjacent base pairs of the base pair containing the inosine.

<P>

<H1><A NAME="SECTION00060000000000000000">
How to create a new duplex structure</A>
</H1>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Create a new package with the name of the structure. 
<BR>
<BR>
<P>
<SPAN  CLASS="textbf">2)</SPAN> Create a new instance variable 
<SPAN  CLASS="textit">private static HashMap&lt;String, Class&lt;? extends PatternComputationMethod&#187; newStructureMethod</SPAN>
of the class RegisterMethods in the melting.configuration package.

<P>
<PRE>
/**
* HasMap newStructureMethod : contains all the methods 
* for the new structure computation.
*/
	private static HashMap&lt;String, Class&lt;? extends 
	        PatternComputationMethod&gt;&gt; newStructureMethod = 
	new HashMap&lt;String, Class&lt;? extends PatternComputationMethod&gt;&gt;();
</PRE>

<P>
<SPAN  CLASS="textbf">3)</SPAN> Create a new method in the RegisterMethod class to initialise the 
<SPAN  CLASS="textit">&lt;String, Class&lt;? extends PatternComputationMethod&#187; newStructureMethod</SPAN> you created. It must contains
all the relationships between the new model names and the matching implemented class:

<P>
<PRE>
private void initialisenewStructureMethods(){
		newStructureMethod.put("model1-Name", classModel1-Name.class);
		newStructureMethod.put("model2-Name", classModel2-Name.class);
		newStructureMethod.put("model3-Name", classModel3-Name.class);
		[...]
	}
</PRE>

<P>
<SPAN  CLASS="textbf">4)</SPAN> Call this method in the constructor of RegisterMethod :

<P>
<PRE>
public RegisterMethods(){
		[...]
		
		initialisenewStructureMethods();
	}
</PRE>

<P>
<SPAN  CLASS="textbf">5)</SPAN> Create a new <SPAN  CLASS="textit">public static final String</SPAN> as instance variable of the OptionManagement
class in the melting.configuration package. This String represents the new option name you choose
to change the default model used to compute the new structure.

<P>
<PRE>
/**
* Option name to choose another method to compute the 
* new structure.
*/
	public static final String newStructureOption-Name = 
	                                       "option-name";
</PRE>

<P>
<SPAN  CLASS="textbf">6)</SPAN> Fix the default model name to use for each type of hybridization. You have to add
the following lines into the following methods of OptionManagement :

<P>
<PRE>
/**
* initialises the DNADefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialisesDNADefaultOptions() {
		[...]
		this.DNADefaultOptions.put(newStructureOption-Name, 
		                          "DNA-defaultModel-Name");

	}
	
/**
* initialises the RNADefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseRNADefaultOptions() {
		[...]
		this.RNADefaultOptions.put(newStructureOption-Name, 
		                          "RNA-defaultModel-Name");

	}
	
/**
* initialises the hybridDefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseHybridDefaultOptions() {
		[...]
		this.hybridDefaultOptions.put(newStructureOption-Name, 
		                         "DNA/RNA-defaultModel-Name");
		
	}
	
/**
* initialises the mRNADefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseMRNADefaultOptions() {
		[...]
		this.mRNADefaultOptions.put(newStructureOption-Name, 
		                          "mRNA-defaultModel-Name");

	}
</PRE>

<P>
<SPAN  CLASS="textbf">7)</SPAN> Register the new option in the HashMap <SPAN  CLASS="textit">registerPatternModels</SPAN> of OptionManagement.
You just have to add this following line into the method <SPAN  CLASS="textit">private void initialiseRegisterPatternModels()</SPAN>
of OptionManagement :

<P>
<PRE>
/**
* Initialises the registerPatternModels HashMap of the OptionManagement object.
*/
private void initialiseRegisterPatternModels(){
	[...]
		
registerPatternModels.add(newStructureOption-Name);
}
</PRE>

<P>
<SPAN  CLASS="textbf">8)</SPAN> Add in the method <SPAN  CLASS="textit">private void initialisePatternModels()</SPAN> of RegsiterMethods the
following line to register the new structure.

<P>
<PRE>
	private void initialisePatternModels(){
		[...]
		
		// It creates a relationship between the option name 
		// for the new structure and the HashMap containing 
		// the models and the class which can compute the new 
		// structure.
		PatternModel.put(OptionManagement.newStructureMethod, 
		                                 newStructureMethod);
</PRE>

<P>
<SPAN  CLASS="textbf">9)</SPAN> Add a new method in the NucleotiSequences class in the melting.sequences package to be abble 
to recognize if a structure between two positions in the duplex matches the new structure you created.

<P>
<PRE>
// new method to recognize the new structure in the duplex
public boolean isNewStructure(int pos1, int pos2){

[if the subsequences between the positions pos1 and pos2
in the duplex match the new structure, you must return true.]

}
</PRE>

<P>
<SPAN  CLASS="textbf">10)</SPAN> Create a new <SPAN  CLASS="textit">private PatternComputationMethod</SPAN> instance variable in the NearestNeighborMode
class in the melting.nearestNeighborMode package. This new instance represents an object PatternComputationMethod
which is a new instance of one of your implemented class which can compute the new structure.

<P>
<PRE>
/**
* PatternComputationMethod newStructureMethod : represents 
* the model for new structure computation.
*/
	private PatternComputationMethod newStructureMethod;
</PRE>

<P>
<SPAN  CLASS="textbf">11)</SPAN> Create a new method in the NearestNeighborMode class to initialise the PatternComputationMethod 
newStructureMethod :

<P>
<PRE>
private void initialiseNewStructureMethod(){
		// Get the option name (public static final instance 
		// variable of OptionManagement) which allows to change 
		// the model to compute the new structure.
		String optionName = OptionManagement.newStructureOption-Name;
		
		// Get the model name (model name) which allows to change 
		// the model to compute the new structure and initialise the 
		// PatternComputationMethod newStructureMethod.
		String methodName = this.environment.getOptions().get(optionName);
		this.newStructureMethod = initialiseMethod(optionName, methodName);
	}
</PRE>

<P>
<SPAN  CLASS="textbf">12)</SPAN> If the new structure you added contains perfectly matching base pairs, maybe you have to
change the method <SPAN  CLASS="textit">private int [] getPositionsPattern(int pos1)</SPAN> of the NearestNeighborMode class.
<BR>
<BR>
This method defines the positions of a structure in the duplex (a perfectly matching structure or a 
structure composed of non perfectly matching base pairs or composed of modified nucleic acid(s)). 
<BR>
<BR>
If you need the adjacent base pairs to the non perfectly matching base pair or the modified nucleic acid, 
you can add a method which corrects the positions of the structure in the duplex, in the class computing 
the new structure. (see the following example and the Javadoc)

<P>
<PRE>
private int[] correctPositions(int pos1, int pos2, 
                                int duplexLength){
		if (pos1 &gt; 0){
			pos1 --;
		}
		if (pos2 &lt; duplexLength - 1){
			pos2 ++;
		}
		int [] positions = {pos1, pos2};
		return positions;
	}
</PRE>

<P>
<SPAN  CLASS="textbf">13)</SPAN> Change the method <SPAN  CLASS="textit">private PatternComputationMethod getAppropriatePatternModel(int [] positions)</SPAN>
of NearestNeighborMode to add your new structure initialisation.

<P>
<PRE>
// Method to get the adapted PatternComputationMethod to 
// compute the structure defined at the positions int [] 
// positions.
private PatternComputationMethod getAppropriatePatternModel
                                        (int [] positions){

// if the new structure is always a terminal structure, you 
// can change the method here.
if (positions[0] == 0 || positions[1] == 
         environment.getSequences().getDuplexLength() - 1){

[...]
  // call the NucleotidSequences method to recognize the identity 
  // of the new structure
  else if (environment.getSequences().isNewStructure(positions[0], 
                                                   positions[1])){
  
    if (this.newStructureMethod == null){
		initialiseNewStructureMethod(); // initialise the 
		                                //PatternComputationMethod
		                                // newStructureMethod
	}
	return this.newStructureMethod;
  }
}

// if the structure is not always a terminal structure, you can 
// change the method here.
[...]

  // call the NucleotidSequences method to recognize the identity 
  // of the new structure
  else if (environment.getSequences().isNewStructure(positions[0], 
                                                   positions[1])){
  
    if (this.newStructureMethod == null){
		initialiseNewStructureMethod(); // initialise the 
		                                //PatternComputationMethod
		                                // newStructureMethod
	}
	return this.newStructureMethod;
  }
  [...]
}
</PRE>

<P>
<SPAN  CLASS="textbf">14)</SPAN> Create the new class(es) representing your model(s) for the new structure as it is explained
in the section <SPAN  CLASS="textit">How to add new thermodynamic model</SPAN>.

<P>

<H1><A NAME="SECTION00070000000000000000">
How to add new nucleic acids</A>
</H1>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Add the name to the new nucleic acid in the SpecificAcidNames enum in the melting.sequences
package :

<P>
<PRE>
public enum SpecificAcidNames {

	inosine, lockedNucleicAcid, hydroxyadenine, azobenzene, 
	newNucleicAcidName
}
</PRE>

<P>
<SPAN  CLASS="textbf">2)</SPAN> Register the new nucleic acid syntax in the ArrayList <SPAN  CLASS="textit">existingNucleicAcids</SPAN>
of BasePair in the melting.sequences package. You just have to add the following line
into the method <SPAN  CLASS="textit">public static void initialiseNucleicAcidList()</SPAN> of BasePair :

<P>
<PRE>
/**
* initialises the ArrayList existingNucleicAcids of the 
* BasePair class.
*/
	public static void initialiseNucleicAcidList(){
		[...] 
		
		// You have to choose a syntax (String representation) 
		// of the new nucleic acid in the String sequence.
		// It is this syntax which will be recognized by the 
		// program when it analyzes the sequences.
		existingNucleicAcids.add("newAcid-syntax");
	}
</PRE>

<P>
<SPAN  CLASS="textbf">3)</SPAN> Create a relationship between the nucleic acid syntax in the ArrayList 
<SPAN  CLASS="textit">existingNucleicAcids</SPAN> of BasePair and the
nucleic acid name registered in the SpecificAcidNames enum. You have to add
the following line into the method <SPAN  CLASS="textit">public static void initialiseModifiedAcidHashmap()</SPAN>
of NucleotidSequences in the melting.sequences package :

<P>
<PRE>
/**
* initialises the HasMap modifiedAcidNames of the 
* NucleotiSequences class.
*/
	public static void initialiseModifiedAcidHashmap(){
		[...]
		
		modifiedAcidNames.put("newAcid-syntax", 
		    SpecificAcidNames.newNucleicAcidName);
	}
</PRE>

<P>
<SPAN  CLASS="textbf">4)</SPAN> Create a new class to manage the computation of the new nucleic acid as it is
explained in the section <SPAN  CLASS="textit">How to add new thermodynamic model</SPAN>. (a new nucleic
acid is considered as a new structure in the computation of the enthalpy and entropy of
the Crick's pair containing the new nucleic acid.)

<P>

<H1><A NAME="SECTION00080000000000000000">
How to add new corrections for Na, Mg, K, Tris, DMSO and/or formamide</A>
</H1>

<P>

<H2><A NAME="SECTION00081000000000000000">
New ion correction</A>
</H2>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Create a new class which implements the CorrectionMethod interface or, if it is adapted, which
extends the EntropyCorrection class in the melting.correctionMethods package. 
<BR>
<BR>
The class must be created in the adapted package : 
melting.ionCorrection.magnesiumCorrection if it is a new magnesium correction, 
melting.ionCorrection.mixedNaMgCorrection if it is a new mixed monovalent correction, 
magnesium correction or 
melting.ionCorrection.sodiumCorrection if it is a new sodium correction.
<BR>
<BR>
<P>
If you just implement the CorrectionMethod interface, you have to implement the public methods 
<SPAN  CLASS="textit">boolean isApplicable(Environment environment)</SPAN> and <SPAN  CLASS="textit">ThermoResult correctMeltingResults(Environment environment)</SPAN>
The first method is important to define the conditions of application of the ion correction and the 
second is important to correct the computed melting temperature.
<BR>
<BR>
<P>
The EntropyCorrection is a base implementation for ion corrections which directly correct the 
computed entropy and then compute te melting temperature. If you extend EntropyCorrection, you have to
override the public method <SPAN  CLASS="textit">boolean isApplicable(Environment environment)</SPAN> to define the conditions
of application of the ion correction.
<BR>
<BR>
The public method <SPAN  CLASS="textit">ThermoResult correctMeltingResults(Environment environment)</SPAN> is already implemented
by EntropyCorrection but you have to override the method <SPAN  CLASS="textit">protected double correctEntropy(Environment environment)</SPAN>
to correct the computed entropy.
<BR>
<BR>
<P>
<SPAN  CLASS="textbf">2)</SPAN> Register the ion correction name and the class which represents it in the RegisterMethods
class (melting.configuration package). 
You have to add into the function <SPAN  CLASS="textit">private void initialiseIonCorrectionMethod()</SPAN> of RegisterMethods
this following line :

<P>
<PRE>
private void initialiseIonCorrectionMethod(){
		[...]
		
		ionCorrection.put("sodiumCorrection-Name", 
		                               Class-Name.class);
	}
</PRE> 

<P>
<SPAN  CLASS="textbf">3)</SPAN> Don't forget to add a <SPAN  CLASS="textit">private static String</SPAN> instance variable in your class. This
String represents the correction formula you applied to the computed melting temperature or the
computed entropy and must be printed if the verbose mode is required by the user.

<P>
<PRE>
// Create a private static String which represents the 
// correction formula
private static String correctionFormula = "formula";

[...]

// To print the article reference of the correction 
// formula if the verbose mode is required.
OptionManagement.meltingLogger.log(Level.FINE, "article 
                           reference of the correction");

// To print the correction formula (the private static String)
OptionManagement.meltingLogger.log(Level.FINE, 
                                  correctionFormula);

[...]
}
</PRE>

<P>
<SPAN  CLASS="textbf">4)</SPAN> In case of sodium corrections, you can use the method <SPAN  CLASS="textit">public static computesNaEquivalent(environment)</SPAN> 
of the Helper class in melting package to convert the sodium concentration entered by the user
into a sodium equivalent concentration which takes into account the other cations entered 
by the user.

<P>
<PRE>
double NaEq = Helper.computesNaEquivalent(environment);
</PRE>

<P>

<H2><A NAME="SECTION00082000000000000000">
New sodium equivalence formula</A>
</H2>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Create a new class (in the melting.ionCorrection.sodiumEquivalence package) which implements 
the SodiumEquivalenceMethod interface or, if it is adapted, which extends the SodiumEquivalent 
class in the melting.ionCorrection.sodiumEquivalence package. 
<BR>
<BR>
If you just implement the SodiumEquivalenceMethod interface, you have to implement the public methods 
<SPAN  CLASS="textit">double computeSodiumEquivalent(double Na, double Mg, double K, double Tris, double dNTP)</SPAN> and 
<SPAN  CLASS="textit">boolean isApplicable(HashMap&lt;String, String&gt; options)</SPAN>. 
<BR>
<BR>
The first is important to compute a sodium equivalence depending on the ions entered by the user. 
The second method is important to define the conditions of application of the sodium equivalent formula.
<BR>
<BR>
<P>
The SodiumEquivalent is a base implementation for sodium equivalence computation
If you extend SodiumEquivalent, you have to override the public method <SPAN  CLASS="textit">boolean isApplicable(HashMap&lt;String, String&gt; options)</SPAN> 
to define the conditions of application of the sodium equivalence.
The public method <SPAN  CLASS="textit">double computeSodiumEquivalent(double Na, double Mg, double K, double Tris, double dNTP)</SPAN> 
has to be implemented to compute the sodium equivalence.
<BR>
<BR>
<P>
<SPAN  CLASS="textbf">2)</SPAN> Register the sodium equivalence name and the class which represents it in the RegisterMethods
class (melting.configuration package). 
You have to add into the function <SPAN  CLASS="textit">private void initialiseNaEqMethods()</SPAN> of RegisterMethods
this following line :

<P>
<PRE>
private void initialiseNaEqMethods(){
		[...]
		
		NaEqMethod.put("sodiumEquivalence-Name", Class-Name.class);
	}
</PRE> 

<P>
<SPAN  CLASS="textbf">3)</SPAN> Don't forget to add a <SPAN  CLASS="textit">private static String</SPAN> instance variable in your class. This
String represents the correction formula you used to compute the sodium equivalent concentration
and must be printed if the verbose mode is required by the user.

<P>
<PRE>
// Create a private static String which represents the 
// sodium equivalence formula.
private static String equivalenceFormula = "formula";

[...]

// To print the article reference of the sodium equivalence 
// formula if the verbose mode is required.
OptionManagement.meltingLogger.log(Level.FINE, "article 
                                reference of the formula");

// To print the correction formula (the private static String)
OptionManagement.meltingLogger.log(Level.FINE, 
                                      equivalenceFormula);

[...]
}
</PRE>

<P>

<H2><A NAME="SECTION00083000000000000000">
New DMSO and formamide corrections</A>
</H2>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Create a new class which implements the CorrectionMethod interface or, if it is adapted for
a new DMSO correction, which extends the DNADMSOCorrections class in the melting.correctionMethods package.
You must create your class int the adapted package : melting.otherCorrections.dmsoCorrections 
package if it is a DMSO correction or melting.otherCorrections.formamideCorrections package if
it is a formamide correction.
<BR>
<BR>
If you just implement the CorrectionMethod interface, you have to implement the public methods 
<SPAN  CLASS="textit">boolean isApplicable(Environment environment)</SPAN> and <SPAN  CLASS="textit">ThermoResult correctMeltingResults(Environment environment)</SPAN>
The first method is important to define the conditions of application of the correction and the 
second is important to correct the computed melting temperature.
<BR>
<BR>
The DNADMSOCorrections is a base implementation for DMSO corrections and is focused on DNA sequences.
If you extend DNADMSOCorrections, you have to override the public method <SPAN  CLASS="textit">boolean isApplicable(Environment environment)</SPAN> 
to define the conditions of application of the DMSO correction.
The public method <SPAN  CLASS="textit">ThermoResult correctMeltingResults(Environment environment)</SPAN> 
has to be implemented to compute the DMSO correction.
<BR>
<BR>
<P>
<SPAN  CLASS="textbf">2)</SPAN> Register the correction name and the class which represents it in the RegisterMethods
class (melting.configuration package). 
You have to add into one of these functions of RegisterMethods : 
<SPAN  CLASS="textit">private void initialiseDMSOCorrectionMethod()</SPAN> or <SPAN  CLASS="textit">private void initialiseFormamideCorrectionMethod()</SPAN>.
this following line :

<P>
<PRE>
/**
* initialises the DMSOCorrectionMethod HashMap of the 
* RegisterMethods object.
*/
	private void initialiseDMSOCorrectionMethod(){
		[...]
		
		DMSOCorrection.put("DMSOCorrection-Name", 
		                           Class-Name.class);
	}
	
/**
* initialises the formamideCorrectionMethod HashMap of the 
* RegisterMethods object.
*/
	private void initialiseFormamideCorrectionMethod(){
		[...]
		formamideCorrection.put("formamideCorrection-Name", 
		                               Class-Name.class);
	}
</PRE> 

<P>
<SPAN  CLASS="textbf">3)</SPAN> Don't forget to add a <SPAN  CLASS="textit">private static String</SPAN> instance variable in your class. This
String represents the correction formula must be printed if the verbose mode is required by the user.

<P>
<PRE>
// Create a private static String which represents the 
// correction formula.
private static String correctionFormula = "formula";

[...]

// To print the article reference of the correction 
// formula if the verbose mode is required.
OptionManagement.meltingLogger.log(Level.FINE, "article 
                              reference of the formula");

// To print the correction formula (the private static String)
OptionManagement.meltingLogger.log(Level.FINE, 
                                      correctionFormula);

[...]
}
</PRE>

<P>

<H1><A NAME="SECTION00090000000000000000">
How to add new ion and denaturing agent species</A>
</H1>

<P>
<SPAN  CLASS="textbf">1)</SPAN> Create a new method in the Environment class from the melting package. This method
must facilitate the usage of the new ion or denaturing agent species concentration in the
program.

<P>
<PRE>
public double getNewSpecies() {
		if (concentrations.containsKey("newSpecies-Name")){
			return concentrations.get("newSpecies-Name");
		}
		return 0;
	}
</PRE>

<P>
<SPAN  CLASS="textbf">2)</SPAN> If the new species concentration is a "required ion concentration", that's to say the new
species can be the only one species in the solution (no other ions are necessary), you have to 
change the method <SPAN  CLASS="textit">private boolean isRequiredConcentrations()</SPAN> in the Environment class.

<P>
<PRE>
private boolean isRequiredConcentrations(){
		double Na = 0;
		double Mg = 0;
		double K = 0;
		double Tris = 0;
		
		// The new species must be initialised
		double NewSpecies = 0;
		
		if (concentrations.containsKey("Na")){
			Na = concentrations.get("Na");
		}
		if (concentrations.containsKey("Mg")){
			Mg = concentrations.get("Mg");
		}
		if (concentrations.containsKey("K")){
			K = concentrations.get("K");
		}
		if (concentrations.containsKey("Tris")){
			Tris = concentrations.get("Tris");
		}
		
		// To get the concentration of the new species
		if (concentrations.containsKey("newSpecies")){
			Tris = concentrations.get("newSpecies");
		}
		
		// the new species concentration must be strictly positive
		if (Na &gt; 0 || K &gt; 0 || Mg &gt; 0 || Tris &gt; 0 || newSpecies &gt; 0){
			return true;
		}
		return false;
	}
</PRE>

<P>
Now, the future steps depend on the identity of the new species you want to add.

<P>

<H2><A NAME="SECTION00091000000000000000">
New ion species</A>
</H2>

<P>
MELTING is currently using the algorithm from Owczarzy et al, 2008 (see the MELTING documentation
for the complete reference.)to correct the computed melting temperature depending on the ion 
concentrations. This algorithm can take into account the effect of monovalent cations and one divalent
cation : the magnesium.
<BR>
<BR><SPAN  CLASS="textbf">1)</SPAN> If the new ion species can be integrated into the algorithm of Owczarzy et al, 2008, you have to change
the method <SPAN  CLASS="textit">public CorrectionMethod getIonCorrectionMethod (Environment environment)</SPAN> of the 
RegisterMethods class in the melting.configuration package. Otherwise, you must report to the following 
section for <SPAN  CLASS="textit">new denaturing agents</SPAN> even thought the new species is not a denaturing agent.

<P>
<PRE>
public CorrectionMethod getIonCorrectionMethod
                                  (Environment environment){
		
		// A specific ion correction is required by the user.
		if (environment.getOptions().containsKey
		                    (OptionManagement.ionCorrection)){
		[...]
		}
		
		// No specific ion correction is required, the 
		// algorithm from Owczarzy et al, 2008 will now be 
		// used. You have to include your new ion species
		// here.
		else{
		
		// If it is a new monovalent cation, you must change 
		// the monovalent concentration.
		double monovalent = environment.getNa() + environment.getK() 
		                  + environment.getTris() / 2
		                  + environment.getNewSpecies();
		
		[...]
		
		// Here are the important variable you may have to 
		// change to integrate your new ion species (if it 
		// is a divalent cation or other ion and you know a 
		// relationship between magnesium concentration and 
		// this new ion species.)
		double Mg = environment.getMg() - environment.getDNTP();
		double ratio = Math.sqrt(Mg) / monovalent;
		
		[...]
		}
}
</PRE>

<P>
<SPAN  CLASS="textbf">2)</SPAN> If you know a relationship between your new ion species and Na, Mg, Tris or K, don't forget
to add your new ion species in the different classes computing a sodium equivalence in the
melting.ionCorrection.SodiumEquivalent package.
You will have to change the following methods :

<P>
In the different classes from the melting.ionCorrection.SodiumEquivalent package.
<PRE>
public double computeSodiumEquivalent(double Na, double Mg, 
      double K,double Tris, double dNTP, double newSpecies) {
		
		// Change the base implementation in the SodiumEquivalent 
		// class too.
		double NaEq = super.getSodiumEquivalent(Na, Mg, K, Tris, 
		                     dNTP, double newSpecies, parameter);

		[...]

		return NaEq;
	}
</PRE>

<P>
In the SodiumEquivalentMethod interface from the melting.methodInterfaces package.
<PRE>
public double computeSodiumEquivalent(double Na, double Mg, 
            K, double Tris, double dNTP, double newSpecies);
</PRE>

<P>
In the ApproximativeMode class from the melting.approximativeMethods
<PRE>
public void setUpVariables(HashMap&lt;String, String&gt; options) {
		this.environment = new Environment(options);

		if (isNaEqPossible()){
			if (environment.getMg() &gt; 0 || environment.getK() &gt; 0 
			    || environment.getTris() &gt; 0 
			    || environment.getNewSpecies() &gt; 0){
			[...]
			}
		[...]
		}
		[...]
	}
</PRE>

<P>
In the Helper class from the melting package
<PRE>
public static double computesNaEquivalent(Environment 
                                          environment){
		double NaEq = environment.getNa() + environment.getK() 
		              + environment.getTris() / 2 
		              + environment.getNewSpecies();
		[...]
	}
</PRE>

<P>

<H2><A NAME="SECTION00092000000000000000">
New denaturing agent species or other species</A>
</H2>

<P>
<SPAN  CLASS="textbf">1)</SPAN> If the new species is an ion which can't be included in the algorithm from Owczarzy et al. 2008
or if it is a new denaturing agent, you have to create a new instance variable of RegisterMethods in
the melting.cinfiguration package. The new <SPAN  CLASS="textit">private static HashMap&lt;String, Class&lt;? extends CorrectionMethod&#187;</SPAN>
register all the corrections for the new species.

<P>
<PRE>
/**
* HasMap formamideCorrection : contains all the methods for 
* the new species correction.
*/
	private static HashMap&lt;String, Class&lt;? extends CorrectionMethod&gt;&gt; 
	                                   newSpeciesCorrection = 
	  new HashMap&lt;String, Class&lt;? extends CorrectionMethod&gt;&gt;();
</PRE>

<P>
<SPAN  CLASS="textbf">2)</SPAN> You have to create a new method in RegisterMethods to initialise the new HasMap :

<P>
<PRE>
/**
* initialises the newSpeciesCorrectionMethod HashMap of 
* the RegisterMethods object.
*/
	private void initialiseNewSpeciesCorrectionMethod(){
		[...]
		newSpeciesCorrection.put("NewSpeciesCorrection-Name", 
		                                   ClassName.class);
	}
</PRE>

<P>
<SPAN  CLASS="textbf">3)</SPAN> You have to create a new option to give the possibility to change the correction
for the new species. You must add a new <SPAN  CLASS="textit">public static final String</SPAN> in the 
OptionManagement class to register the name of the new option. (melting.configuration package)

<P>
<PRE>
/**
* Option name for to change the default correction for the 
* new species.
*/
	public static final String newSpeciesOption = "Option-Name";
</PRE>

<P>
<SPAN  CLASS="textbf">4)</SPAN> Choose a default new species correction for each type of hybridization in
the following methods of OptionManagement :

<P>
<PRE>
/**
* initialises the DNADefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialisesDNADefaultOptions() {
		[...]
		
		this.DNADefaultOptions.put(newSpeciesOption, 
		                    "DNAdefaultCorrection-Name");
	}
	
/**
* initialises the RNADefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseRNADefaultOptions() {
		[...]
		
		this.RNADefaultOptions.put(newSpeciesOption, 
		                   "RNAdefaultCorrection-Name");

	}
	
/**
* initialises the hybridDefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseHybridDefaultOptions() {
		[...]
		
		this.hybridDefaultOptions.put(newSpeciesOption, 
		                  "DNARNAdefaultCorrection-Name");
		
	}
	
/**
* initialises the mRNADefaultOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseMRNADefaultOptions() {
		[...]
		
		this.mRNADefaultOptions.put(newSpeciesOption, 
		                  "mRNAdefaultCorrection-Name");

	}
</PRE>

<P>
<SPAN  CLASS="textbf">5)</SPAN> You have to register the new option in the HashMap <SPAN  CLASS="textit">registerEnvironmentOptions</SPAN>
of OptionManagement. You just have to add the following line into the method 
<SPAN  CLASS="textit">private void initialiseRegisterEnvironmentOptions()</SPAN> of OptionManagement :

<P>
<PRE>
/**
* Initialises the registerEnvironmentOptions HashMap of the 
* OptionManagement object.
*/
	private void initialiseRegisterEnvironmentOptions(){
		[...]
		
		registerEnvironmentOptions.add(newSpeciesOption);

	}
</PRE>

<P>
<SPAN  CLASS="textbf">6)</SPAN> You have to register the new species and the new corrections for it in RegisterMethods (melting.configuration package).
You must add the following line to the method <SPAN  CLASS="textit">private void initialiseOtherCorrectionMethod()</SPAN> :

<P>
<PRE>
/**
* initialises the otherCorrectionMethod HashMap of the 
* RegisterMethods object.
*/
	private void initialiseOtherCorrectionMethod(){
		[...]
		
		// create a relationship between the new option and 
		//the corrections registered for the new species.
		otherCorrection.put(OptionManagement.newSpeciesOption, 
		                                 newSpeciesCorrection);
	}
</PRE>

<P>
<SPAN  CLASS="textbf">7)</SPAN> You have to complete the method <SPAN  CLASS="textit">public ThermoResult computeOtherMeltingCorrections(Environment environment)</SPAN>
of RegisterMethods. This method is important to correct the melting temperature if another ion or denaturing agent species
are present :

<P>
<PRE>
public ThermoResult computeOtherMeltingCorrections(Environment 
                                                 environment){
		[...]
		
 // Check if the new species is present in the environment
 if (environment.getNewSpecies() &gt; 0){
 
// Get the correction associated with the option name of the 
// new species.
CorrectionMethod newSpeciesCorrection = 
getCorrectionMethod(OptionManagement.newSpeciesCorrection, 
environment.getOptions().get(OptionManagement.newSpeciesCorrection));
			
if (newSpeciesCorrection == null){
	throw new NoExistingMethodException("There is no implemented 
	                                    new species correction.");
}
else if (newSpeciesCorrection.isApplicable(environment)){
environment.setResult
    (newSpeciesCorrection.correctMeltingResults(environment));
}
else {
	throw new MethodNotApplicableException("The new species correction 
	   is not applicable with this environment 
	   (option " + OptionManagement.newSpeciesCorrection + ").");
}
}
</PRE>

<P>
<SPAN  CLASS="textbf">8)</SPAN> Create a new class for the new species corrections as it is explained in the section
<SPAN  CLASS="textit">How to add new corrections for Na, Mg, K, Tris, DMSO and/or formamide</SPAN>.

<P>

<H1><A NAME="SECTION000100000000000000000">
How to change the default textitMelting options</A>
</H1>

<P>
You can change the default textitMelting options in the OptionManagement class from the
melting.configuration package. There are different default oprions for each type of hybridization.

<P>
<PRE>
	/**
	 * initialises the DNADefaultOptions HashMap of the 
	 * OptionManagement object.
	 */
	private void initialisesDNADefaultOptions() {
		this.DNADefaultOptions.put(NNMethod, "san04");
		this.DNADefaultOptions.put(singleMismatchMethod, "allsanpey");
		this.DNADefaultOptions.put(tandemMismatchMethod, "allsanpey");
		this.DNADefaultOptions.put(internalLoopMethod, "san04");
		this.DNADefaultOptions.put(singleDanglingEndMethod, "bom00");
		this.DNADefaultOptions.put(doubleDanglingEndMethod, "sugdna02");
		this.DNADefaultOptions.put(singleBulgeLoopMethod, "tan04");
		this.DNADefaultOptions.put(longDanglingEndMethod, "sugdna02");
		this.DNADefaultOptions.put(longBulgeLoopMethod, "san04");
		this.DNADefaultOptions.put(approximativeMode, "wetdna91");
		this.DNADefaultOptions.put(DMSOCorrection, "ahs01");
		this.DNADefaultOptions.put(formamideCorrection, "bla96");
		this.DNADefaultOptions.put(inosineMethod, "san05");
		this.DNADefaultOptions.put(hydroxyadenineMethod, "sug01");
		this.DNADefaultOptions.put(azobenzeneMethod, "asa05");
		this.DNADefaultOptions.put(lockedAcidMethod, "mct04");
		this.DNADefaultOptions.put(NaEquivalentMethod, "ahs01");

	}
	
	/**
	 * initialises the RNADefaultOptions HashMap of the 
	 * OptionManagement object.
	 */
	private void initialiseRNADefaultOptions() {
		this.RNADefaultOptions.put(NNMethod, "xia98");
		this.RNADefaultOptions.put(singleMismatchMethod, "zno07");
		this.RNADefaultOptions.put(wobbleBaseMethod, "tur99");
		this.RNADefaultOptions.put(tandemMismatchMethod, "tur06");
		this.RNADefaultOptions.put(internalLoopMethod, "tur06");
		this.RNADefaultOptions.put(singleBulgeLoopMethod, "tur06");
		this.RNADefaultOptions.put(longBulgeLoopMethod, "tur06");
		this.RNADefaultOptions.put(CNGMethod, "bro05");
		this.RNADefaultOptions.put(approximativeMode, "wetrna91");
		this.RNADefaultOptions.put(inosineMethod, "zno07");
		this.RNADefaultOptions.put(NaEquivalentMethod, "ahs01");
		this.RNADefaultOptions.put(DMSOCorrection, "ahs01");
		this.RNADefaultOptions.put(formamideCorrection, "bla96");
		this.RNADefaultOptions.put(singleDanglingEndMethod, "ser08");
		this.RNADefaultOptions.put(doubleDanglingEndMethod, "ser06");
		this.RNADefaultOptions.put(longDanglingEndMethod, "sugrna02");

	}
	
	/**
	 * initialises the hybridDefaultOptions HashMap of the 
	 * OptionManagement object.
	 */
	private void initialiseHybridDefaultOptions() {
		this.hybridDefaultOptions.put(NNMethod, "sug95");
		this.hybridDefaultOptions.put(approximativeMode, "Wetdnarna91");
		this.hybridDefaultOptions.put(NaEquivalentMethod, "ahs01");
		this.hybridDefaultOptions.put(DMSOCorrection, "ahs01");
		this.hybridDefaultOptions.put(formamideCorrection, "bla96");
		
	}
	
	/**
	 * initialises the mRNADefaultOptions HashMap of the 
	 * OptionManagement object.
	 */
	private void initialiseMRNADefaultOptions() {
		this.mRNADefaultOptions.put(NNMethod, "tur06");
		this.mRNADefaultOptions.put(NaEquivalentMethod, "ahs01");
		this.mRNADefaultOptions.put(DMSOCorrection, "ahs01");
		this.mRNADefaultOptions.put(formamideCorrection, "bla96");

	}
</PRE>

<P>

<H1><A NAME="SECTION000110000000000000000">
XML Files</A>
</H1>

<P>

<H2><A NAME="SECTION000111000000000000000">
General information</A>
</H2>

<P>
All the XML files containing the thermodynamic parameters are in the Data folder. In each 
file, I put the data set of a scientific article or I collected the complementary data set 
of several articles. 
<BR>
<BR>
I have used the name <SPAN  CLASS="textit">data</SPAN> for the main node of each XML file. The name of a <SPAN  CLASS="textit">data</SPAN>
subnode is choosen depending on the structure and the model they are made for. You can see the different
existing subnode and existing attributes in the following section.
The enthalpy and entropy value are in cal/mol and are put as character of the subsubnodes enthalpy
and entropy. (see the following example)

<P>
<PRE>
&lt;data type="crick"&gt;
		&lt;neighbor sequence="AA/TT"&gt;
	        &lt;enthalpy&gt;-7900.0&lt;/enthalpy&gt;
            &lt;entropy&gt;-22.2&lt;/entropy&gt;
	    &lt;/neighbor&gt; 
	   	&lt;neighbor sequence="AC/TG"&gt;
	        &lt;enthalpy&gt;-8400.0&lt;/enthalpy&gt;
            &lt;entropy&gt;-22.4&lt;/entropy&gt;
	   	&lt;/neighbor&gt; 
	   	
	   	[...]
	   	
	   	 &lt;initiation type="per-G/C"&gt;
            &lt;enthalpy&gt;100.0&lt;/enthalpy&gt;
            &lt;entropy&gt;-2.8&lt;/entropy&gt;
        &lt;/initiation&gt;  
        
        &lt;symmetry&gt;
            &lt;enthalpy&gt;0.0&lt;/enthalpy&gt;
            &lt;entropy&gt;-1.4&lt;/entropy&gt;
        &lt;/symmetry&gt;
&lt;/data&gt;
</PRE>

<P>
Each enthalpy and entropy value are stocked into a Thermodynamics object. (see the Javadoc for the
Thermodynamics class from melting package)

<P>

<H2><A NAME="SECTION000112000000000000000">
List of existing nodes and attributes</A>
</H2>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Node name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">data</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">crick</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">single-mismatch</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">tandem-mismatch</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">long-mismatch</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">modified-nucleotides</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">repeats</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">single-bulge-loop</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">long-bulge-loop</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">single-dangling-end</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">double-dangling-end</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">long-dangling-end</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">wobble</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H3><A NAME="SECTION000112100000000000000">
Parameters for perfectly matching structures</A>
</H3>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Subnode name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">neighbor</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">crick's pair XX/XX</TD>
</TR>
<TR><TD ALIGN="CENTER">initiation</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">one-GC-Pair</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">all-AT-pairs</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">per-A/T</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">perG/C</TD>
</TR>
<TR><TD ALIGN="CENTER">terminal</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">per-A/U</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">per-A/T</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">5-T/A</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H3><A NAME="SECTION000112200000000000000">
Parameters for structures containing wobble base pair, single mimsatch, tandem mismatches or internal loop</A>
</H3>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Subnode name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">mismatch</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">crick's pair XX/XX</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">YRR/RRY</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">RYY/YYR</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">YYR/RYY</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">YRY/RYR</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">RRY/YYR</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">size</TD>
<TD ALIGN="CENTER">X (number of nucleotides)</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">initiation</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">first-non-canonical-pair</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">loop</TD>
<TD ALIGN="CENTER">1x2</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">1xn-n&gt;2</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">2x3</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">others-non-2x2</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">1x1</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">closing</TD>
<TD ALIGN="CENTER">G/C</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">C/G</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">U/A</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">A/U</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">not-G/C</TD>
</TR>
<TR><TD ALIGN="CENTER">closure</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">per-A/U</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">per-G/U</TD>
</TR>
<TR><TD ALIGN="CENTER">asymetry</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="CENTER">penalty</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">G/G-adjacent-AA-or-nonCanonicalPyrimidine</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">AG-GA-UU-adjacent-UU-CU-CC-AA</TD>
</TR>
<TR><TD ALIGN="CENTER">parameters</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">A/A</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">G/G</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">U/U</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H3><A NAME="SECTION000112300000000000000">
Parameters for structures containing bulge loop</A>
</H3>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Subnode name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">bulge</TD>
<TD ALIGN="CENTER">size</TD>
<TD ALIGN="CENTER">X (number of nucleotides)</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">trinucleotide XXX/XXX</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">initiation</TD>
</TR>
<TR><TD ALIGN="CENTER">closure</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">per-A/U</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">per-G/U</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H3><A NAME="SECTION000112400000000000000">
Parameters for structures containing specific nucleic acids</A>
</H3>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Subnode name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">modified</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">XXX/XX or XXXX/XX</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">trans</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">cys</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">sens</TD>
<TD ALIGN="CENTER">3</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">5</TD>
</TR>
<TR><TD ALIGN="CENTER">closure</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">per-A/U</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">per-G/U</TD>
</TR>
<TR><TD ALIGN="CENTER">terminal</TD>
<TD ALIGN="CENTER">type</TD>
<TD ALIGN="CENTER">per-I/U</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H3><A NAME="SECTION000112500000000000000">
Parameters for structures containing CNG repeats</A>
</H3>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Subnode name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">CNG</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">CNG pattern XXX</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">repeats</TD>
<TD ALIGN="CENTER">2 to 7</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H3><A NAME="SECTION000112600000000000000">
Parameters for structures containing dangling end</A>
</H3>

<P>
<BR><P></P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TH ALIGN="CENTER"><SPAN  CLASS="textbf">Subnode name</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">Attributes</SPAN></TH>
<TH ALIGN="CENTER"><SPAN  CLASS="textbf">attributes values</SPAN></TH>
</TR>
<TR><TD ALIGN="CENTER">dangling</TD>
<TD ALIGN="CENTER">sequence</TD>
<TD ALIGN="CENTER">dangling end XX/X, XXX/X or XXXX/X</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">sens</TD>
<TD ALIGN="CENTER">5</TD>
</TR>
<TR><TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">3</TD>
</TR>
</TABLE>
</DIV>
<BR>

<P>

<H2><A NAME="SECTION000113000000000000000">
what to change if you add new subnodes or new attributes</A>
</H2>

<P>
The current Handler classes in the package melting.handlers can manage
this type of node hierarchy :

<P>
<PRE>
&lt;data type="strucure-type"&gt;
	&lt;subnode attribute1="value1" attribute2="value2"&gt;
		&lt;enthalpy&gt;xx[...]xx.x&lt;/enthalpy&gt;
		&lt;entropy&gt;xx[...]xx.x&lt;/entropy&gt;
	&lt;/subnode&gt; 
	   	
	   	[...]
	
	&lt;subnode sequence="AA/TT"&gt;
		&lt;enthalpy&gt;xx[...]xx.x&lt;/enthalpy&gt;
		&lt;entropy&gt;xx[...]xx.x&lt;/entropy&gt;
	&lt;/subnode&gt; 	   	
&lt;/data&gt;
</PRE>

<P>
<SPAN  CLASS="textbf">1)</SPAN> You have to register your new attribute in the DataHandler class in the melting.handlers
package. You need to change the method <SPAN  CLASS="textit">public void endElement(String uri, String localName, String name)</SPAN> 
to build the matching key in the dictionnary which will contain the thermodynamic parameters :

<P>
<PRE>
	@Override
	public void endElement(String uri, String localName, String name)
			throws SAXException {
		if (subHandler != null) {
			subHandler.endElement(uri, localName, name);
			if (subHandler.hasCompletedNode()) {
				ThermoHandler handler = (ThermoHandler) subHandler;
				String key = name;
				if (handler.getAttribut().containsKey("type")) {
					key += handler.getAttribut().get("type");
				}
				[...]
				
				// Add your new attribute here
			if (handler.getAttribut().containsKey("newAttribute-Name")) {
			key += "subnode-Name" + handler.getAttribut().get("newAttribute-Name");
			}
				[...]
	}
</PRE>

<P>
The dictionnary key for each thermodynamic parameter mostly has the following syntax,

<P>
<SPAN  CLASS="textit">Subnode-nameAttribute1Value1Attribute2Value2</SPAN>

<P>
but it can be different for some attributes. (see the method in details)
<BR>
<BR><SPAN  CLASS="textbf">2)</SPAN> You have to create (or change) a method in the DataCollect class from the melting package
to more easily get the thermodynamic parameters you need. See the example below :

<P>
<PRE>
/**
* to get the Thermodynamics object containing the parameters 
* for the base pair (base1, base2) next to the mismatching 
* base pair.
* @param string base1 : from the sequence (5'3')
* @param string base2 : from the complementary sequence (3'5')
* @return Thermodynamics object containing the parameters for 
* the base pair (base1, base2) next to the mismatching base pair.
*/
public Thermodynamics getClosureValue(String base1, String base2){
		Thermodynamics s = data.get("closure"+"per-"+base1 + "/" 
		                            + base2);
		return s;
	}
	
// Your method can be similar to the following method
public Thermodynamics getNewThermodynamicParameter1(arg-1, ..., arg-n){
	Thermodynamics s = data.get("node-name"+"attribute-1"+value-1 
	                             +[...]+"attribute-n"+value-n);
	return s;
}
</PRE>

<P>

<H1><A NAME="SECTION000120000000000000000">
How to change the default ion corrections</A>
</H1>

<P>
You can change the default ion corrections in the method 
<SPAN  CLASS="textit">public CorrectionMethod getIonCorrectionMethod (Environment environment)</SPAN>
of the class RegisterMethod from the melting.configuration package.

<P>

<H1><A NAME="SECTION000130000000000000000">
About this document ...</A>
</H1>
 <STRONG><SMALL>MELTING</SMALL> - development guide</STRONG><P>
This document was generated using the
<A HREF="http://www.latex2html.org/"><STRONG>LaTeX</STRONG>2<tt>HTML</tt></A> translator Version 2002-2-1 (1.71)
<P>
Copyright &#169; 1993, 1994, 1995, 1996,
Nikos Drakos, 
Computer Based Learning Unit, University of Leeds.
<BR>
Copyright &#169; 1997, 1998, 1999,
<A HREF="http://www.maths.mq.edu.au/~ross/">Ross Moore</A>, 
Mathematics Department, Macquarie University, Sydney.
<P>
The command line arguments were: <BR>
 <STRONG>latex2html</STRONG> <TT>-split 0 DeveloppersGuide.tex</TT>
<P>
The translation was initiated by Computational Neurobiology on 2009-08-13
<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<IMG WIDTH="81" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next_inactive"
 SRC="/usr/share/latex2html/icons/nx_grp_g.png"> 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up_g.png"> 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev_g.png">   
<BR></DIV>
<!--End of Navigation Panel-->
<ADDRESS>
Computational Neurobiology
2009-08-13
</ADDRESS>
</BODY>
</HTML>