51 CPPUNIT_ASSERT(!s.empty());
53 CPPUNIT_ASSERT(!s.empty());
57 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
58 "<sbml xmlns=\"http://www.sbml.org/sbml/level2/version3\" level=\"2\" version=\"3\">\n"
59 " <model id=\"Model_1\" name=\"New Model\">\n"
61 " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
64 " <listOfFunctionDefinitions>\n"
65 " <functionDefinition id=\"function_1\" name=\"function_1\">\n"
66 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
78 " </functionDefinition>\n"
79 " <functionDefinition id=\"function_2\" name=\"function_2\">\n"
80 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
95 " </functionDefinition>\n"
96 " <functionDefinition id=\"function_3\" name=\"function_3\">\n"
97 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
116 " </functionDefinition>\n"
117 " <functionDefinition id=\"function_4\" name=\"function_4\">\n"
118 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
129 " <ci> function_2 </ci>\n"
137 " </functionDefinition>\n"
138 " <functionDefinition id=\"function_5\" name=\"function_5\">\n"
139 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
153 " <ci> function_3 </ci>\n"
160 " <ci> function_1 </ci>\n"
168 " </functionDefinition>\n"
169 " <functionDefinition id=\"function_6\" name=\"function_6\">\n"
170 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
182 " <ci> function_5 </ci>\n"
189 " </functionDefinition>\n"
190 " </listOfFunctionDefinitions>\n"
191 " <listOfCompartments>\n"
192 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>\n"
193 " </listOfCompartments>\n"
195 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
196 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
197 " <species id=\"species_3\" name=\"C\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
198 " <species id=\"species_4\" name=\"D\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
199 " <species id=\"species_5\" name=\"E\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
200 " <species id=\"species_6\" name=\"F\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
201 " </listOfSpecies>\n"
202 " <listOfParameters>\n"
203 " <parameter id=\"parameter_1\" name=\"K1\" value=\"1.1\" constant=\"false\"/>\n"
204 " <parameter id=\"parameter_2\" name=\"K2\" value=\"1.2\"/>\n"
205 " <parameter id=\"parameter_3\" name=\"K3\" value=\"1.3\" constant=\"false\"/>\n"
206 " </listOfParameters>\n"
208 " <assignmentRule variable=\"parameter_1\">\n"
209 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
211 " <ci> function_1 </ci>\n"
215 " </assignmentRule>\n"
216 " <assignmentRule variable=\"parameter_3\">\n"
217 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
219 " <ci> function_3 </ci>\n"
221 " <ci> parameter_1 </ci>\n"
224 " </assignmentRule>\n"
225 " <assignmentRule variable=\"species_3\">\n"
226 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
228 " <ci> function_5 </ci>\n"
229 " <ci> parameter_1 </ci>\n"
234 " </assignmentRule>\n"
235 " <rateRule variable=\"species_4\">\n"
236 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
238 " <ci> function_2 </ci>\n"
239 " <ci> parameter_1 </ci>\n"
244 " <rateRule variable=\"species_5\">\n"
245 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
247 " <ci> function_4 </ci>\n"
249 " <ci> parameter_2 </ci>\n"
253 " <rateRule variable=\"species_6\">\n"
254 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
256 " <ci> function_6 </ci>\n"
257 " <ci> parameter_3 </ci>\n"
258 " <ci> parameter_1 </ci>\n"
264 " <listOfReactions>\n"
265 " <reaction id=\"reaction1\" reversible=\"true\">\n"
266 " <listOfReactants>\n"
267 " <speciesReference species=\"species_1\"/>\n"
268 " </listOfReactants>\n"
269 " <listOfProducts>\n"
270 " <speciesReference species=\"species_2\"/>\n"
271 " </listOfProducts>\n"
273 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
276 " <ci> compartment_1 </ci>\n"
278 " <ci> function_1 </ci>\n"
279 " <ci> parameter_1 </ci>\n"
285 " <reaction id=\"reaction2\" reversible=\"true\">\n"
286 " <listOfReactants>\n"
287 " <speciesReference species=\"species_1\"/>\n"
288 " </listOfReactants>\n"
289 " <listOfProducts>\n"
290 " <speciesReference species=\"species_2\"/>\n"
291 " </listOfProducts>\n"
293 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
296 " <ci> compartment_1 </ci>\n"
298 " <ci> function_2 </ci>\n"
299 " <ci> parameter_1 </ci>\n"
300 " <ci> parameter_2 </ci>\n"
306 " <reaction id=\"reaction3\" reversible=\"true\">\n"
307 " <listOfReactants>\n"
308 " <speciesReference species=\"species_1\"/>\n"
309 " </listOfReactants>\n"
310 " <listOfProducts>\n"
311 " <speciesReference species=\"species_2\"/>\n"
312 " </listOfProducts>\n"
314 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
317 " <ci> compartment_1 </ci>\n"
319 " <ci> function_3 </ci>\n"
320 " <ci> parameter_1 </ci>\n"
321 " <ci> species_2 </ci>\n"
327 " <reaction id=\"reaction4\" reversible=\"true\">\n"
328 " <listOfReactants>\n"
329 " <speciesReference species=\"species_1\"/>\n"
330 " </listOfReactants>\n"
331 " <listOfProducts>\n"
332 " <speciesReference species=\"species_2\"/>\n"
333 " </listOfProducts>\n"
335 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
338 " <ci> compartment_1 </ci>\n"
340 " <ci> function_4 </ci>\n"
341 " <ci> species_1 </ci>\n"
342 " <ci> species_2 </ci>\n"
348 " <reaction id=\"reaction5\" reversible=\"true\">\n"
349 " <listOfReactants>\n"
350 " <speciesReference species=\"species_1\"/>\n"
351 " </listOfReactants>\n"
352 " <listOfProducts>\n"
353 " <speciesReference species=\"species_2\"/>\n"
354 " </listOfProducts>\n"
356 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
359 " <ci> compartment_1 </ci>\n"
361 " <ci> function_5 </ci>\n"
362 " <ci> parameter_1 </ci>\n"
363 " <ci> parameter_3 </ci>\n"
364 " <ci> species_2 </ci>\n"
370 " <reaction id=\"reaction6\" reversible=\"true\">\n"
371 " <listOfReactants>\n"
372 " <speciesReference species=\"species_1\"/>\n"
373 " </listOfReactants>\n"
374 " <listOfProducts>\n"
375 " <speciesReference species=\"species_2\"/>\n"
376 " </listOfProducts>\n"
378 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
381 " <ci> compartment_1 </ci>\n"
383 " <ci> function_6 </ci>\n"
384 " <ci> parameter_1 </ci>\n"
385 " <ci> parameter_2 </ci>\n"
386 " <ci> parameter_3 </ci>\n"
392 " </listOfReactions>\n"
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
static CCopasiDataModel * pCOPASIDATAMODEL
static CCopasiDataModel * addDatamodel()
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_STRING1