copasi API
0.1
|
#include <CModel.h>
Classes | |
class | CLinkMatrixView |
Public Types | |
enum | VolumeUnit { dimensionlessVolume = 0, m3, l, ml, microl, nl, pl, fl } |
enum | AreaUnit { dimensionlessArea = 0, m2, dm2, cm2, mm2, microm2, nm2, pm2, fm2 } |
enum | LengthUnit { dimensionlessLength = 0, m, dm, cm, mm, microm, nm, pm, fm } |
enum | TimeUnit { dimensionlessTime = 0, d, h, min, s, ms, micros, ns, ps, fs, OldMinute } |
enum | QuantityUnit { dimensionlessQuantity = 0, Mol, mMol, microMol, nMol, pMol, fMol, number, OldXML } |
enum | ModelType { deterministic = 0, stochastic } |
Public Member Functions | |
CModel (CCopasiContainer *pParent) | |
~CModel () | |
virtual std::string | getChildObjectUnits (const CCopasiObject *pObject) const |
void | cleanup () |
bool | convert2NonReversible () |
C_INT32 | load (CReadConfig &configBuffer) |
void | initializeMetabolites () |
void | setCompileFlag (bool flag=true) |
bool | compileIfNecessary (CProcessReport *pProcessReport) |
bool | forceCompile (CProcessReport *pProcessReport) |
void | compileDefaultMetabInitialValueDependencies () |
void | buildStoi () |
void | buildLinkZero () |
void | buildRedStoi () |
void | buildMoieties () |
const CCopasiVector< CMetab > & | getMetabolites () const |
CCopasiVector< CMetab > & | getMetabolites () |
const CCopasiVector< CMetab > & | getMetabolitesX () const |
CCopasiVector< CMetab > & | getMetabolitesX () |
unsigned C_INT32 | getNumMetabs () const |
unsigned C_INT32 | getNumVariableMetabs () const |
unsigned C_INT32 | getNumODEMetabs () const |
unsigned C_INT32 | getNumAssignmentMetabs () const |
unsigned C_INT32 | getNumIndependentReactionMetabs () const |
unsigned C_INT32 | getNumDependentReactionMetabs () const |
const CCopasiVectorN < CModelValue > & | getModelValues () const |
CCopasiVectorN< CModelValue > & | getModelValues () |
unsigned C_INT32 | getNumModelValues () const |
CCopasiVectorNS< CReaction > & | getReactions () |
const CCopasiVectorNS < CReaction > & | getReactions () const |
unsigned C_INT32 | getTotSteps () const |
const CVector< C_FLOAT64 > & | getParticleFlux () const |
CCopasiVectorN< CEvent > & | getEvents () |
const CCopasiVectorN< CEvent > & | getEvents () const |
const std::string & | getKey () const |
bool | setTitle (const std::string &title) |
void | setInitialTime (const C_FLOAT64 &time) |
const C_FLOAT64 & | getInitialTime () const |
void | setTime (const C_FLOAT64 &time) |
const C_FLOAT64 & | getTime () const |
CCopasiVectorNS< CCompartment > & | getCompartments () |
const CCopasiVectorNS < CCompartment > & | getCompartments () const |
const CMatrix< C_FLOAT64 > & | getStoi () const |
const CMatrix< C_FLOAT64 > & | getRedStoi () const |
const CMatrix< C_FLOAT64 > & | getStoiReordered () const |
const CCopasiVector< CMoiety > & | getMoieties () const |
unsigned C_INT32 | findMetabByName (const std::string &Target) const |
unsigned C_INT32 | findMoiety (const std::string &Target) const |
const CLinkMatrixView & | getL () const |
const CMatrix< C_FLOAT64 > & | getL0 () const |
void | applyInitialValues () |
bool | updateInitialValues () |
const CState & | getInitialState () const |
const CState & | getState () const |
void | setInitialState (const CState &state) |
void | setState (const CState &state) |
void | updateSimulatedValues (const bool &updateMoieties) |
void | updateNonSimulatedValues (void) |
void | calculateDerivatives (C_FLOAT64 *derivatives) |
void | calculateDerivativesX (C_FLOAT64 *derivativesX) |
void | calculateElasticityMatrix (const C_FLOAT64 &factor, const C_FLOAT64 &resolution) |
void | calculateJacobian (CMatrix< C_FLOAT64 > &jacobian, const C_FLOAT64 &derivationFactor, const C_FLOAT64 &resolution) |
void | calculateJacobianX (CMatrix< C_FLOAT64 > &jacobianX, const C_FLOAT64 &derivationFactor, const C_FLOAT64 &resolution) |
C_FLOAT64 | calculateDivergence () const |
bool | setVolumeUnit (const std::string &name) |
bool | setVolumeUnit (const CModel::VolumeUnit &unit) |
std::string | getVolumeUnitName () const |
CModel::VolumeUnit | getVolumeUnitEnum () const |
bool | setAreaUnit (const std::string &name) |
bool | setAreaUnit (const CModel::AreaUnit &unit) |
std::string | getAreaUnitName () const |
CModel::AreaUnit | getAreaUnitEnum () const |
bool | setLengthUnit (const std::string &name) |
bool | setLengthUnit (const CModel::LengthUnit &unit) |
std::string | getLengthUnitName () const |
CModel::LengthUnit | getLengthUnitEnum () const |
bool | setTimeUnit (const std::string &name) |
bool | setTimeUnit (const CModel::TimeUnit &unit) |
std::string | getTimeUnitName () const |
CModel::TimeUnit | getTimeUnitEnum () const |
bool | setQuantityUnit (const std::string &name) |
bool | setQuantityUnit (const CModel::QuantityUnit &unit) |
std::string | getQuantityUnitName () const |
std::string | getQuantityUnitOldXMLName () const |
CModel::QuantityUnit | getQuantityUnitEnum () const |
void | setModelType (const ModelType &modelType) |
const ModelType & | getModelType () const |
void | setAvogadro (const C_FLOAT64 &avogadro) |
const C_FLOAT64 & | getAvogadro () const |
const C_FLOAT64 & | getQuantity2NumberFactor () const |
const C_FLOAT64 & | getNumber2QuantityFactor () const |
CMetab * | createMetabolite (const std::string &name, const std::string &compartment, const C_FLOAT64 &iconc=1.0, const CModelEntity::Status &status=CModelEntity::REACTIONS) |
bool | removeMetabolite (const std::string &key, const bool &recursive=true) |
bool | removeMetabolite (const unsigned C_INT32 index, const bool &recursive=true) |
bool | removeMetabolite (const CMetab *pMetabolite, const bool &recursive=true) |
bool | appendDependentModelObjects (const std::set< const CCopasiObject * > &candidates, std::set< const CCopasiObject * > &dependentReactions, std::set< const CCopasiObject * > &dependentMetabolites, std::set< const CCopasiObject * > &dependentCompartments, std::set< const CCopasiObject * > &dependentModelValues, std::set< const CCopasiObject * > &dependentEvents) const |
bool | appendDependentReactions (std::set< const CCopasiObject * > candidates, std::set< const CCopasiObject * > &dependents) const |
bool | appendDependentMetabolites (std::set< const CCopasiObject * > candidates, std::set< const CCopasiObject * > &dependents) const |
bool | appendDependentCompartments (std::set< const CCopasiObject * > candidates, std::set< const CCopasiObject * > &dependents) const |
bool | appendDependentModelValues (std::set< const CCopasiObject * > candidates, std::set< const CCopasiObject * > &dependents) const |
bool | appendDependentEvents (std::set< const CCopasiObject * > candidates, std::set< const CCopasiObject * > &dependents) const |
void | removeDependentModelObjects (const std::set< const CCopasiObject * > &deletedObjects) |
CCompartment * | createCompartment (const std::string &name, const C_FLOAT64 &volume=1.0) |
bool | removeCompartment (const unsigned C_INT32 index, const bool &recursive=true) |
bool | removeCompartment (const std::string &key, const bool &recursive=true) |
bool | removeCompartment (const CCompartment *pCompartment, const bool &recursive=true) |
CReaction * | createReaction (const std::string &name) |
bool | removeReaction (const CReaction *pReaction, const bool &recursive=true) |
bool | removeReaction (const std::string &key, const bool &recursive=true) |
bool | removeReaction (const unsigned C_INT32 index, const bool &recursive=true) |
bool | removeLocalReactionParameter (const std::string &key, const bool &recursive=true) |
CEvent * | createEvent (const std::string &name) |
bool | removeEvent (const unsigned C_INT32 index, const bool &recursive=true) |
bool | removeEvent (const std::string &key, const bool &recursive=true) |
bool | removeEvent (const CEvent *pEvent, const bool &recursive=true) |
void | synchronizeEventOrder (const CEvent *pEvent, const unsigned C_INT32 newOrder) |
CModelValue * | createModelValue (const std::string &name, const C_FLOAT64 &value=0.0) |
bool | removeModelValue (const CModelValue *pModelValue, const bool &recursive=true) |
bool | removeModelValue (const std::string &key, const bool &recursive=true) |
bool | removeModelValue (const unsigned C_INT32 index, const bool &recursive=true) |
const CVector< unsigned C_INT32 > & | getMetabolitePermutation () const |
const CStateTemplate & | getStateTemplate () const |
CStateTemplate & | getStateTemplate () |
const std::set< const CCopasiObject * > & | getUptoDateObjects () const |
const std::vector< Refresh * > & | getListOfInitialRefreshes () const |
const std::vector< Refresh * > & | getListOfSimulatedRefreshes () const |
const std::vector< Refresh * > & | getListOfConstantRefreshes () const |
const std::vector< Refresh * > & | getListOfNonSimulatedRefreshes () const |
bool | hasReversibleReaction () const |
std::string | suitableForStochasticSimulation () const |
const bool & | isAutonomous () const |
std::vector< Refresh * > | buildInitialRefreshSequence (std::set< const CCopasiObject * > &changedObjects) |
CVector< C_FLOAT64 > | initializeAtolVector (const C_FLOAT64 &baseTolerance, const bool &reducedModel) const |
std::string | printParameterOverview () |
std::string | getTimeUnitsDisplayString () const |
std::string | getFrequencyUnitsDisplayString () const |
std::string | getVolumeUnitsDisplayString () const |
std::string | getVolumeRateUnitsDisplayString () const |
std::string | getConcentrationUnitsDisplayString () const |
std::string | getConcentrationRateUnitsDisplayString () const |
std::string | getQuantityRateUnitsDisplayString () const |
void | evaluateRoots (CVectorCore< C_FLOAT64 > &rootValues, const bool &ignoreDiscrete) |
bool | processQueue (const C_FLOAT64 &time, const bool &equality, CProcessQueue::resolveSimultaneousAssignments pResolveSimultaneousAssignments) |
void | processRoots (const C_FLOAT64 &time, const bool &equality, const CVector< C_INT > &roots) |
const C_FLOAT64 & | getProcessQueueExecutionTime () const |
size_t | getNumRoots () const |
void | calculateRootDerivatives (CVector< C_FLOAT64 > &rootDerivatives) |
const CVector < CMathTrigger::CRootFinder * > & | getRootFinders () const |
Static Public Attributes | |
static const char * | VolumeUnitNames [] |
static const char * | AreaUnitNames [] |
static const char * | LengthUnitNames [] |
static const char * | TimeUnitNames [] |
static const char * | QuantityUnitOldXMLNames [] |
static const char * | QuantityUnitNames [] |
static const char * | ModelTypeNames [] |
enum CModel::AreaUnit |
enum CModel::LengthUnit |
enum CModel::ModelType |
enum CModel::QuantityUnit |
enum CModel::TimeUnit |
enum CModel::VolumeUnit |
CModel::CModel | ( | CCopasiContainer * | pParent | ) |
constructor
CModel::~CModel | ( | ) |
Destructor
bool CModel::appendDependentCompartments | ( | std::set< const CCopasiObject * > | candidates, |
std::set< const CCopasiObject * > & | dependents | ||
) | const |
Appends pointers to compartments which are dependent on the candidates to the list.
std::set< | const CCopasiObject * > candidates |
std::set< | const CCopasiObject * > & dependents |
bool CModel::appendDependentEvents | ( | std::set< const CCopasiObject * > | candidates, |
std::set< const CCopasiObject * > & | dependents | ||
) | const |
Appends a pointers to events which are dependent on the candidates to the list.
std::set< | const CCopasiObject * > candidates |
std::set< | const CCopasiObject * > & dependents |
bool CModel::appendDependentMetabolites | ( | std::set< const CCopasiObject * > | candidates, |
std::set< const CCopasiObject * > & | dependents | ||
) | const |
Appends pointers to metabolites which are dependent on the candidates to the list.
std::set< | const CCopasiObject * > candidates |
std::set< | const CCopasiObject * > & dependents |
bool CModel::appendDependentModelObjects | ( | const std::set< const CCopasiObject * > & | candidates, |
std::set< const CCopasiObject * > & | dependentReactions, | ||
std::set< const CCopasiObject * > & | dependentMetabolites, | ||
std::set< const CCopasiObject * > & | dependentCompartments, | ||
std::set< const CCopasiObject * > & | dependentModelValues, | ||
std::set< const CCopasiObject * > & | dependentEvents | ||
) | const |
Appends pointers to all model objects, which are dependent on the candidates to appropriate lists.
const | std::set< const CCopasiObject * > & candidates |
std::set< | const CCopasiObject * > & dependentReactions |
std::set< | const CCopasiObject * > & dependentMetabolites |
std::set< | const CCopasiObject * > & dependentCompartments |
std::set< | const CCopasiObject * > & dependentModelValues |
std::set< | const CCopasiObject * > & dependentEvents |
bool CModel::appendDependentModelValues | ( | std::set< const CCopasiObject * > | candidates, |
std::set< const CCopasiObject * > & | dependents | ||
) | const |
Appends a pointers to model values which are dependent on the candidates to the list.
std::set< | const CCopasiObject * > candidates |
std::set< | const CCopasiObject * > & dependents |
bool CModel::appendDependentReactions | ( | std::set< const CCopasiObject * > | candidates, |
std::set< const CCopasiObject * > & | dependents | ||
) | const |
Appends pointers to reactions which are dependent on the candidates to the list.
std::set< | const CCopasiObject * > candidates |
std::set< | const CCopasiObject * > & dependents |
void CModel::applyInitialValues | ( | ) |
initialize all values of the model with their initial values
std::vector< Refresh * > CModel::buildInitialRefreshSequence | ( | std::set< const CCopasiObject * > & | changedObjects | ) |
Build the update sequence used to calculate all initial values depending on the changed objects. For metabolites the initial particle number is updated by default unless itself is in the list of changed objects. In that case the initial concentration is updated.
std::set< | const CCopasiObject * > & changedObjects |
void CModel::buildLinkZero | ( | ) |
Build the core of the link matrix L
const | CMatrix< C_FLOAT64 > & LU |
void CModel::buildMoieties | ( | ) |
Build the moieties based on the LU decomposition
void CModel::buildRedStoi | ( | ) |
Build the core of the link matrix L
const | CMatrix< C_FLOAT64 > & LU Build the Reduced Stoichiometry Matrix from the LU decomposition |
void CModel::buildStoi | ( | ) |
Build the Stoichiometry Matrix from the chemical equations of the steps
void CModel::calculateDerivatives | ( | C_FLOAT64 * | derivatives | ) |
Calculate the changes of all model quantities determined by ODEs for the model in the current state. The parameter derivatives must at least provide space for state->getVariableNumberSize() double ¶m C_FLOAT64 * derivatives (output)
void CModel::calculateDerivativesX | ( | C_FLOAT64 * | derivativesX | ) |
Calculate the changes of all model quantities determined by ODEs for the reduced model in the current state. The parameter derivatives must at least provide space for state->getDependentNumberSize() double ¶m C_FLOAT64 * derivatives (output)
C_FLOAT64 CModel::calculateDivergence | ( | ) | const |
Calculates the divergence for the current state. calculateElasticityMatrix() needs to be called before. It makes only sense to use this method if the Jacobian is not also calculated. In this case it would be more efficient to use the trace of the Jacobian
void CModel::calculateElasticityMatrix | ( | const C_FLOAT64 & | factor, |
const C_FLOAT64 & | resolution | ||
) |
Calculates the elasticity matrix of the model for the current state and stores it in the provided matrix.
CMatrix< | C_FLOAT64 > & elasticityMatrix |
const | C_FLOAT64 & factor, |
const | C_FLOAT64 & resolution |
void CModel::calculateJacobian | ( | CMatrix< C_FLOAT64 > & | jacobian, |
const C_FLOAT64 & | derivationFactor, | ||
const C_FLOAT64 & | resolution | ||
) |
Calculates the jacobian of the full model for the current state and stores it in the provided matrix. calculateElasticityMatrix() needs to be called before.
CMatrix< | C_FLOAT64 > & jacobian |
const | C_FLOAT64 & derivationFactor, |
const | C_FLOAT64 & resolution |
void CModel::calculateJacobianX | ( | CMatrix< C_FLOAT64 > & | jacobianX, |
const C_FLOAT64 & | derivationFactor, | ||
const C_FLOAT64 & | resolution | ||
) |
Calculates the Jacobian of the reduced model for the current state and stores it in the provided matrix. calculateElasticityMatrix() needs to be called before.
const | C_FLOAT64 & derivationFactor, |
const | C_FLOAT64 & resolution |
CMatrix< | C_FLOAT64 > & jacobianX |
void CModel::calculateRootDerivatives | ( | CVector< C_FLOAT64 > & | rootDerivatives | ) |
Calculate the time derivative of all roots
CVector< | C_FLOAT64 > & rootDerivatives |
void CModel::cleanup | ( | ) |
Cleanup
void CModel::compileDefaultMetabInitialValueDependencies | ( | ) |
Compile the default initial value dependencies, which is that the initial concentration is updated.
bool CModel::compileIfNecessary | ( | CProcessReport * | pProcessReport | ) |
Compile the model if necessary
CProcessReport* | pProcessReport |
bool CModel::convert2NonReversible | ( | ) |
Converts the set of reactions to a set of reactions where all reactions are irreversible.
CCompartment * CModel::createCompartment | ( | const std::string & | name, |
const C_FLOAT64 & | volume = 1.0 |
||
) |
Add a compartment to the model
const | std::string &name |
const | C_FLOAT64 & volume (default 1.0) |
CEvent * CModel::createEvent | ( | const std::string & | name | ) |
Add a new event to the model
const | std::string &name |
CMetab * CModel::createMetabolite | ( | const std::string & | name, |
const std::string & | compartment, | ||
const C_FLOAT64 & | iconc = 1.0 , |
||
const CModelEntity::Status & | status = CModelEntity::REACTIONS |
||
) |
Add a metabolite to the model
const | std::string & name |
const | std::string & compartment |
const | C_FLOAT64 & iconc (default 1.0) |
const | CMetab::Status & status (default CMetab::METAB_VARIABL) |
CModelValue * CModel::createModelValue | ( | const std::string & | name, |
const C_FLOAT64 & | value = 0.0 |
||
) |
Add a non concentration value to the model
const | std::string &name |
const | C_FLOAT64 & value (default 0.0) |
CReaction * CModel::createReaction | ( | const std::string & | name | ) |
Add a new reaction to the model
const | std::string &name |
void CModel::evaluateRoots | ( | CVectorCore< C_FLOAT64 > & | rootValues, |
const bool & | ignoreDiscrete | ||
) |
Evaluate all root values for the current state of the model. If ignoreDiscrete is true discrete roots evaluate to 1.0.
CVectorCore< | C_FLOAT64 > & rootValues |
const | bool & ignoreDiscrete |
unsigned C_INT32 CModel::findMetabByName | ( | const std::string & | Target | ) | const |
Returns the index of the metab
const | std::string & Target |
Returns the index of the metab
unsigned C_INT32 CModel::findMoiety | ( | const std::string & | Target | ) | const |
Returns the index of the moiety
const | std::string & Target |
Returns the index of the Moiety
bool CModel::forceCompile | ( | CProcessReport * | pProcessReport | ) |
Force a compile the model.
CProcessReport* | pProcessReport |
CModel::AreaUnit CModel::getAreaUnitEnum | ( | ) | const |
Get the unit for areas
std::string CModel::getAreaUnitName | ( | ) | const |
Get the unit for areas
const C_FLOAT64 & CModel::getAvogadro | ( | ) | const |
Retrieve the Avogadro number.
std::string CModel::getChildObjectUnits | ( | const CCopasiObject * | pObject | ) | const [virtual] |
Retrieve the units of the child object.
Reimplemented from CCopasiContainer.
CCopasiVectorNS< CCompartment > & CModel::getCompartments | ( | ) |
Return the compartments of this model
const CCopasiVectorNS< CCompartment > & CModel::getCompartments | ( | ) | const |
Return the compartments of this model
std::string CModel::getConcentrationRateUnitsDisplayString | ( | ) | const |
Retrieve the concentration rate units
std::string CModel::getConcentrationUnitsDisplayString | ( | ) | const |
Retrieve the concentration units
CCopasiVectorN< CEvent > & CModel::getEvents | ( | ) |
Return the vector of events
const CCopasiVectorN< CEvent > & CModel::getEvents | ( | ) | const |
Return the vector of events
std::string CModel::getFrequencyUnitsDisplayString | ( | ) | const |
Retrieve the frequency units
const CState & CModel::getInitialState | ( | ) | const |
Get the current state of the model, i.e., all current model quantities.
const C_FLOAT64 & CModel::getInitialTime | ( | ) | const |
Retrieve the initial time
const std::string & CModel::getKey | ( | ) | const [virtual] |
const CModel::CLinkMatrixView & CModel::getL | ( | ) | const |
Get the LU decomposition matrix of this model
const CMatrix< C_FLOAT64 > & CModel::getL0 | ( | ) | const |
Get the relevant portion of the link matrix L.
CModel::LengthUnit CModel::getLengthUnitEnum | ( | ) | const |
Get the unit for lengths
std::string CModel::getLengthUnitName | ( | ) | const |
Get the unit for lengths
const std::vector< Refresh * > & CModel::getListOfConstantRefreshes | ( | ) | const |
Retrieve the sequence of refresh calls to be executed for updating the constant values
const std::vector< Refresh * > & CModel::getListOfInitialRefreshes | ( | ) | const |
Retrieve the sequence of refresh calls to be executed for updating the initial values
const std::vector< Refresh * > & CModel::getListOfNonSimulatedRefreshes | ( | ) | const |
Retrieve the sequence of refresh calls to be executed for updating the non simulated values
const std::vector< Refresh * > & CModel::getListOfSimulatedRefreshes | ( | ) | const |
Retrieve the sequence of refresh calls to be executed for updating the simulated values
const CVector< unsigned C_INT32 > & CModel::getMetabolitePermutation | ( | ) | const |
Retrieve the metabolite permutation vector
const CCopasiVector< CMetab > & CModel::getMetabolites | ( | ) | const |
Return the metabolites of this model
CCopasiVector< CMetab > & CModel::getMetabolites | ( | ) |
const CCopasiVector< CMetab > & CModel::getMetabolitesX | ( | ) | const |
Retrieves the vector of metabolites at it is used in the reduced model.
CCopasiVector< CMetab > & CModel::getMetabolitesX | ( | ) |
const CModel::ModelType & CModel::getModelType | ( | ) | const |
Retrieve the type of the model.
const CCopasiVectorN< CModelValue > & CModel::getModelValues | ( | ) | const |
Return the non concentration values of this model
CCopasiVectorN< CModelValue > & CModel::getModelValues | ( | ) |
const CCopasiVector< CMoiety > & CModel::getMoieties | ( | ) | const |
Return the mMoieties of this model
unsigned C_INT32 CModel::getNumAssignmentMetabs | ( | ) | const |
Get the number of metabolites determined by assigments
const C_FLOAT64 & CModel::getNumber2QuantityFactor | ( | ) | const |
Get the conversion factor number -> quantity
unsigned C_INT32 CModel::getNumDependentReactionMetabs | ( | ) | const |
Get the number of dependent metabolites determined by reactions
unsigned C_INT32 CModel::getNumIndependentReactionMetabs | ( | ) | const |
Get the number of independent metabolites determined by reactions
unsigned C_INT32 CModel::getNumMetabs | ( | ) | const |
Get the number of total metabolites
unsigned C_INT32 CModel::getNumModelValues | ( | ) | const |
Get the number of non concentration values
unsigned C_INT32 CModel::getNumODEMetabs | ( | ) | const |
Get the number of metabolites determined by ODEs
size_t CModel::getNumRoots | ( | ) | const |
Retrieve the number of roots used in checking for discontinuities.
unsigned C_INT32 CModel::getNumVariableMetabs | ( | ) | const |
Get the number of variable metabolites
const CVector< C_FLOAT64 > & CModel::getParticleFlux | ( | ) | const |
Retrieve the vector of particle fluxes from the model
const C_FLOAT64 & CModel::getProcessQueueExecutionTime | ( | ) | const |
Retrieve the next execution time scheduled in the process queue
const C_FLOAT64 & CModel::getQuantity2NumberFactor | ( | ) | const |
Get the conversion factor quantity -> number
std::string CModel::getQuantityRateUnitsDisplayString | ( | ) | const |
Retrieve the quantity rate units
CModel::QuantityUnit CModel::getQuantityUnitEnum | ( | ) | const |
Get the unit for quantities
std::string CModel::getQuantityUnitName | ( | ) | const |
Get the unit for quantities
std::string CModel::getQuantityUnitOldXMLName | ( | ) | const |
CCopasiVectorNS< CReaction > & CModel::getReactions | ( | ) |
Return the vector of reactions
const CCopasiVectorNS< CReaction > & CModel::getReactions | ( | ) | const |
Return the vector of reactions
const CMatrix< C_FLOAT64 > & CModel::getRedStoi | ( | ) | const |
Get the Reduced Stoichiometry Matrix of this Model
const CVector< CMathTrigger::CRootFinder * > & CModel::getRootFinders | ( | ) | const |
Retrieve a vector of root finders
const CState & CModel::getState | ( | ) | const |
Get the current state of the model, i.e., all current model quantities.
const CStateTemplate & CModel::getStateTemplate | ( | ) | const |
Retrieve the state template
CStateTemplate & CModel::getStateTemplate | ( | ) |
Retrieve the state template
const CMatrix< C_FLOAT64 > & CModel::getStoi | ( | ) | const |
Get the Stoichiometry Matrix of this Model
const CMatrix< C_FLOAT64 > & CModel::getStoiReordered | ( | ) | const |
Get the reordered stoichiometry matrix of this model
const C_FLOAT64 & CModel::getTime | ( | ) | const |
Retrieve the actual model time
CModel::TimeUnit CModel::getTimeUnitEnum | ( | ) | const |
Get the unit for time
std::string CModel::getTimeUnitName | ( | ) | const |
Get the unit for time
std::string CModel::getTimeUnitsDisplayString | ( | ) | const |
Retrieve the time units
unsigned C_INT32 CModel::getTotSteps | ( | ) | const |
Get the total steps
const std::set< const CCopasiObject * > & CModel::getUptoDateObjects | ( | ) | const |
Retrieve the list of objects which are up to date after a call to apply assignment.
std::string CModel::getVolumeRateUnitsDisplayString | ( | ) | const |
Retrieve the area units
CModel::VolumeUnit CModel::getVolumeUnitEnum | ( | ) | const |
Get the unit for volumes
std::string CModel::getVolumeUnitName | ( | ) | const |
Get the unit for volumes
std::string CModel::getVolumeUnitsDisplayString | ( | ) | const |
Retrieve the volume units
bool CModel::hasReversibleReaction | ( | ) | const |
Check whether the model contains reversible reactions
CVector< C_FLOAT64 > CModel::initializeAtolVector | ( | const C_FLOAT64 & | baseTolerance, |
const bool & | reducedModel | ||
) | const |
Initialize a vector of individual absolute tolerances
const | C_FLOAT64 & baseTolerance |
const | bool & reducedModel |
void CModel::initializeMetabolites | ( | ) |
This function must be called to initialize the vector of Metabolites after finishing adding metabolites to compartments.
const bool & CModel::isAutonomous | ( | ) | const |
Check whether the model is autonomous
C_INT32 CModel::load | ( | CReadConfig & | configBuffer | ) |
Loads an object with data coming from a CReadConfig object. (CReadConfig object reads an input stream)
pconfigbuffer | reference to a CReadConfig object. |
std::string CModel::printParameterOverview | ( | ) |
generates a string that contains a text description of all model parameters (initial values and reaction parameters)
bool CModel::processQueue | ( | const C_FLOAT64 & | time, |
const bool & | equality, | ||
CProcessQueue::resolveSimultaneousAssignments | pResolveSimultaneousAssignments | ||
) |
Process events scheduled at the given which a are checked for equality or not
const | C_FLOAT64 & time |
const | bool & equality |
CProcessQueue::resolveSimultaneousAssignments | pResolveSimultaneousAssignments |
void CModel::processRoots | ( | const C_FLOAT64 & | time, |
const bool & | equality, | ||
const CVector< C_INT > & | roots | ||
) |
Check whether the roots which have value 1 lead to firing of events and schedule them if needed.
const | C_FLOAT64 & time |
const | bool & equality |
const | CVector< C_INT > & roots |
bool CModel::removeCompartment | ( | const unsigned C_INT32 | index, |
const bool & | recursive = true |
||
) |
Remove a Compartment from the model
bool CModel::removeCompartment | ( | const std::string & | key, |
const bool & | recursive = true |
||
) |
Remove a Compartment from the model
bool CModel::removeCompartment | ( | const CCompartment * | pCompartment, |
const bool & | recursive = true |
||
) |
Remove a Compartment from the model
void CModel::removeDependentModelObjects | ( | const std::set< const CCopasiObject * > & | deletedObjects | ) |
Remove all model objects which depend on the deleted objects
const | std::set<const CCopasiObject*> & deletedObjects |
bool CModel::removeEvent | ( | const unsigned C_INT32 | index, |
const bool & | recursive = true |
||
) |
Remove an event from the model
const | unsigned C_INT32 index |
const | bool & recursive (default: true) |
bool CModel::removeEvent | ( | const std::string & | key, |
const bool & | recursive = true |
||
) |
Remove an event from the model
const | std::string & key |
const | bool & recursive (default: true) |
bool CModel::removeEvent | ( | const CEvent * | pEvent, |
const bool & | recursive = true |
||
) |
Remove an event from the model
const | CEvent * pEvent |
const | bool & recursive (default: true) |
bool CModel::removeLocalReactionParameter | ( | const std::string & | key, |
const bool & | recursive = true |
||
) |
Remove a local reaction parameter from the model
bool CModel::removeMetabolite | ( | const std::string & | key, |
const bool & | recursive = true |
||
) |
bool CModel::removeMetabolite | ( | const unsigned C_INT32 | index, |
const bool & | recursive = true |
||
) |
bool CModel::removeMetabolite | ( | const CMetab * | pMetabolite, |
const bool & | recursive = true |
||
) |
bool CModel::removeModelValue | ( | const CModelValue * | pModelValue, |
const bool & | recursive = true |
||
) |
bool CModel::removeModelValue | ( | const std::string & | key, |
const bool & | recursive = true |
||
) |
bool CModel::removeModelValue | ( | const unsigned C_INT32 | index, |
const bool & | recursive = true |
||
) |
bool CModel::removeReaction | ( | const CReaction * | pReaction, |
const bool & | recursive = true |
||
) |
Remove a reaction from the model using its pointer
bool CModel::removeReaction | ( | const std::string & | key, |
const bool & | recursive = true |
||
) |
Remove a reaction from the model using its key
bool CModel::removeReaction | ( | const unsigned C_INT32 | index, |
const bool & | recursive = true |
||
) |
Remove a reaction from the model using its index
bool CModel::setAreaUnit | ( | const std::string & | name | ) |
Set the unit for areas.
const | std::string & name |
bool CModel::setAreaUnit | ( | const CModel::AreaUnit & | unit | ) |
void CModel::setAvogadro | ( | const C_FLOAT64 & | avogadro | ) |
Set the Avogadro number used for the model.
const | C_FLOAT64 & avogadro |
void CModel::setCompileFlag | ( | bool | flag = true | ) |
This must be called whenever something is changed in the model that would make it necessary to recalculate the matrix decomposition
void CModel::setInitialState | ( | const CState & | state | ) |
Set all initial model quantities to the one given by the state and updates moieties and metabolite concentrations.
const | CState & state |
void CModel::setInitialTime | ( | const C_FLOAT64 & | time | ) |
Set the start time for modeling
const | C_FLOAT64 & time |
bool CModel::setLengthUnit | ( | const std::string & | name | ) |
Set the unit for lengths.
const | std::string & name |
bool CModel::setLengthUnit | ( | const CModel::LengthUnit & | unit | ) |
void CModel::setModelType | ( | const ModelType & | modelType | ) |
Set the type of the model
const | ModelType & modelType |
bool CModel::setQuantityUnit | ( | const std::string & | name | ) |
Set the unit for quantities. If COPASI recognizes the unit the conversion factors are set accordingly and true is returned.
const | std::string & name |
bool CModel::setQuantityUnit | ( | const CModel::QuantityUnit & | unit | ) |
Set the unit for quantities. If COPASI recognizes the unit the conversion factors are set accordingly and true is returned.
const | CModel::QuantityUnit & unit |
void CModel::setState | ( | const CState & | state | ) |
Set all independent current model quantities to the one given by the state.
const | CState & state |
void CModel::setTime | ( | const C_FLOAT64 & | time | ) |
Set the actual model time
const | C_FLOAT64 & time |
bool CModel::setTimeUnit | ( | const std::string & | name | ) |
Set the unit for time. If COPASI recognizes the unit the conversion factors are set accordingly and true is returned.
const | std::string & name |
bool CModel::setTimeUnit | ( | const CModel::TimeUnit & | unit | ) |
Set the unit for time. If COPASI recognizes the unit the conversion factors are set accordingly and true is returned.
const | const CModel::TimeUnit & unit |
bool CModel::setTitle | ( | const std::string & | title | ) |
Return a pointer to the current time Set the title of this model
const string & | title title for this model |
bool CModel::setVolumeUnit | ( | const std::string & | name | ) |
Set the unit for volumes. If COPASI recognizes the unit the conversion factors are set accordingly and true is returned.
const | std::string & name |
bool CModel::setVolumeUnit | ( | const CModel::VolumeUnit & | unit | ) |
Set the unit for volumes. If COPASI recognizes the unit the conversion factors are set accordingly and true is returned.
const | CModel::VolumeUnit & unit |
std::string CModel::suitableForStochasticSimulation | ( | ) | const |
check if the model is suitable for stochastic simulation
void CModel::synchronizeEventOrder | ( | const CEvent * | pEvent, |
const unsigned C_INT32 | newOrder | ||
) |
Synchronize the order of other events effected by the change of the given event
const | CEvent * pEvent |
const | unsigned C_INT32 newOrder |
bool CModel::updateInitialValues | ( | ) |
Update all initial values.
void CModel::updateNonSimulatedValues | ( | void | ) |
Calling this method after updateSimulatedValues assure that all model values even those not needed for simulation are consistent with the current state
void CModel::updateSimulatedValues | ( | const bool & | updateMoieties | ) |
This method calculates all values needed for simulation based on the current current state. If updateMoities is true the particle numbers of dependent metabolites of type REACTION are calculated otherwise they are assumed to be synchronized.
const | bool & updateMoieties |
const char * CModel::AreaUnitNames [static] |
{"dimensionless", "m\xc2\xb2", "dm\xc2\xb2", "cm\xc2\xb2", "mm\xc2\xb2", "\xc2\xb5m\xc2\xb2", "nm\xc2\xb2", "pm\xc2\xb2", "fm\xc2\xb2", NULL}
String representation of valid area units
const char * CModel::LengthUnitNames [static] |
{"dimensionless", "m", "dm", "cm", "mm", "\xc2\xb5m", "nm", "pm", "fm", NULL}
String representation of valid length units
const char * CModel::ModelTypeNames [static] |
{"deterministic", "stochastic", NULL}
String representation of the valid model types.
const char * CModel::QuantityUnitNames [static] |
{"dimensionless", "mol", "mmol", "\xc2\xb5mol", "nmol", "pmol", "fmol", "#", NULL}
String representation of valid quantity units
const char * CModel::QuantityUnitOldXMLNames [static] |
{"dimensionless", "Mol", "mMol", "\xc2\xb5Mol", "nMol", "pMol", "fMol", "#", NULL}
String representation of valid quantity units as used in old (up to Build 18) COPASI files
const char * CModel::TimeUnitNames [static] |
{"dimensionless", "d", "h", "min", "s", "ms", "\xc2\xb5s", "ns", "ps", "fs", NULL}
String representation of valid time units
const char * CModel::VolumeUnitNames [static] |
{"dimensionless", "m\xc2\xb3", "l", "ml", "\xc2\xb5l", "nl", "pl", "fl", NULL}
String representation of valid volume units