copasi API
0.1
|
#include <CModelValue.h>
Public Types | |
enum | Status { FIXED = 0, ASSIGNMENT, REACTIONS, ODE, TIME } |
Public Member Functions | |
CModelEntity (const std::string &name="NoName", const CCopasiContainer *pParent=NULL, const std::string &type="ModelEntity", const unsigned C_INT32 &flag=CCopasiObject::Container|CCopasiObject::ValueDbl) | |
CModelEntity (const CModelEntity &src, const CCopasiContainer *pParent=NULL) | |
~CModelEntity () | |
virtual const std::string & | getKey () const |
const CModelEntity::Status & | getStatus () const |
virtual bool | compile () |
virtual void | calculate () |
bool | isFixed () const |
const C_FLOAT64 & | getValue () const |
const C_FLOAT64 & | getInitialValue () const |
virtual void | refreshInitialValue () |
const C_FLOAT64 & | getRate () const |
virtual void | setStatus (const CModelEntity::Status &status) |
virtual void | setValue (const C_FLOAT64 &value) |
virtual void | setInitialValue (const C_FLOAT64 &initialValue) |
void | setRate (const C_FLOAT64 &rate) |
virtual const CCopasiObject * | getValueObject () const |
virtual void * | getValuePointer () const |
virtual bool | setObjectParent (const CCopasiContainer *pParent) |
virtual std::set< const CCopasiObject * > | getDeletedObjects () const |
void | setSBMLId (const std::string &id) |
const std::string & | getSBMLId () const |
void | setInitialValuePtr (C_FLOAT64 *pInitialValue) |
void | setValuePtr (C_FLOAT64 *pValue) |
bool | setExpressionPtr (CExpression *pExpression) |
const CExpression * | getExpressionPtr () const |
CExpression * | getExpressionPtr () |
bool | setInitialExpressionPtr (CExpression *pExpression) |
const CExpression * | getInitialExpressionPtr () const |
CExpression * | getInitialExpressionPtr () |
bool | setExpression (const std::string &expression) |
std::string | getExpression () const |
bool | setInitialExpression (const std::string &expression) |
std::string | getInitialExpression () const |
void | setUsed (const bool &used) |
const bool & | isUsed () const |
CCopasiObject * | getInitialValueReference () const |
CCopasiObject * | getValueReference () const |
CCopasiObject * | getRateReference () const |
Static Public Attributes | |
static const std::string | StatusName [] |
static const char * | XMLStatus [] |
Protected Attributes | |
std::string | mKey |
std::string | mSBMLId |
C_FLOAT64 * | mpValue |
C_FLOAT64 * | mpIValue |
C_FLOAT64 | mRate |
CExpression * | mpExpression |
CExpression * | mpInitialExpression |
CCopasiObjectReference < C_FLOAT64 > * | mpIValueReference |
CCopasiObjectReference < C_FLOAT64 > * | mpValueReference |
CCopasiObjectReference < C_FLOAT64 > * | mpRateReference |
CModel * | mpModel |
The base class for CCompartment, CMetab and CModelValue. CModelEntity is a base class for CCompartment, CMetab and CModelValue. These three classes have in common that (in the long run) they can each be model variables (subject to ODEs), constant, or subject to algebraic assignments. In addition, the CMetab objects can also be subject to reactions, and conservation rules.
enum CModelEntity::Status |
CModelEntity::CModelEntity | ( | const std::string & | name = "NoName" , |
const CCopasiContainer * | pParent = NULL , |
||
const std::string & | type = "ModelEntity" , |
||
const unsigned C_INT32 & | flag = CCopasiObject::Container | CCopasiObject::ValueDbl |
||
) |
Default constructor
const | std::string & name (default: "NoName") |
const | CCopasiContainer * pParent (default: NULL) |
CModelEntity::CModelEntity | ( | const CModelEntity & | src, |
const CCopasiContainer * | pParent = NULL |
||
) |
Copy constructor
const | CModelValue & src |
const | CCopasiContainer * pParent (default: NULL) |
CModelEntity::~CModelEntity | ( | ) |
Destructor.
void CModelEntity::calculate | ( | void | ) | [virtual] |
Calculate the value or the rate depending whether we have an ASIGNMENT or ODE
Reimplemented in CMetab.
bool CModelEntity::compile | ( | ) | [virtual] |
Compile the model value. This is only needed for status ASIGNMENT and ODE.
Reimplemented in CMetab.
std::set< const CCopasiObject * > CModelEntity::getDeletedObjects | ( | ) | const [virtual] |
Retrieve the list of deleted numeric child objects;
Reimplemented in CMetab, and CCompartment.
std::string CModelEntity::getExpression | ( | ) | const |
Retrieve the expression for non FIXED model values.
const CExpression * CModelEntity::getExpressionPtr | ( | ) | const |
Retrieve the pointer to the expression for non FIXED model values.
CExpression * CModelEntity::getExpressionPtr | ( | ) |
Retrieve the pointer to the expression for non FIXED model values.
std::string CModelEntity::getInitialExpression | ( | ) | const |
Retrieve the expression for ODE or REACTION model values.
const CExpression * CModelEntity::getInitialExpressionPtr | ( | ) | const |
Retrieve the pointer to the expression for non FIXED model values.
CExpression * CModelEntity::getInitialExpressionPtr | ( | ) |
Retrieve the pointer to the expression for non FIXED model values.
const C_FLOAT64 & CModelEntity::getInitialValue | ( | ) | const |
Retrieve the initial value
CCopasiObject * CModelEntity::getInitialValueReference | ( | ) | const |
Retrieve object referencing the initial value
const std::string & CModelEntity::getKey | ( | ) | const [virtual] |
const C_FLOAT64 & CModelEntity::getRate | ( | ) | const |
Return rate of production of this entity
CCopasiObject * CModelEntity::getRateReference | ( | ) | const |
Retrieve object referencing the rate
const std::string & CModelEntity::getSBMLId | ( | ) | const |
Returns a reference to the SBML Id.
const CModelEntity::Status & CModelEntity::getStatus | ( | ) | const |
Retrieve the status of the entity.
const C_FLOAT64 & CModelEntity::getValue | ( | ) | const |
Retrieve the value
const CCopasiObject * CModelEntity::getValueObject | ( | ) | const [virtual] |
Retrieve the object representing the value;
Reimplemented from CCopasiContainer.
Reimplemented in CMetab.
void * CModelEntity::getValuePointer | ( | ) | const [virtual] |
CCopasiObject * CModelEntity::getValueReference | ( | ) | const |
Retrieve object referencing the value
bool CModelEntity::isFixed | ( | ) | const [inline] |
Check whether the entity is FIXED or not.
const bool & CModelEntity::isUsed | ( | ) | const |
Retrieve whether the model value is used during simulation
void CModelEntity::refreshInitialValue | ( | ) | [virtual] |
bool CModelEntity::setExpression | ( | const std::string & | expression | ) |
Set the expression for non FIXED model values
const | std::string & expression |
bool CModelEntity::setExpressionPtr | ( | CExpression * | pExpression | ) |
Set the expression for non FIXED model values
CExpression* |
bool CModelEntity::setInitialExpression | ( | const std::string & | expression | ) |
Set the expression for ODE or REACTION model values
const | std::string & expression |
bool CModelEntity::setInitialExpressionPtr | ( | CExpression * | pExpression | ) |
Set the expression for non FIXED model values
CExpression* |
void CModelEntity::setInitialValue | ( | const C_FLOAT64 & | initialValue | ) | [virtual] |
Set the initial value
const | C_FLOAT64 & initialValue |
void CModelEntity::setInitialValuePtr | ( | C_FLOAT64 * | pInitialValue | ) |
Set the pointer to the initial value
C_FLOAT64 | * pInitialValue |
bool CModelEntity::setObjectParent | ( | const CCopasiContainer * | pParent | ) | [virtual] |
Set the object parent
const | CCopasiContainer * pParent |
Reimplemented from CCopasiObject.
Reimplemented in CMetab.
void CModelEntity::setRate | ( | const C_FLOAT64 & | rate | ) |
Set the rate (dmValue/dt)
const C_FLOAT64 & | rate |
void CModelEntity::setSBMLId | ( | const std::string & | id | ) |
Sets the SBMLId.
void CModelEntity::setStatus | ( | const CModelEntity::Status & | status | ) | [virtual] |
void CModelEntity::setUsed | ( | const bool & | used | ) |
Set whether the model entity is used during simulation
const | bool & used |
void CModelEntity::setValue | ( | const C_FLOAT64 & | value | ) | [virtual] |
Set the value
const | C_FLOAT64 & value |
void CModelEntity::setValuePtr | ( | C_FLOAT64 * | pValue | ) |
Set the pointer to the value
C_FLOAT64 | * pValue |
std::string CModelEntity::mKey [protected] |
Key of the model entity. It is stored here, but constructed in the derived classes.
CExpression* CModelEntity::mpExpression [protected] |
The infix expression for objects of type ASSIGNMENT or ODE
CExpression* CModelEntity::mpInitialExpression [protected] |
Optional initial expression
C_FLOAT64* CModelEntity::mpIValue [protected] |
Pointer to the initial value of the model entity.
CCopasiObjectReference<C_FLOAT64>* CModelEntity::mpIValueReference [protected] |
CModel* CModelEntity::mpModel [protected] |
CCopasiObjectReference<C_FLOAT64>* CModelEntity::mpRateReference [protected] |
C_FLOAT64* CModelEntity::mpValue [protected] |
Pointer to the value of the model entity.
CCopasiObjectReference<C_FLOAT64>* CModelEntity::mpValueReference [protected] |
C_FLOAT64 CModelEntity::mRate [protected] |
Rate of change/time.
std::string CModelEntity::mSBMLId [protected] |
The id of the corresponding parameter in an SBML file. This value is either set upon importing an SBML file, or when the object is first exported to an SBML file.
const std::string CModelEntity::StatusName [static] |
{ "fixed", "assignment", "reactions", "ode", "time", "" }
String representation of the states
const char * CModelEntity::XMLStatus [static] |
{ "fixed", "assignment", "reactions", "ode", "time", NULL }
XML representation of the states