An example of creating a model using SBML Level 3 Qualitative Models.
#include <iostream>
LIBSBML_CPP_NAMESPACE_USE
int main(int argc,char** argv)
{
if (argc != 2)
{
std::cout << "Usage: example1\n";
return 1;
}
delete document;
return 0;
}
ASTNode_t * SBML_parseL3Formula(const char *formula)
Parses a text string as a mathematical formula and returns an AST representation of it.
Definition: L3Parser.cpp:3235
@ OUTPUT_TRANSITION_EFFECT_PRODUCTION
Definition: Output.h:82
Include all SBML types of qual extension in a single header file.
Include all SBML types in a single header file.
int writeSBML(const SBMLDocument_t *d, const char *filename)
Writes the given SBML document d to the file named by filename.
Definition: ASTNode.h:221
Definition: Compartment.h:490
int setConstant(bool value)
Sets the value of the "constant" attribute of this Compartment object.
Definition: Compartment.cpp:661
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this Compartment object.
Definition: Compartment.cpp:479
Definition: DefaultTerm.h:75
virtual int setResultLevel(int resultLevel)
Sets the value of the "resultLevel" attribute of this DefaultTerm.
Definition: DefaultTerm.cpp:153
Definition: FunctionTerm.h:85
virtual int setMath(const ASTNode *math)
Sets the "math" element of this FunctionTerm.
Definition: FunctionTerm.cpp:207
virtual int setResultLevel(int resultLevel)
Sets the value of the "resultLevel" attribute of this FunctionTerm.
Definition: FunctionTerm.cpp:195
Compartment * createCompartment()
Creates a new Compartment inside this Model and returns it.
Definition: Model.cpp:1558
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this Output.
Definition: Output.cpp:249
int setTransitionEffect(const OutputTransitionEffect_t transitionEffect)
Sets the value of the "transitionEffect" attribute of this Output.
Definition: Output.cpp:277
virtual int setQualitativeSpecies(const std::string &qualitativeSpecies)
Sets the value of the "qualitativeSpecies" attribute of this Output.
Definition: Output.cpp:259
virtual int setOutputLevel(int outputLevel)
Sets the value of the "outputLevel" attribute of this Output.
Definition: Output.cpp:309
virtual int setName(const std::string &name)
Sets the value of the "name" attribute of this Output.
Definition: Output.cpp:296
Definition: QualModelPlugin.h:70
Transition * createTransition()
Creates a new qual object and adds it to the list of qual objects and returns it.
QualitativeSpecies * createQualitativeSpecies()
Creates a new qual object and adds it to the list of qual objects and returns it.
Definition: QualitativeSpecies.h:96
virtual int setInitialLevel(int initialLevel)
Sets the value of the "initialLevel" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:333
virtual int setMaxLevel(int maxLevel)
Sets the value of the "maxLevel" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:345
virtual int setCompartment(const std::string &compartment)
Sets the value of the "compartment" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:291
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:281
virtual int setConstant(bool constant)
Sets the value of the "constant" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:309
virtual int setName(const std::string &name)
Sets the value of the "name" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:321
Definition: SBMLDocument.h:349
int setPackageRequired(const std::string &package, bool flag)
Sets the required attribute value of the given package extension.
Definition: SBMLDocument.cpp:1414
Model * createModel(const std::string sid="")
Creates a new Model inside this SBMLDocument, and returns a pointer to it.
Definition: SBMLDocument.cpp:627
Definition: SBMLNamespaces.h:145
virtual int setSBOTerm(int value)
Sets the value of the "sboTerm" attribute.
Definition: SBase.cpp:2515
SBasePlugin * getPlugin(const std::string &package)
Returns a plug-in object (extension interface) for an SBML Level 3 package extension with the given p...
Definition: SBase.cpp:3530
Definition: Transition.h:101
Output * createOutput()
Creates a new Output object, adds it to this Transition's ListOfOutputs and returns the Output object...
Definition: Transition.cpp:638
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this Transition.
Definition: Transition.cpp:242
FunctionTerm * createFunctionTerm()
Creates a new FunctionTerm object, adds it to this Transition's ListOfFunctionTerms and returns the F...
Definition: Transition.cpp:796
Input * createInput()
Creates a new Input object, adds it to this Transition's ListOfInputs and returns the Input object cr...
Definition: Transition.cpp:454
DefaultTerm * createDefaultTerm()
Creates a new DefaultTerm object, adds it to this Transition's ListOfFunctionTerms and returns the De...
Definition: Transition.cpp:823