COPASI API  4.40.278
CModelAdd Class Reference

#include <CModelMerging.h>

Public Member Functions

 CModelAdd (CModel *pModel, CModel *mModel)
 
void setModel (CModel *pModel, CModel *mModel)
 
void simpleCall ()
 just a simple method to call during development More...
 

Protected Member Functions

bool addCompartments (std::string name)
 
bool addCompartmentsExpressions ()
 
bool addEvents (std::string name)
 
bool addMetabolites (std::string name)
 
bool addMetabolitesExpressions ()
 
bool addModelValues (std::string name)
 
bool addModelValuesExpressions ()
 
bool addReactions (std::string name)
 
bool copyDelayExpression (const CEvent *sourceEvent, CEvent *newEvent)
 
bool copyEventAssignmentExpression (const CEventAssignment *sourceAssignment, CEventAssignment *newAssignment)
 
bool copyExpression (const CModelEntity *sourceEntity, CModelEntity *newEntity)
 
bool copyInitialExpression (const CModelEntity *sourceEntity, CModelEntity *newEntity)
 
bool copyTriggerExpression (const CEvent *sourceEvent, CEvent *newEvent)
 

Static Protected Member Functions

static bool reactionInvolvesCompartment (const CReaction *reac, const CCompartment *comp)
 

Protected Attributes

std::map< std::string, std::string > keyMap
 
CModelmmModel
 
CModelmpModel
 
std::map< std::string, std::string > nameMap
 

Constructor & Destructor Documentation

◆ CModelAdd()

CModelAdd::CModelAdd ( CModel pModel,
CModel mModel 
)

Member Function Documentation

◆ addCompartments()

◆ addCompartmentsExpressions()

◆ addEvents()

◆ addMetabolites()

◆ addMetabolitesExpressions()

◆ addModelValues()

◆ addModelValuesExpressions()

◆ addReactions()

◆ copyDelayExpression()

◆ copyEventAssignmentExpression()

◆ copyExpression()

◆ copyInitialExpression()

◆ copyTriggerExpression()

◆ reactionInvolvesCompartment()

bool CModelAdd::reactionInvolvesCompartment ( const CReaction reac,
const CCompartment comp 
)
staticprotected

determine whether the one of the substrate, products, or modifiers of the reaction is located in the given compartment

References CReaction::getChemEq(), CChemEq::getModifiers(), CChemEq::getProducts(), CChemEq::getSubstrates(), and CDataVector< CType >::size().

Referenced by addReactions().

◆ setModel()

void CModelAdd::setModel ( CModel pModel,
CModel mModel 
)

References mmModel, and mpModel.

◆ simpleCall()

Member Data Documentation

◆ keyMap

◆ mmModel

◆ mpModel

◆ nameMap

std::map<std::string, std::string> CModelAdd::nameMap
protected

The documentation for this class was generated from the following files: