libSBML C++ API
libSBML 5.18.0 C++ API
|
An example of creating a model using SBML Level 3 Qualitative Models.
#include <iostream>
int main(int argc,char** argv)
{
if (argc != 2)
{
std::cout << "Usage: example1\n";
return 1;
}
delete document;
return 0;
}
FunctionTerm * createFunctionTerm()
Creates a new FunctionTerm object, adds it to this Transition's ListOfFunctionTerms and returns the F...
Definition: Transition.cpp:791
virtual int setResultLevel(int resultLevel)
Sets the value of the "resultLevel" attribute of this FunctionTerm.
Definition: FunctionTerm.cpp:190
DefaultTerm * createDefaultTerm()
Creates a new DefaultTerm object, adds it to this Transition's ListOfFunctionTerms and returns the De...
Definition: Transition.cpp:818
Input * createInput()
Creates a new Input object, adds it to this Transition's ListOfInputs and returns the Input object cr...
Definition: Transition.cpp:449
int setConstant(bool value)
Sets the value of the "constant" attribute of this Compartment object.
Definition: Compartment.cpp:681
Extension of Model.
Definition: QualModelPlugin.h:64
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:276
Include all SBML types in a single header file.
virtual int setQualitativeSpecies(const std::string &qualitativeSpecies)
Sets the value of the "qualitativeSpecies" attribute of this Output.
Definition: Output.cpp:254
The default result of a Transition.
Definition: DefaultTerm.h:69
virtual int setMaxLevel(int maxLevel)
Sets the value of the "maxLevel" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:340
virtual int setInitialLevel(int initialLevel)
Sets the value of the "initialLevel" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:328
virtual int setConstant(bool constant)
Sets the value of the "constant" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:304
Model * createModel(const std::string sid="")
Creates a new Model inside this SBMLDocument, and returns a pointer to it.
Definition: SBMLDocument.cpp:643
Output * createOutput()
Creates a new Output object, adds it to this Transition's ListOfOutputs and returns the Output object...
Definition: Transition.cpp:633
@ OUTPUT_TRANSITION_EFFECT_PRODUCTION
Definition: Output.h:77
Include all SBML types of qual extension in a single header file.
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this Compartment object.
Definition: Compartment.cpp:474
A transition of a QualitativeSpecies.
Definition: Transition.h:95
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this Transition.
Definition: Transition.cpp:237
virtual int setName(const std::string &name)
Sets the value of the "name" attribute of this Output.
Definition: Output.cpp:291
An SBML compartment, where species are located.
Definition: Compartment.h:484
virtual int setSBOTerm(int value)
Sets the value of the "sboTerm" attribute.
Definition: SBase.cpp:2455
virtual int setMath(const ASTNode *math)
Sets the "math" element of this FunctionTerm.
Definition: FunctionTerm.cpp:202
Abstract Syntax Tree (AST) representation of a mathematical expression.
Definition: ASTNode.h:204
virtual int setResultLevel(int resultLevel)
Sets the value of the "resultLevel" attribute of this DefaultTerm.
Definition: DefaultTerm.cpp:148
Extension of Species.
Definition: QualitativeSpecies.h:90
An SBML model.
Definition: Model.h:479
virtual int setCompartment(const std::string &compartment)
Sets the value of the "compartment" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:286
virtual int setOutputLevel(int outputLevel)
Sets the value of the "outputLevel" attribute of this Output.
Definition: Output.cpp:304
int setPackageRequired(const std::string &package, bool flag)
Sets the required attribute value of the given package extension.
Definition: SBMLDocument.cpp:1439
A function term.
Definition: FunctionTerm.h:79
QualitativeSpecies * createQualitativeSpecies()
Creates a new qual object and adds it to the list of qual objects and returns it.
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:3103
Set of SBML Level + Version + namespace triples.
Definition: SBMLNamespaces.h:139
Compartment * createCompartment()
Creates a new Compartment inside this Model and returns it.
Definition: Model.cpp:1563
virtual int setId(const std::string &sid)
Sets the value of the "id" attribute of this Output.
Definition: Output.cpp:244
The output from a QualitativeSpecies.
Definition: Output.h:99
#define LIBSBML_CPP_NAMESPACE_USE
Definition: libsbml-namespace.h:67
virtual int setName(const std::string &name)
Sets the value of the "name" attribute of this QualitativeSpecies.
Definition: QualitativeSpecies.cpp:316
Overall SBML container object.
Definition: SBMLDocument.h:342
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:3460
int writeSBML(const SBMLDocument_t *d, const char *filename)
Writes the given SBML document d to the file named by filename.
int setTransitionEffect(const OutputTransitionEffect_t transitionEffect)
Sets the value of the "transitionEffect" attribute of this Output.
Definition: Output.cpp:272
Transition * createTransition()
Creates a new qual object and adds it to the list of qual objects and returns it.