22 #include "utilities.hpp"
28 #include "sbml/SBMLDocument.h"
29 #include "sbml/Model.h"
30 #include "sbml/Rule.h"
31 #include "sbml/Species.h"
32 #include "sbml/Parameter.h"
33 #include "sbml/math/ASTNode.h"
57 CPPUNIT_ASSERT(pModel != NULL);
58 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
59 CPPUNIT_ASSERT(pModel->getMetabolites().size() == 2);
60 CPPUNIT_ASSERT(pModel->getReactions().size() == 0);
61 CPPUNIT_ASSERT(pModel->getEvents().size() == 1);
71 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
72 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
73 " <model id=\"Model_1\" name=\"Model 1\">"
74 " <listOfUnitDefinitions>"
75 " <unitDefinition id=\"volume\">"
77 " <unit kind=\"litre\" scale=\"-3\"/>"
80 " <unitDefinition id=\"substance\">"
82 " <unit kind=\"mole\" scale=\"-3\"/>"
85 " </listOfUnitDefinitions>"
86 " <listOfCompartments>"
87 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
88 " </listOfCompartments>"
90 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
91 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
94 " <assignmentRule variable=\"species_1\">"
95 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
105 " <event id=\"event_1\" name=\"event_1\">"
107 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
110 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
115 " <listOfEventAssignments>"
116 " <eventAssignment variable=\"species_2\">"
117 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
120 " </eventAssignment>"
121 " </listOfEventAssignments>"
133 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
134 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
135 " <model id=\"Model_1\" name=\"Model 1\">"
136 " <listOfUnitDefinitions>"
137 " <unitDefinition id=\"volume\">"
139 " <unit kind=\"litre\" scale=\"-3\"/>"
142 " <unitDefinition id=\"substance\">"
144 " <unit kind=\"mole\" scale=\"-3\"/>"
147 " </listOfUnitDefinitions>"
148 " <listOfCompartments>"
149 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
150 " </listOfCompartments>"
152 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
153 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
156 " <rateRule variable=\"species_1\">"
157 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
163 " <event id=\"event_1\" name=\"event_1\">"
165 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
168 " <ci>species_1</ci>"
173 " <listOfEventAssignments>"
174 " <eventAssignment variable=\"species_2\">"
175 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
178 " </eventAssignment>"
179 " </listOfEventAssignments>"
193 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
194 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
195 " <model id=\"Model_1\" name=\"Model 1\">"
196 " <listOfUnitDefinitions>"
197 " <unitDefinition id=\"volume\">"
199 " <unit kind=\"litre\" scale=\"-3\"/>"
202 " <unitDefinition id=\"substance\">"
204 " <unit kind=\"mole\" scale=\"-3\"/>"
207 " </listOfUnitDefinitions>"
208 " <listOfCompartments>"
209 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" constant=\"false\"/>"
210 " </listOfCompartments>"
212 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
213 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
216 " <rateRule variable=\"compartment_1\">"
217 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
223 " <event id=\"event_1\" name=\"event_1\">"
225 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
228 " <ci> compartment_1 </ci>"
233 " <listOfEventAssignments>"
234 " <eventAssignment variable=\"species_2\">"
235 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
238 " </eventAssignment>"
239 " </listOfEventAssignments>"
253 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
254 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
255 " <model id=\"Model_1\" name=\"Model 1\">"
256 " <listOfUnitDefinitions>"
257 " <unitDefinition id=\"volume\">"
259 " <unit kind=\"litre\" scale=\"-3\"/>"
262 " <unitDefinition id=\"substance\">"
264 " <unit kind=\"mole\" scale=\"-3\"/>"
267 " </listOfUnitDefinitions>"
268 " <listOfCompartments>"
269 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
270 " </listOfCompartments>"
272 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
273 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
275 " <listOfParameters>"
276 " <parameter id=\"parameter_1\" name=\"parameter_1\" value=\"2.0\" constant=\"false\" units=\"dimensionless\"/>"
277 " </listOfParameters>"
279 " <rateRule variable=\"parameter_1\">"
280 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
286 " <event id=\"event_1\" name=\"event_1\">"
288 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
291 " <ci> parameter_1 </ci>"
296 " <listOfEventAssignments>"
297 " <eventAssignment variable=\"species_2\">"
298 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
301 " </eventAssignment>"
302 " </listOfEventAssignments>"
315 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
316 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
317 " <model id=\"Model_1\" name=\"Model 1\">"
318 " <listOfUnitDefinitions>"
319 " <unitDefinition id=\"volume\">"
321 " <unit kind=\"litre\" scale=\"-3\"/>"
324 " <unitDefinition id=\"substance\">"
326 " <unit kind=\"mole\" scale=\"-3\"/>"
329 " </listOfUnitDefinitions>"
330 " <listOfCompartments>"
331 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
332 " </listOfCompartments>"
334 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
335 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
338 " <reaction id=\"reaction_1\" name=\"constant flux\">"
340 " < speciesReference species = \"species_1\"/>"
343 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
348 " <reaction id=\"reaction_2\" name=\"constant flux\">"
350 " < speciesReference species = \"species_1\"/>"
351 " </listOfReactants>"
353 " <speciesReference species=\"species_2\"/>"
356 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
357 " <ci> species_1 </ci>"
361 " </listOfReactions>"
363 " <event id=\"event_1\" name=\"event_1\">"
365 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
368 " <ci> reaction_2 </ci>"
373 " <listOfEventAssignments>"
374 " <eventAssignment variable=\"species_2\">"
375 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
378 " </eventAssignment>"
379 " </listOfEventAssignments>"
393 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
394 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
395 " <model id=\"Model_1\" name=\"Model 1\">"
396 " <listOfUnitDefinitions>"
397 " <unitDefinition id=\"volume\">"
399 " <unit kind=\"litre\" scale=\"-3\"/>"
402 " <unitDefinition id=\"substance\">"
404 " <unit kind=\"mole\" scale=\"-3\"/>"
407 " </listOfUnitDefinitions>"
408 " <listOfCompartments>"
409 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
410 " </listOfCompartments>"
412 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
413 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
416 " <reaction id=\"reaction_1\" name=\"constant flux\">"
418 " < speciesReference species = \"species_1\"/>"
421 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
426 " <reaction id=\"reaction_2\" name=\"constant flux\">"
428 " < speciesReference species = \"species_1\"/>"
429 " </listOfReactants>"
431 " <speciesReference species=\"species_2\"/>"
434 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
435 " <ci> species_1 </ci>"
439 " </listOfReactions>"
441 " <event id=\"event_1\" name=\"event_1\">"
443 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
446 " <ci> reaction_2 </ci>"
451 " <listOfEventAssignments>"
452 " <eventAssignment variable=\"species_2\">"
453 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
456 " </eventAssignment>"
457 " </listOfEventAssignments>"
459 " <event id=\"event_2\" name=\"event_2\">"
461 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
464 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
469 " <listOfEventAssignments>"
470 " <eventAssignment variable=\"species_2\">"
471 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
474 " </eventAssignment>"
475 " </listOfEventAssignments>"
488 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
489 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
490 " <model id=\"Model_1\" name=\"Model 1\">"
491 " <listOfUnitDefinitions>"
492 " <unitDefinition id=\"volume\">"
494 " <unit kind=\"litre\" scale=\"-3\"/>"
497 " <unitDefinition id=\"substance\">"
499 " <unit kind=\"mole\" scale=\"-3\"/>"
502 " </listOfUnitDefinitions>"
503 " <listOfCompartments>"
504 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
505 " </listOfCompartments>"
507 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
508 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
511 " <rateRule variable=\"species_1\">"
512 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
518 " <event id=\"event_1\" name=\"event_1\">"
520 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
523 " <ci> species_1 </ci>"
528 " <listOfEventAssignments>"
529 " <eventAssignment variable=\"species_2\">"
530 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
534 " <ci> species_2 </ci>"
537 " </eventAssignment>"
538 " </listOfEventAssignments>"
553 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
554 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
555 " <model id=\"Model_1\" name=\"Model 1\">"
556 " <listOfUnitDefinitions>"
557 " <unitDefinition id=\"volume\">"
559 " <unit kind=\"litre\" scale=\"-3\"/>"
562 " <unitDefinition id=\"substance\">"
564 " <unit kind=\"mole\" scale=\"-3\"/>"
567 " </listOfUnitDefinitions>"
568 " <listOfCompartments>"
569 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
570 " </listOfCompartments>"
572 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
573 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
576 " <event id=\"event_1\" name=\"event_1\">"
578 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
587 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
598 " < csymbol encoding = \"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
605 " <cn> 0.001 < / cn > "
609 " <listOfEventAssignments>"
610 " < eventAssignment variable = \"species_1\">"
611 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
615 " <ci> species_1 </ci>"
618 " </eventAssignment>"
619 " <eventAssignment variable=\"species_2\">"
620 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
624 " <ci> species_2 </ci>"
627 " </eventAssignment>"
628 " </listOfEventAssignments>"
646 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
647 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
648 " <model id=\"Model_1\" name=\"Model 1\">"
649 " <listOfUnitDefinitions>"
650 " <unitDefinition id=\"volume\">"
652 " <unit kind=\"litre\" scale=\"-3\"/>"
655 " <unitDefinition id=\"substance\">"
657 " <unit kind=\"mole\" scale=\"-3\"/>"
660 " </listOfUnitDefinitions>"
661 " <listOfCompartments>"
662 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
663 " </listOfCompartments>"
665 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
666 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
669 " <event id=\"event_1\" name=\"event_1\">"
671 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
674 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
679 " <listOfEventAssignments>"
680 " <eventAssignment variable=\"species_1\">"
681 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
685 " <ci> species_2 </ci>"
688 " </eventAssignment>"
689 " </listOfEventAssignments>"
691 " <event id=\"event_2\" name=\"event_2\">"
693 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
696 " <ci> species_2 </ci>"
697 " <ci> species_1 </ci>"
701 " <listOfEventAssignments>"
702 " <eventAssignment variable=\"species_1\">"
703 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
707 " <ci> species_2 </ci>"
710 " </eventAssignment>"
711 " </listOfEventAssignments>"
713 " <event id=\"event_3\" name=\"event_3\">"
715 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
718 " <ci> species_1 </ci>"
719 " <ci> species_2 < / ci >"
723 " <listOfEventAssignments>"
724 " <eventAssignment variable=\"species_2\">"
725 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
729 " <ci> species_1 </ci>"
732 " </eventAssignment>"
733 " </listOfEventAssignments>"
746 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
747 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
748 " <model id=\"Model_1\" name=\"Model 1\">"
749 " <listOfUnitDefinitions>"
750 " <unitDefinition id=\"volume\">"
752 " <unit kind=\"litre\" scale=\"-3\"/>"
755 " <unitDefinition id=\"substance\">"
757 " <unit kind=\"mole\" scale=\"-3\"/>"
760 " </listOfUnitDefinitions>"
761 " <listOfCompartments>"
762 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
763 " </listOfCompartments>"
765 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
766 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
769 " <event id=\"event_1\" name=\"event_1\">"
771 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
774 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
779 " <listOfEventAssignments>"
780 " <eventAssignment variable=\"species_1\">"
781 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
785 " <ci> species_2 </ci>"
788 " </eventAssignment>"
789 " </listOfEventAssignments>"
791 " <event id=\"event_2\" name=\"event_2\">"
793 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
796 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
801 " <listOfEventAssignments>"
802 " <eventAssignment variable=\"species_2\">"
803 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
807 " <ci> species_1 </ci>"
810 " </eventAssignment>"
811 " </listOfEventAssignments>"
825 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
826 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
827 " <model id=\"Model_1\" name=\"Model 1\">"
828 " <listOfUnitDefinitions>"
829 " <unitDefinition id=\"volume\">"
831 " <unit kind=\"litre\" scale=\"-3\"/>"
834 " <unitDefinition id=\"substance\">"
836 " <unit kind=\"mole\" scale=\"-3\"/>"
839 " </listOfUnitDefinitions>"
840 " <listOfCompartments>"
841 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
842 " </listOfCompartments>"
844 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
845 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
848 " <event id=\"event_1\" name=\"event_1\">"
850 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
853 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
858 " <listOfEventAssignments>"
859 " <eventAssignment variable=\"species_1\">"
860 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
864 " <ci> species_2 </ci>"
867 " </eventAssignment>"
868 " </listOfEventAssignments>"
870 " <event id=\"event_2\" name=\"event_2\">"
872 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
875 " <ci> species_1 </ci>"
880 " <listOfEventAssignments>"
881 " <eventAssignment variable=\"species_2\">"
882 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
886 " <ci> species_1 </ci>"
889 " </eventAssignment>"
890 " </listOfEventAssignments>"
902 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
903 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
904 " <model id=\"Model_1\" name=\"Model 1\">"
905 " <listOfUnitDefinitions>"
906 " <unitDefinition id=\"volume\">"
908 " <unit kind=\"litre\" scale=\"-3\"/>"
911 " <unitDefinition id=\"substance\">"
913 " <unit kind=\"mole\" scale=\"-3\"/>"
916 " </listOfUnitDefinitions>"
917 " <listOfCompartments>"
918 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
919 " </listOfCompartments>"
921 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
922 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
925 " <assignmentRule variable=\"species_1\">"
926 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
929 " <ci>species_2</ci>"
936 " <event id=\"event_1\" name=\"event_1\">"
938 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
941 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
947 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
951 " <listOfEventAssignments>"
952 " <eventAssignment variable=\"species_2\">"
953 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
956 " </eventAssignment>"
957 " </listOfEventAssignments>"
971 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
972 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
973 " <model id=\"Model_1\" name=\"Model 1\">"
974 " <listOfUnitDefinitions>"
975 " <unitDefinition id=\"volume\">"
977 " <unit kind=\"litre\" scale=\"-3\"/>"
980 " <unitDefinition id=\"substance\">"
982 " <unit kind=\"mole\" scale=\"-3\"/>"
985 " </listOfUnitDefinitions>"
986 " <listOfCompartments>"
987 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
988 " </listOfCompartments>"
990 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
991 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
994 " <event id=\"event_1\" name=\"event_1\">"
996 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
999 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1005 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1009 " <listOfEventAssignments>"
1010 " <eventAssignment variable=\"species_1\">"
1011 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1015 " <ci> species_2 </ci>"
1018 " </eventAssignment>"
1019 " </listOfEventAssignments>"
1021 " <event id=\"event_2\" name=\"event_2\">"
1023 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1026 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1032 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1036 " <listOfEventAssignments>"
1037 " <eventAssignment variable=\"species_2\">"
1038 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1042 " <ci> species_1 </ci>"
1045 " </eventAssignment>"
1046 " </listOfEventAssignments>"
1061 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1062 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1063 " <model id=\"Model_1\" name=\"Model 1\">"
1064 " <listOfUnitDefinitions>"
1065 " <unitDefinition id=\"volume\">"
1067 " <unit kind=\"litre\" scale=\"-3\"/>"
1069 " </unitDefinition>"
1070 " <unitDefinition id=\"substance\">"
1072 " <unit kind=\"mole\" scale=\"-3\"/>"
1074 " </unitDefinition>"
1075 " </listOfUnitDefinitions>"
1076 " <listOfCompartments>"
1077 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
1078 " </listOfCompartments>"
1080 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
1081 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
1084 " <event id=\"event_1\" name=\"event_1\">"
1086 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1089 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1095 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1099 " <listOfEventAssignments>"
1100 " <eventAssignment variable=\"species_1\">"
1101 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1105 " <ci> species_2 </ci>"
1108 " </eventAssignment>"
1109 " </listOfEventAssignments>"
1111 " <event id=\"event_2\" name=\"event_2\">"
1113 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1116 " <ci> species_1 </ci>"
1122 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1126 " <listOfEventAssignments>"
1127 " <eventAssignment variable=\"species_2\">"
1128 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1132 " <ci> species_1 </ci>"
1135 " </eventAssignment>"
1136 " </listOfEventAssignments>"
1149 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1150 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1151 " <model id=\"Model_1\" name=\"Model 1\">"
1152 " <listOfUnitDefinitions>"
1153 " <unitDefinition id=\"volume\">"
1155 " <unit kind=\"litre\" scale=\"-3\"/>"
1157 " </unitDefinition>"
1158 " <unitDefinition id=\"substance\">"
1160 " <unit kind=\"mole\" scale=\"-3\"/>"
1162 " </unitDefinition>"
1163 " </listOfUnitDefinitions>"
1164 " <listOfCompartments>"
1165 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
1166 " </listOfCompartments>"
1168 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
1169 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
1172 " <event id=\"event_1\" name=\"event_1\">"
1174 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1177 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1183 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1187 " <listOfEventAssignments>"
1188 " <eventAssignment variable=\"species_1\">"
1189 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1193 " <ci> species_2 </ci>"
1196 " </eventAssignment>"
1197 " </listOfEventAssignments>"
1199 " <event id=\"event_2\" name=\"event_2\">"
1201 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1204 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1210 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1214 " <listOfEventAssignments>"
1215 " <eventAssignment variable=\"species_2\">"
1216 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1220 " <ci> species_1 </ci>"
1223 " </eventAssignment>"
1224 " </listOfEventAssignments>"
1239 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1240 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1241 " <model id=\"Model_1\" name=\"Model 1\">"
1242 " <listOfUnitDefinitions>"
1243 " <unitDefinition id=\"volume\">"
1245 " <unit kind=\"litre\" scale=\"-3\"/>"
1247 " </unitDefinition>"
1248 " <unitDefinition id=\"substance\">"
1250 " <unit kind=\"mole\" scale=\"-3\"/>"
1252 " </unitDefinition>"
1253 " </listOfUnitDefinitions>"
1254 " <listOfCompartments>"
1255 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
1256 " </listOfCompartments>"
1258 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"3.0\"/>"
1259 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
1262 " <event id=\"event_1\" name=\"event_1\">"
1264 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1267 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1273 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1277 " <listOfEventAssignments>"
1278 " <eventAssignment variable=\"species_1\">"
1279 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1283 " <ci> species_2 </ci>"
1286 " </eventAssignment>"
1287 " </listOfEventAssignments>"
1289 " <event id=\"event_2\" name=\"event_2\">"
1291 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1294 " <ci> species_1 </ci>"
1300 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1304 " <listOfEventAssignments>"
1305 " <eventAssignment variable=\"species_2\">"
1306 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1310 " <ci> species_1 </ci>"
1313 " </eventAssignment>"
1314 " </listOfEventAssignments>"
1326 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1327 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1328 " <model id=\"Model_1\" name=\"Model 1\">"
1329 " <listOfUnitDefinitions>"
1330 " <unitDefinition id=\"volume\">"
1332 " <unit kind=\"litre\" scale=\"-3\"/>"
1334 " </unitDefinition>"
1335 " <unitDefinition id=\"substance\">"
1337 " <unit kind=\"mole\" scale=\"-3\"/>"
1339 " </unitDefinition>"
1340 " </listOfUnitDefinitions>"
1341 " <listOfCompartments>"
1342 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
1343 " </listOfCompartments>"
1345 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"0.0\"/>"
1346 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"5.0\"/>"
1349 " <rateRule variable=\"species_1\">"
1350 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1356 " <event id=\"event_1\" name=\"event_1\">"
1358 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1361 " <ci>species_1</ci>"
1367 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1370 " <csymbol encoding=\"text\" definitionURL=\"http://www.sbml.org/sbml/symbols/time\"> time </csymbol>"
1375 " <listOfEventAssignments>"
1376 " < eventAssignment variable = \"species_2\">"
1377 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">"
1380 " </eventAssignment>"
1381 " </listOfEventAssignments>"
static const char * MODEL_STRING15
static const char * MODEL_STRING4
Header file of class CModelEntity and CModelValue.
static const char * MODEL_STRING2
static const char * MODEL_STRING8
static const char * MODEL_STRING17
static const char * MODEL_STRING7
static const char * MODEL_STRING13
static CCopasiDataModel * pCOPASIDATAMODEL
static const char * MODEL_STRING12
static const char * MODEL_STRING1
static const char * MODEL_STRING3
static const char * MODEL_STRING6
static const char * MODEL_STRING5
static const char * MODEL_STRING10
static const char * MODEL_STRING9
static const char * MODEL_STRING14
static CCopasiDataModel * addDatamodel()
static const char * MODEL_STRING16
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static void init(int argc, char *argv[], const bool &withGui=false)
static const char * MODEL_STRING11