|
copasi API
0.1
|
#include <CCopasiDataModel.h>
Public Member Functions | |
| CCopasiDataModel (const bool withGUI=false) | |
| CCopasiDataModel (const std::string &name, const CCopasiContainer *pParent=NULL, const std::string &type="CN", bool withGUI=false) | |
| ~CCopasiDataModel () | |
| bool | loadModel (const std::string &fileName, CProcessReport *pProcessReport) |
| bool | saveModel (const std::string &fileName, CProcessReport *pProcessReport, bool overwriteFile=false, const bool &autoSave=false) |
| bool | autoSave () |
| bool | newModel (CModel *pModel, CProcessReport *pProcessReport, CListOfLayouts *pLol=NULL) |
| bool | importSBMLFromString (const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL) |
| bool | importSBML (const std::string &fileName, CProcessReport *pImportHandler=NULL) |
| std::string | exportSBMLToString (CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion) |
| bool | exportSBML (const std::string &fileName, bool overwriteFile=false, int sbmlLevel=2, int sbmlVersion=1, bool exportIncomplete=false, bool exportCOPASIMIRIAM=true, CProcessReport *pExportHandler=NULL) |
| bool | exportMathModel (const std::string &fileName, CProcessReport *pProcessReport, const std::string &filter, bool overwriteFile=false) |
| CModel * | getModel () |
| const CModel * | getModel () const |
| CCopasiVectorN< CCopasiTask > * | getTaskList () |
| const CCopasiVectorN < CCopasiTask > * | getTaskList () const |
| CCopasiTask * | addTask (const CCopasiTask::Type &taskType) |
| bool | addDefaultTasks () |
| bool | appendDependentTasks (std::set< const CCopasiObject * > candidates, std::set< const CCopasiObject * > &dependentTasks) const |
| CReportDefinitionVector * | getReportDefinitionList () |
| CReportDefinition * | addReport (const CCopasiTask::Type &taskType) |
| bool | addDefaultReports () |
| COutputDefinitionVector * | getPlotDefinitionList () |
| CListOfLayouts * | getListOfLayouts () |
| const CListOfLayouts * | getListOfLayouts () const |
| bool | removeLayout (const std::string &key) |
| SCopasiXMLGUI * | getGUI () |
| const std::string & | getFileName () const |
| bool | isChanged () const |
| void | changed (const bool &changed=true) |
| SBMLDocument * | getCurrentSBMLDocument () |
| bool | setSBMLFileName (const std::string &fileName) |
| const std::string & | getSBMLFileName () const |
| std::map< CCopasiObject *, SBase * > & | getCopasi2SBMLMap () |
| CCopasiObject * | ObjectFromName (const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiObjectName &objName) |
| const CCopasiObject * | ObjectFromName (const std::vector< CCopasiContainer * > &listOfContainer, const CCopasiObjectName &objName) const |
Public Attributes | |
| CCopasiVectorS< CMetabOld > * | pOldMetabolites |
Protected Member Functions | |
| void | removeSBMLIdFromFunctions () |
Protected Attributes | |
| CModel * | mpModel |
| CCopasiVectorN< CCopasiTask > * | mpTaskList |
| CReportDefinitionVector * | mpReportDefinitionList |
| COutputDefinitionVector * | mpPlotDefinitionList |
| CListOfLayouts * | mpListOfLayouts |
| bool | mWithGUI |
| SCopasiXMLGUI * | mpGUI |
| std::string | mSaveFileName |
| bool | mChanged |
| bool | mAutoSaveNeeded |
| CDataModelRenameHandler | mRenameHandler |
| SBMLDocument * | mpCurrentSBMLDocument |
| std::string | mSBMLFileName |
| std::map< CCopasiObject *, SBase * > | mCopasi2SBMLMap |
| CCopasiDataModel::CCopasiDataModel | ( | const bool | withGUI = false | ) |
| CCopasiDataModel::CCopasiDataModel | ( | const std::string & | name, |
| const CCopasiContainer * | pParent = NULL, |
||
| const std::string & | type = "CN", |
||
| bool | withGUI = false |
||
| ) |
| CCopasiDataModel::~CCopasiDataModel | ( | ) |
| bool CCopasiDataModel::addDefaultReports | ( | ) |
| bool CCopasiDataModel::addDefaultTasks | ( | ) |
| CReportDefinition * CCopasiDataModel::addReport | ( | const CCopasiTask::Type & | taskType | ) |
| CCopasiTask * CCopasiDataModel::addTask | ( | const CCopasiTask::Type & | taskType | ) |
| bool CCopasiDataModel::appendDependentTasks | ( | std::set< const CCopasiObject * > | candidates, |
| std::set< const CCopasiObject * > & | dependentTasks | ||
| ) | const |
Appends pointers to tasks, which are dependent on any of the candidates to the list dependentTasks.
| std::set< | const CCopasiObject * > candidates |
| std::set< | const CCopasiObject * > & dependentTasks |
| bool CCopasiDataModel::autoSave | ( | ) |
| void CCopasiDataModel::changed | ( | const bool & | changed = true | ) |
| bool CCopasiDataModel::exportMathModel | ( | const std::string & | fileName, |
| CProcessReport * | pProcessReport, | ||
| const std::string & | filter, | ||
| bool | overwriteFile = false |
||
| ) |
| bool CCopasiDataModel::exportSBML | ( | const std::string & | fileName, |
| bool | overwriteFile = false, |
||
| int | sbmlLevel = 2, |
||
| int | sbmlVersion = 1, |
||
| bool | exportIncomplete = false, |
||
| bool | exportCOPASIMIRIAM = true, |
||
| CProcessReport * | pExportHandler = NULL |
||
| ) |
| std::string CCopasiDataModel::exportSBMLToString | ( | CProcessReport * | pExportHandler, |
| int | sbmlLevel, | ||
| int | sbmlVersion | ||
| ) |
| std::map< CCopasiObject *, SBase * > & CCopasiDataModel::getCopasi2SBMLMap | ( | ) |
| SBMLDocument * CCopasiDataModel::getCurrentSBMLDocument | ( | ) |
| const std::string & CCopasiDataModel::getFileName | ( | ) | const |
| SCopasiXMLGUI * CCopasiDataModel::getGUI | ( | ) |
| CListOfLayouts * CCopasiDataModel::getListOfLayouts | ( | ) |
| const CListOfLayouts * CCopasiDataModel::getListOfLayouts | ( | ) | const |
| CModel * CCopasiDataModel::getModel | ( | ) |
| const CModel * CCopasiDataModel::getModel | ( | ) | const |
| COutputDefinitionVector * CCopasiDataModel::getPlotDefinitionList | ( | ) |
| CReportDefinitionVector * CCopasiDataModel::getReportDefinitionList | ( | ) |
| const std::string & CCopasiDataModel::getSBMLFileName | ( | ) | const |
| CCopasiVectorN< CCopasiTask > * CCopasiDataModel::getTaskList | ( | ) |
| const CCopasiVectorN< CCopasiTask > * CCopasiDataModel::getTaskList | ( | ) | const |
| bool CCopasiDataModel::importSBML | ( | const std::string & | fileName, |
| CProcessReport * | pImportHandler = NULL |
||
| ) |
| bool CCopasiDataModel::importSBMLFromString | ( | const std::string & | sbmlDocumentText, |
| CProcessReport * | pImportHandler = NULL |
||
| ) |
| bool CCopasiDataModel::isChanged | ( | ) | const |
| bool CCopasiDataModel::loadModel | ( | const std::string & | fileName, |
| CProcessReport * | pProcessReport | ||
| ) |
| bool CCopasiDataModel::newModel | ( | CModel * | pModel, |
| CProcessReport * | pProcessReport, | ||
| CListOfLayouts * | pLol = NULL |
||
| ) |
| CCopasiObject * CCopasiDataModel::ObjectFromName | ( | const std::vector< CCopasiContainer * > & | listOfContainer, |
| const CCopasiObjectName & | objName | ||
| ) |
| const | std::vector< CCopasiContainer * > &listOfContainer |
| const | CCopasiObjectName& objName |
| const CCopasiObject * CCopasiDataModel::ObjectFromName | ( | const std::vector< CCopasiContainer * > & | listOfContainer, |
| const CCopasiObjectName & | objName | ||
| ) | const |
| const | std::vector< CCopasiContainer * > &listOfContainer |
| const | CCopasiObjectName& objName |
| bool CCopasiDataModel::removeLayout | ( | const std::string & | key | ) |
| void CCopasiDataModel::removeSBMLIdFromFunctions | ( | ) | [protected] |
| bool CCopasiDataModel::saveModel | ( | const std::string & | fileName, |
| CProcessReport * | pProcessReport, | ||
| bool | overwriteFile = false, |
||
| const bool & | autoSave = false |
||
| ) |
| bool CCopasiDataModel::setSBMLFileName | ( | const std::string & | fileName | ) |
bool CCopasiDataModel::mAutoSaveNeeded [protected] |
bool CCopasiDataModel::mChanged [protected] |
std::map<CCopasiObject*, SBase*> CCopasiDataModel::mCopasi2SBMLMap [protected] |
This will map each Copasi object to the corresponding SBML object if the current model was created by an SBML import.
SBMLDocument* CCopasiDataModel::mpCurrentSBMLDocument [protected] |
This will hold the SBMLDocument that was imported to create the current Model.
SCopasiXMLGUI* CCopasiDataModel::mpGUI [protected] |
CListOfLayouts* CCopasiDataModel::mpListOfLayouts [protected] |
CModel* CCopasiDataModel::mpModel [protected] |
CCopasiVectorN< CCopasiTask >* CCopasiDataModel::mpTaskList [protected] |
std::string CCopasiDataModel::mSaveFileName [protected] |
std::string CCopasiDataModel::mSBMLFileName [protected] |
The name of the referenced SBML file
bool CCopasiDataModel::mWithGUI [protected] |
This is a hack at the moment to be able to read Gepasi model files
1.7.5.1