File size: 35,171 Bytes
7e59e4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<chapter id="NamingConventions" xreflabel="Naming Conventions">
<!-- Begin CVS Header -->
<!--   $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/admin/documentation/CodeGuidelines_main.xml,v $ -->
<!--   $Revision: 1.12 $ -->
<!--   $Name:  $ -->
<!--   $Author: shoops $ -->
<!--   $Date: 2007/09/21 18:19:30 $ -->
<!-- End CVS Header -->

<!-- Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual -->
<!-- Properties, Inc. and EML Research, gGmbH. -->
<!-- All rights reserved. -->

<title>Naming Conventions</title>
<para>
The intent of naming conventions is to allow programmers, which are
not familiar with the code to easily grasp the meaning and scope of
symbols in the source code. Each programmer of COPASI should adhere
for its own benefit and to the advantage of the project to the
following conventions.
</para>

<sect1 id="ClassNames" xreflabel="Class Names">
<title>Class Names</title>
<para>
Class names must all start with a capital letter <literal>C</literal>. This is
followed by a descriptive name. This name might be composed by
different words. These words must all start with capital letters and
are concatenated without underscores. Good examples for class names
include: 
  <literal>CCopasiXMLParser</literal> , <literal>CExpatTemplate</literal>, and <literal>CMathModel</literal>.
</para>
</sect1>

<sect1 id="VariableNames" xreflabel="Variable Names">
<title>Variable Names</title>
<para>
In general a variable name should be descriptive. This name might be
composed by different words. These words must all start with capital
letters and are concatenated without underscores. In addition the
following standards should be followed:  
</para>

<simplelist type="horiz" columns="2">
<member><command>Counters</command></member>
<member>might be used such as <literal>i</literal>, <literal>k</literal>,
and <literal>l</literal>, which may be used in loops.
</member>
<member><command>Iterators</command></member><member> might be used such as <literal>it</literal> and <literal>end</literal>, which may be used in loops. 
</member>
<member><command>Pointers</command></member><member> are prepended with a lower case letter <literal>p</literal>. 
</member>
<member><command>Method Parameters</command></member><member> must start with a lower case letter.
</member>
<member><command>Class Member Variables</command></member><member> are prepended with a lower case
  letter <literal>m</literal>.
</member>
<member><command>Class Member Pointers</command></member><member> must have the
  prefix <literal>mp</literal>.
</member>
</simplelist>

</sect1>

<sect1 id="MethodName" xreflabel="Method Name">
<title>Method Name</title>
<para>
Method names should have a descriptive name starting with a lower case
letter. This name might be composed by different words. These words
beginning with the second must start with capital letters and
are concatenated without underscores. Good examples for method names
include: 
   <literal>createMetabolite</literal>, <literal>compileIfNecessary</literal>, and <literal>buildMoieties</literal>
</para>

<para>
In addition the following standards should be followed:  
</para>

<simplelist type="horiz" columns="2">

<member><command>Retrieval Methods</command></member><member> must start with <literal>get</literal> followed by
  the member variable name without the prefix.
</member>

<member><command>Set Methods</command></member><member> must start with <literal>set</literal> followed by
  the member variable name without the prefix.
</member>

<member><command>Boolean Query Functions</command></member><member> should start if applicable with
  <literal>is</literal>.
</member>
</simplelist>
</sect1>
</chapter>

<chapter id="ProgramCodeGuidelines" xreflabel="Program Code Guidelines">
<title>Program Code Guidelines</title>

<sect1 id="include" xreflabel="include">
<title>Use of #include </title>
<para>
To minimize compilation problems on the different platforms and with
the libraries COPASI depends on it is necessary to define some rules,
which need to be followed when specifying include files in the COPASI
code.  
</para>
<para> The #include statement distinguishes between two different type
of include files. 
</para>

<itemizedlist>
<listitem><para><command>Global Includes: </command>Global include files are
indicated by surrounding the filename with &lt; and &gt;, i.e. the
statements looks like: <literal>#include &lt;filename&gt;</literal>. 
All files not located in the COPASI source tree are considered global includes.
</para></listitem>

<listitem><para><command>Local Includes: </command>Local include files are
indicated by surrounding the filename with double quotes, i.e. the
statements looks like: <literal>#include "filename"</literal>. 
All files located in the COPASI source tree are considered local includes.
</para></listitem>
</itemizedlist>

<sect2 id="includeHeader" xreflabel="include Header">
<title>Order of #include in Header Files</title>
<para>
The number of include statements in header files should be kept to the
minimum necessary to compile the header file, i.e., a COPASI code file
just containing the following two lines of code must compile successfully:
</para>
<programlisting>
#include "copasi.h"
#include "filename"
</programlisting>
<para>
To achieve the minimal list of includes one should replace all not
needed includes with forward declarations as often as possible. Please
note that it should never be necessary to include <literal>copasi.h
</literal> in a header file.
</para>
<orderedlist>
<listitem><para><command>Qt Header Files: </command>Qt header
files must appear first. Please note that the Qt header file names are
all lowercase.</para></listitem>
<listitem><para><command>Global Header Files: </command>Other
global header files must appear next.</para></listitem>
<listitem><para><command>COPASI Header Files: </command>All COPASI
header files must be included with the full filename starting with the
<literal>copasi </literal> directory, i.e., the include statement
looks like <literal>#include "copasi/.." </literal></para></listitem>
</orderedlist>

</sect2>
<sect2 id="includeCode" xreflabel="include Code">
<title>Order of #include in Code Files</title>
<orderedlist>
<listitem><para><command>Qt Header Files: </command>Qt header
files must appear first. Please note that the Qt header file names are
all lowercase.</para></listitem>
<listitem><para><command>Global Header Files: </command>Other
global header files must appear next.</para></listitem>
<listitem><para><command>copasi.h: </command>This file must precede
all other local includes since they depend on the defines
of <literal>copasi.h </literal> to be present. </para></listitem>
<listitem><para><command>COPASI Header Files: </command>COPASI
header files must be included after
<literal>copasi.h</literal>. </para></listitem> 
<listitem><para><command>blaswrap.h or clapackwrap.h: </command>These two
wrapper files must appear last as their defines often conflict with
other includes.</para></listitem>
</orderedlist>
<para>

</para>
</sect2>

</sect1>

<sect1 id="Loops" xreflabel="Loops">
<title>Loops</title>
<para>
Counter or iterators used in loops must not be declared in the
<literal>for</literal> statement as the scope of the variables
declared within is not well defined in C and C++ standard and thus
leads to compile problems. The solution is to define those variables
prior to the <literal>for</literal> statement. 
</para>
</sect1>
</chapter>

<chapter id="CodeDocumentation" xreflabel="Code Documentation">
<title>Code Documentation</title>
<sect1 id="ClassDocumentation" xreflabel="Class Documentation">
<title>Class Documentation</title>
<para>
The COPASI team uses doxygen to generate API documentation. It is
therefore necessary that the classes, methods, and variables or
documented completely.
</para>
</sect1>

<sect1 id="VariableDocumentation" xreflabel="Variable Documentation">
<title>Variable Documentation</title>
<para></para>
</sect1>

<sect1 id="MethodDocumentation" xreflabel="Method Documentation">
<title>Method Documentation</title>
<para></para>
</sect1>

<sect1 id="InclineCodeDocumentation" xreflabel="Incline Code Documentation">
<title>Incline Code Documentation</title>
<para></para>
</sect1>
</chapter>

<chapter id="COPASIObjectStructure" xreflabel="COPASI Object Structure">
<title>COPASI Object Structure</title>
<para>
COPASI has an object structure which is used to access all objects
which can be calculated, plotted, or printed. Objects can be grouped to
larger objects called containers. COPASI itself functions as a root
container, i.e., it contains all objects which might be of interest
for calculation or output. The access to any object is provided with
an LDAP like common name (CN) which can be resolved starting from any
container.
</para>

<sect1 id="Object" xreflabel="Object">
<title>Object</title>
<para>
The object (<literal>class CCopasiObject</literal>) is the main
building block of the object structure. Each object has the following
main attributes: 

<variablelist><title>Attribute List</title>

<varlistentry><term><literal>std::string mObjectName</literal></term>
<listitem><para>The name of the object.
</para></listitem></varlistentry>

<varlistentry>
<term><literal>std::string mObjectType</literal></term>
<listitem><para>The type of the object, e.g. Compartment.
</para></listitem></varlistentry>

<varlistentry>
<term><literal>CCopasiContainer * mpObjectParent</literal></term>
<listitem><para>A pointer to the objects parent container.
</para></listitem></varlistentry>

<varlistentry>
<term><literal>unsigned int mObjectFlag</literal></term>
<listitem><para>A flag indicating object properties.
</para></listitem></varlistentry>
</variablelist>

</para>

<para>
In addition to the expected <literal>get</literal> and
<literal>set</literal> methods the objects provides the following
methods: 

<variablelist><title>Method List</title>
<varlistentry>
<term><literal>CCopasiContainer * getObjectAncestor(const std::string
&amp;type) const</literal></term>
<listitem><para>This method retrieves the closest ancestor of the object of
the specified type. 
</para></listitem></varlistentry>

<varlistentry>
<term><literal>virtual CCopasiObjectName getCN() const</literal></term>
<listitem><para>This method retrieve the common name (CN) of the object.
</para></listitem></varlistentry>

<varlistentry>
<term><literal>

</literal></term>
<listitem><para>

</para></listitem></varlistentry>

</variablelist>

</para>
</sect1>

<sect1 id="Container" xreflabel="Container">
<title>Container</title>
<para></para>
</sect1>

<sect1 id="COPASIVector" xreflabel="COPASI Vector">
<title>COPASI Vector</title>
<para></para>
</sect1>

<sect1 id="Parameter" xreflabel="Parameter">
<title>Parameter</title>
<para></para>
</sect1>

<sect1 id="ParameterGroup" xreflabel="Parameter Group">
<title>Parameter Group</title>
<para></para>
</sect1>

<sect1 id="Dependencies" xreflabel="Dependencies">
<title>Dependencies</title>
<para></para>
</sect1>
</chapter>

<chapter id="TheModelState" xreflabel="The Model State">
<title>The Model State</title>
<sect1 id="StateTemplateOrder" xreflabel="State Template Order">
<title>State Template Order</title>
<para>
This section describes whether and in which order the above calculated
simulation objects appear in the initial and current state of the
model. The order is described by the class CStateTemplate. Please note
that all objects with the type "Fixed" are marked "Unused" as there is
no need to calculate them during simulation.
</para>
<table frame="all"><title>State Template Order</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="2*" />
<colspec colwidth="2*" />
<thead>
 <row>
   <entry>Object</entry>
   <entry>Type</entry>
   <entry>Status</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Model</entry>
   <entry>Time</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Model Value</entry>
   <entry>ODE</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Compartment</entry>
   <entry>ODE</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Metabolite</entry>
   <entry>ODE</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Metabolite</entry>
   <entry>Reaction</entry>
   <entry>Independent</entry>
 </row>
 <row>
   <entry>Metabolite</entry>
   <entry>Reaction</entry>
   <entry>Dependent</entry>
 </row>
 <row>
   <entry>Metabolite</entry>
   <entry>Assignment</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Compartment</entry>
   <entry>Assignment</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Model Value</entry>
   <entry>Assignment</entry>
   <entry>Used</entry>
 </row>
 <row>
   <entry>Any</entry>
   <entry>Any</entry>
   <entry>Unused</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect1>

<sect1 id="SettingTheInitialState" xreflabel="Setting the Initial State">
<title>Setting the Initial State</title>
<para>
The initial state of a COPASI model is due to the introduction of
assignments for all model entities no longer determined through fixed
values. To calculate the current initial values those assignments have
to be evaluated at <inlineequation><mml:math>
<mml:mi>t</mml:mi>
<mml:mo>=</mml:mo>
<mml:msub>
 <mml:mi>T</mml:mi>
 <mml:mn>0</mml:mn>
</mml:msub>
</mml:math></inlineequation>. These evaluation will effect in many cases
other initial values. For example the initial particle numbers of
metabolites will change when a compartment's initial volume
changes. To detemine the initial values, which need to be recalculated
as well as the functions used for their calculation COPASI uses a
dependecy system. In this system each initial value stores the
information on which values it depends and which method to call to
recalculated its value. 
</para>
<para>
Since the change of one initial value may now result in a complicated
chain of updates for other initial values it no longer suffices to
use its update method to set its value. We need to add an additional
step which will update all values effected by the change. To retrive
the list of needed refreshes in the proper order the class CModel
provides the following method.
</para>
<variablelist>
<varlistentry>
<term><literal>vector&lt;Refresh *&gt;
buildInitialRefreshSequence(set&lt;const CCopasiObject *&gt; &amp;changedObjects);</literal></term>
<listitem><para>
This method retrieves a vector of refresh methods, which must be called
to update all other initial values given a set of changed objects. If
the set of changed objects is empty the method will return a vector
of refresh method, which suffices to synchronize all initial values.
</para></listitem></varlistentry>
e
</variablelist>
</sect1>

<sect1 id="SettingTheState" xreflabel="Setting the State">
<title>Setting the State</title>
<para></para>
</sect1>

<sect1 id="ApplyingAssignemets" xreflabel="Applying Assignemets">
<title>Applying Assignments</title>
<para></para>
</sect1>

<sect1 id="CalculatingCurrentValues" xreflabel="Calculating Current Values">
<title>Calculating Current Values</title>
<para></para>
</sect1>

<sect1 id="DependencySpecifications" xreflabel="Dependency Specifications">
<title>Dependency Specifications</title>

<sect2 id="InitialValues" xreflabel="Initial Values">
<title>Initial Values</title>
<sect3 id="MetaboliteWithAssignment" 
 xreflabel="Metabolite with Assignment">
<title>Metabolite with Assignment</title>

<table frame="all"><title>Metabolite with Assignment</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Initial Particle Number</entry>
   <entry>Initial Concentration, parent compartment Volume</entry>
   <entry>refreshInititalValue</entry>
 </row>
 <row>
   <entry>Initial Concentration</entry>
   <entry>all objects in implicit expression</entry>
   <entry>refreshInitialConcentration</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="MetaboliteWithoutAssignment" 
 xreflabel="Metabolite without Assignment">
<title>Metabolite without Assignment</title>

<table frame="all"><title>Metabolite without Assignment</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Initial Particle Number</entry>
   <entry>initial concentration, parent compartment volume</entry>
   <entry>refreshInitialValue</entry>
 </row>
 <row>
   <entry>Initial Concentration</entry>
   <entry>parent compartment Volume</entry>
   <entry>refreshInititalConcentration</entry>
 </row>
</tbody>
</tgroup>
</table>
<para>
The initial concentration is of course dependent on the initial
particle number. This must be taken into account manually to avoid
circular depencies. However, this is straight forward as the initial
particle number may only be set directly, in which case no further
dependencies are encountered or calculated from the initial
concentration in the case the concentration is given the normal 
dependecies take care of the problem.
</para>
</sect3>

<sect3 id="CompartmentGlobalQuantityWithAssignment" 
 xreflabel="Compartment, Global Quantity with Assignment">
<title>Compartment, Global Quantity with Assignment</title>

<table frame="all">
<title>Compartment, Global Quantity with Assignment</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Initial Value</entry>
   <entry>all objects in implicit expression</entry>
   <entry>refreshInitialValue</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="CompartmentGlobalQuantityWithoutAssignment" 
 xreflabel="Compartment, Global Quantity without Assignment">
<title>Compartment, Global Quantity without Assignment</title>

<table frame="all">
<title>Compartment, Global Quantity without Assignment</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Initial Value</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="MoietyInitial" xreflabel="MoietyInitial">
<title>Moiety</title>

<table frame="all">
<title>Moiety</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Initial Number</entry>
   <entry>Particle numbers of all involved metabolites</entry>
   <entry>refreshInitialValue</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

</sect2>

<sect2 id="TransientValues" xreflabel="Transient Values">
<title>Transient Values</title>

<sect3 id="MetaboliteReaction" xreflabel="Metabolite Reaction">
<title>Metabolite Reaction (Independent)</title>
<table frame="all"><title>Metabolite Reaction (Independent)</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Particle Number</entry>
   <entry>Self (state controlled)</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Concentration</entry>
   <entry>Particle Number, parent compartment Volume</entry>
   <entry>refreshConcentration</entry>
 </row>
 <row>
   <entry>Particle Rate</entry>
   <entry>All particle fluxes of reactions the metabolites participates in</entry>
   <entry>refreshRate</entry>
 </row>
 <row>
   <entry>Concentration Rate</entry>
   <entry>Particle Rate, Concentration, parent compartment Volume and Rate</entry>
   <entry>refreshConcentrationRate</entry>
 </row>
 <row>
   <entry>Transition Time</entry>
   <entry>All particle fluxes of reactions the metabolites participates in</entry>
   <entry>refreshTransitionTime</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="MetaboliteDependent" xreflabel="Metabolite Dependent">
<title>Metabolite Reaction (Dependent)</title>
<table frame="all"><title>Metabolite Reaction (Dependent)</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Particle Number</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Concentration</entry>
   <entry>Particle Number, parent compartment Volume</entry>
   <entry>refreshConcentration</entry>
 </row>
 <row>
   <entry>Particle Rate</entry>
   <entry>All particle fluxes of reactions the metabolites participates in</entry>
   <entry>refreshRate</entry>
 </row>
 <row>
   <entry>Concentration Rate</entry>
   <entry>Particle Rate, Concentration, parent compartment Volume and Rate</entry>
   <entry>refreshConcentrationRate</entry>
 </row>
 <row>
   <entry>Transition Time</entry>
   <entry>All particle fluxes of reactions the metabolites participates in</entry>
   <entry>refreshTransitionTime</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="MetaboliteAssignmentConcentration" xreflabel="Metabolite Assignment (Concentration)">
<title>Metabolite Assignment (Concentration)</title>
<table frame="all"><title>Metabolite Assignment (Concentration)</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Particle Number</entry>
   <entry>Concentration, parent compartment Volume</entry>
   <entry>refreshNumber</entry>
 </row>
 <row>
   <entry>Concentration</entry>
   <entry>all objects in expression</entry>
   <entry>calculate</entry>
 </row>
 <row>
   <entry>Particle Rate (NA)</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Concentration Rate (NA)</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Transition Time (NA)</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
</tbody>
</tgroup>
</table>
<para>This will be implemented later</para>
</sect3>

<sect3 id="MetaboliteODEConcentration" xreflabel="Metabolite ODE (Concentration)">
<title>Metabolite ODE (Concentration)</title>
<table frame="all"><title>Metabolite ODE (Concentration)</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Particle Number</entry>
   <entry>Self (state controlled)</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Concentration</entry>
   <entry>Particle Number, parent compartment Volume</entry>
   <entry>refreshConcentration</entry>
 </row>
 <row>
   <entry>Particle Rate</entry>
   <entry>all objects in expression, parent compartment Volume</entry>
   <entry>calculate</entry>
 </row>
 <row>
   <entry>Concentration Rate</entry>
   <entry>Particle Rate, Concentration, parent compartment Volume and Rate</entry>
   <entry>refreshConcentrationRate</entry>
 </row>
 <row>
   <entry>Transition Time</entry>
   <entry>Particle Number, Particle Rate</entry>
   <entry>refreshTransitionTime</entry>
 </row>
</tbody>
</tgroup>
</table>
<para>This will be implemented later</para>
</sect3>

<sect3 id="Moiety" xreflabel="Moiety">
<title>Moiety</title>
<table frame="all"><title>Moiety</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>Particle number of participating independent metabolites</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Dependent Number</entry>
   <entry>Self</entry>
   <entry>none</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="Reaction" xreflabel="Reaction">
<title>Reaction</title>
<table frame="all"><title>Reaction</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>
    all variables of the kinetic function,
    associated compartment Volume, kinetic function, 
    all metabolites involved
   </entry>
   <entry>calculate</entry>
 </row>
 <row>
   <entry>ParticleFlux</entry>
   <entry>all variables of the kinetic function,
    associated compartment Volume</entry>
   <entry>calculate</entry>
 </row>
 <row>
   <entry>Flux</entry>
   <entry>all variables of the kinetic function,
    associated compartment Volume</entry>
   <entry>calculate</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="ModelValueAssignment" xreflabel="Model Value Assignment">
<title>Model Value Assignment</title>
<table frame="all"><title>Model Value Assignment</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Value</entry>
   <entry>all objects in expression</entry>
   <entry>calculate</entry>
 </row>
 <row>
   <entry>Rate (not available)</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="ModelValueODE" xreflabel="Model Value ODE">
<title>Model Value ODE</title>
<table frame="all"><title>Model Value ODE</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Value</entry>
   <entry>Self (state controlled)</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Rate</entry>
   <entry>all objects in expression</entry>
   <entry>calculate</entry>
 </row>
</tbody>
</tgroup>
</table>
</sect3>

<sect3 id="CompartmentAssignment" xreflabel="Compartment Assignment">
<title>Compartment Assignment</title>
<table frame="all"><title>Compartment Assignment</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Volume</entry>
   <entry>all objects in expression</entry>
   <entry>calculate</entry>
 </row>
 <row>
   <entry>Rate (not available)</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
</tbody>
</tgroup>
</table>
<para>This will be implemented later</para>
</sect3>

<sect3 id="CompartmentODE" xreflabel="Compartment ODE">
<title>Compartment ODE</title>
<table frame="all"><title>Compartment ODE</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colwidth="2*" />
<colspec colwidth="6*" />
<colspec colwidth="3*" />
<thead>
 <row>
   <entry>Attribute</entry>
   <entry>Dependencies</entry>
   <entry>Refresh Method</entry>
 </row>
</thead>
<tbody>
 <row>
   <entry>Self</entry>
   <entry>none</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Volume</entry>
   <entry>Self (state controlled)</entry>
   <entry>none</entry>
 </row>
 <row>
   <entry>Rate</entry>
   <entry>all objects in expression</entry>
   <entry>calculate</entry>
 </row>
</tbody>
</tgroup>
</table>
<para>This will be implemented later</para>
</sect3>
</sect2>
</sect1>

</chapter>

<chapter id="InstallationStructure" xreflabel="Installation Structure">
<title>Installation Structure</title>
<para>
This section defines the installation structure for COPASI on
different platforms. Each platform will adhere to the platform
specific requirements. 
</para>

<sect1 id="Unix" xreflabel="Unix">
<title>Unix</title>
<para>
The installation location needs to be available to COPASI at runtime
and therefore the environment variable <literal>COPASIDIR</literal> pointing to this
location must be set by the user. 
</para>
<programlisting>
  $COPASIDIR 
   +- bin 
   |  +- CopasiSE 
   |  +- CopasiUI 
   +- share 
   |  +- copasi 
   |     +- doc 
   |     |  +- html 
   |     |     +- figures 
   |     |     |  +- DefaultPlotAdded.jpg 
   |     |     |  +- ModelSettingsDialog.jpg 
   |     |     |  +- ObjectBrowserSelection.jpg 
   |     |     |  +- ObjectBrowserTree.jpg 
   |     |     |  +- PlotDefinition.jpg 
   |     |     |  +- PlotWindow.jpg 
   |     |     |  +- ReactionDialog.jpg 
   |     |     |  +- ReactionOverview.jpg 
   |     |     |  +- ReactionOverviewEmpty.jpg 
   |     |     |  +- ReportDefinitionDialog.jpg 
   |     |     |  +- TimeCourseDialog.jpg 
   |     |     |  +- ... 
   |     |     +- TutWiz-Step1.html 
   |     |     +- TutWiz-Step2.html 
   |     |     +- TutWiz-Step3.html 
   |     |     +- TutWiz-Step4.html 
   |     |     +- TutWiz-Step5.html 
   |     |     +- TutWiz-Step6.html 
   |     |     +- ... 
   |     +- examples 
   |     |  +- CircadianClock.cps 
   |     |  +- Metabolism-2000Poo.xml 
   |     |  +- YeastGlycolysis.gps 
   |     |  +- brusselator.cps 
   |     |  +- ... 
   |     +- icons 
   |        +- copasi icon small.png 
   +- README 
   +- ChangeLog 
</programlisting>
</sect1>

<sect1 id="MacOSX" xreflabel="MacOS X">
<title>MacOS X</title>
<para>
The installation location must be available to COPASI at
runtime. However it is possible to determine the location through MacOS
X.
</para>
<programlisting>
  $COPASIDIR 
   +- CopasiSE.app 
   |  +- Contents 
   |  |  +- MacOS 
   |  |     +- CopasiSE 
   +- CopasiUI.app 
   |  +- Contents 
   |  |  +- MacOS 
   |  |  |  +- CopasiUI 
   |  |  +- Resources 
   |  |  |  +- doc 
   |  |  |     +- html 
   |  |  |        +- figures 
   |  |  |        |  +- DefaultPlotAdded.jpg 
   |  |  |        |  +- ModelSettingsDialog.jpg 
   |  |  |        |  +- ObjectBrowserSelection.jpg 
   |  |  |        |  +- ObjectBrowserTree.jpg 
   |  |  |        |  +- PlotDefinition.jpg 
   |  |  |        |  +- PlotWindow.jpg 
   |  |  |        |  +- ReactionDialog.jpg 
   |  |  |        |  +- ReactionOverview.jpg 
   |  |  |        |  +- ReactionOverviewEmpty.jpg 
   |  |  |        |  +- ReportDefinitionDialog.jpg 
   |  |  |        |  +- TimeCourseDialog.jpg 
   |  |  |        |  +- ... 
   |  |  |        +- TutWiz-Step1.html 
   |  |  |        +- TutWiz-Step2.html 
   |  |  |        +- TutWiz-Step3.html 
   |  |  |        +- TutWiz-Step4.html 
   |  |  |        +- TutWiz-Step5.html 
   |  |  |        +- TutWiz-Step6.html 
   |  |  |        +- ... 
   |  |  +- Info.plist 
   +- examples 
   |  +- CircadianClock.cps 
   |  +- Metabolism-2000Poo.xml 
   |  +- YeastGlycolysis.gps 
   |  +- brusselator.cps 
   |  +- ... 
   +- COPASI-README.rtf 
</programlisting>
</sect1>

<sect1 id="Windows" xreflabel="Windows">
<title>Windows</title>
<para>
The installation location must be available to COPASI at
runtime. However it is possible to determine the location through
Windows specific means.
</para>
<programlisting>
  $COPASIDIR 
   +- bin 
   |  +- CopasiSE 
   |  +- CopasiUI 
   +- share 
   |  +- copasi 
   |     +- doc 
   |     |  +- html 
   |     |     +- figures 
   |     |     |  +- DefaultPlotAdded.jpg 
   |     |     |  +- ModelSettingsDialog.jpg 
   |     |     |  +- ObjectBrowserSelection.jpg 
   |     |     |  +- ObjectBrowserTree.jpg 
   |     |     |  +- PlotDefinition.jpg 
   |     |     |  +- PlotWindow.jpg 
   |     |     |  +- ReactionDialog.jpg 
   |     |     |  +- ReactionOverview.jpg 
   |     |     |  +- ReactionOverviewEmpty.jpg 
   |     |     |  +- ReportDefinitionDialog.jpg 
   |     |     |  +- TimeCourseDialog.jpg 
   |     |     |  +- ... 
   |     |     +- TutWiz-Step1.html 
   |     |     +- TutWiz-Step2.html 
   |     |     +- TutWiz-Step3.html 
   |     |     +- TutWiz-Step4.html 
   |     |     +- TutWiz-Step5.html 
   |     |     +- TutWiz-Step6.html 
   |     |     +- ... 
   |     +- examples 
   |     |  +- CircadianClock.cps 
   |     |  +- Metabolism-2000Poo.xml 
   |     |  +- YeastGlycolysis.gps 
   |     |  +- brusselator.cps 
   |     |  +- ... 
   |     +- icons
   |        +- Copasi.ico
   |        +- CopasiDoc.ico
   +- LICENSE.txt 
   +- README.txt
   +- ChangeLog 
</programlisting>
</sect1>

<sect1 id="HandlingInstallationDifferences" xreflabel="Handling Installation Differences">
<title>Handling Installation Differences</title>
<para>
The handling of differences in the installation structure must be
dealt with in one place within the COPASI code. The place for this is
the class <literal>COptions</literal>. In this class the method:
<literallayout>
   template&lt;class CType&gt; static void getValue(const std::string &amp;name, CType &amp;value)
</literallayout>
provides access to common options within COPASI. The following values
will deal with installation dependent settings:
<literal>CopasiDir</literal>, <literal>TempDir</literal>, <literal>ExampleDir</literal>, and <literal>WizardDir</literal>. The following code
shows how to retrieve the location of the examples files for COPASI: 
<literallayout>
   std::string ExampleDir;
   COptions::getValue(``ExampleDir'', ExampleDir); 
</literallayout>
To assure that the values are correctly set any main program must
call: 
<literallayout>
   COptions::init(argc, argv);
</literallayout>
</para>


</sect1>
</chapter>