52 unsigned int i, iMax = 5;
54 for (i = 0; i < iMax; ++i)
57 CPPUNIT_ASSERT(!s.empty());
62 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
63 "<sbml xmlns=\"http://www.sbml.org/sbml/level2/version3\" level=\"2\" version=\"3\">\n"
64 " <model id=\"Model_1\" name=\"New Model\">\n"
66 " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
69 " <listOfFunctionDefinitions>\n"
70 " <functionDefinition id=\"function_1\" name=\"function_1\">\n"
71 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
83 " </functionDefinition>\n"
84 " <functionDefinition id=\"function_2\" name=\"function_2\">\n"
85 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
100 " </functionDefinition>\n"
101 " <functionDefinition id=\"function_3\" name=\"function_3\">\n"
102 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
121 " </functionDefinition>\n"
122 " <functionDefinition id=\"function_4\" name=\"function_4\">\n"
123 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
134 " <ci> function_2 </ci>\n"
142 " </functionDefinition>\n"
143 " <functionDefinition id=\"function_5\" name=\"function_5\">\n"
144 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
158 " <ci> function_3 </ci>\n"
165 " <ci> function_1 </ci>\n"
173 " </functionDefinition>\n"
174 " <functionDefinition id=\"function_6\" name=\"function_6\">\n"
175 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
187 " <ci> function_5 </ci>\n"
194 " </functionDefinition>\n"
195 " </listOfFunctionDefinitions>\n"
196 " <listOfCompartments>\n"
197 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>\n"
198 " </listOfCompartments>\n"
200 " <species id=\"species_1\" name=\"A\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
201 " <species id=\"species_2\" name=\"B\" compartment=\"compartment_1\" initialConcentration=\"1\"/>\n"
202 " <species id=\"species_3\" name=\"C\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
203 " <species id=\"species_4\" name=\"D\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
204 " <species id=\"species_5\" name=\"E\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
205 " <species id=\"species_6\" name=\"F\" compartment=\"compartment_1\" initialConcentration=\"1\" constant=\"false\"/>\n"
206 " </listOfSpecies>\n"
207 " <listOfParameters>\n"
208 " <parameter id=\"parameter_1\" name=\"K1\" value=\"1.1\" constant=\"false\"/>\n"
209 " <parameter id=\"parameter_2\" name=\"K2\" value=\"1.2\"/>\n"
210 " <parameter id=\"parameter_3\" name=\"K3\" value=\"1.3\" constant=\"false\"/>\n"
211 " </listOfParameters>\n"
213 " <assignmentRule variable=\"parameter_1\">\n"
214 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
216 " <ci> function_1 </ci>\n"
220 " </assignmentRule>\n"
221 " <assignmentRule variable=\"parameter_3\">\n"
222 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
224 " <ci> function_3 </ci>\n"
226 " <ci> parameter_1 </ci>\n"
229 " </assignmentRule>\n"
230 " <assignmentRule variable=\"species_3\">\n"
231 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
233 " <ci> function_5 </ci>\n"
234 " <ci> parameter_1 </ci>\n"
239 " </assignmentRule>\n"
240 " <rateRule variable=\"species_4\">\n"
241 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
243 " <ci> function_2 </ci>\n"
244 " <ci> parameter_1 </ci>\n"
249 " <rateRule variable=\"species_5\">\n"
250 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
252 " <ci> function_4 </ci>\n"
254 " <ci> parameter_2 </ci>\n"
258 " <rateRule variable=\"species_6\">\n"
259 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
261 " <ci> function_6 </ci>\n"
262 " <ci> parameter_3 </ci>\n"
263 " <ci> parameter_1 </ci>\n"
269 " <listOfReactions>\n"
270 " <reaction id=\"reaction1\" reversible=\"true\">\n"
271 " <listOfReactants>\n"
272 " <speciesReference species=\"species_1\"/>\n"
273 " </listOfReactants>\n"
274 " <listOfProducts>\n"
275 " <speciesReference species=\"species_2\"/>\n"
276 " </listOfProducts>\n"
278 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
281 " <ci> compartment_1 </ci>\n"
283 " <ci> function_1 </ci>\n"
284 " <ci> parameter_1 </ci>\n"
290 " <reaction id=\"reaction2\" reversible=\"true\">\n"
291 " <listOfReactants>\n"
292 " <speciesReference species=\"species_1\"/>\n"
293 " </listOfReactants>\n"
294 " <listOfProducts>\n"
295 " <speciesReference species=\"species_2\"/>\n"
296 " </listOfProducts>\n"
298 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
301 " <ci> compartment_1 </ci>\n"
303 " <ci> function_2 </ci>\n"
304 " <ci> parameter_1 </ci>\n"
305 " <ci> parameter_2 </ci>\n"
311 " <reaction id=\"reaction3\" reversible=\"true\">\n"
312 " <listOfReactants>\n"
313 " <speciesReference species=\"species_1\"/>\n"
314 " </listOfReactants>\n"
315 " <listOfProducts>\n"
316 " <speciesReference species=\"species_2\"/>\n"
317 " </listOfProducts>\n"
319 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
322 " <ci> compartment_1 </ci>\n"
324 " <ci> function_3 </ci>\n"
325 " <ci> parameter_1 </ci>\n"
326 " <ci> species_2 </ci>\n"
332 " <reaction id=\"reaction4\" reversible=\"true\">\n"
333 " <listOfReactants>\n"
334 " <speciesReference species=\"species_1\"/>\n"
335 " </listOfReactants>\n"
336 " <listOfProducts>\n"
337 " <speciesReference species=\"species_2\"/>\n"
338 " </listOfProducts>\n"
340 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
343 " <ci> compartment_1 </ci>\n"
345 " <ci> function_4 </ci>\n"
346 " <ci> species_1 </ci>\n"
347 " <ci> species_2 </ci>\n"
353 " <reaction id=\"reaction5\" reversible=\"true\">\n"
354 " <listOfReactants>\n"
355 " <speciesReference species=\"species_1\"/>\n"
356 " </listOfReactants>\n"
357 " <listOfProducts>\n"
358 " <speciesReference species=\"species_2\"/>\n"
359 " </listOfProducts>\n"
361 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
364 " <ci> compartment_1 </ci>\n"
366 " <ci> function_5 </ci>\n"
367 " <ci> parameter_1 </ci>\n"
368 " <ci> parameter_3 </ci>\n"
369 " <ci> species_2 </ci>\n"
375 " <reaction id=\"reaction6\" reversible=\"true\">\n"
376 " <listOfReactants>\n"
377 " <speciesReference species=\"species_1\"/>\n"
378 " </listOfReactants>\n"
379 " <listOfProducts>\n"
380 " <speciesReference species=\"species_2\"/>\n"
381 " </listOfProducts>\n"
383 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
386 " <ci> compartment_1 </ci>\n"
388 " <ci> function_6 </ci>\n"
389 " <ci> parameter_1 </ci>\n"
390 " <ci> parameter_2 </ci>\n"
391 " <ci> parameter_3 </ci>\n"
397 " </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