COPASI API
4.40.278
|
#include <CModelParameter.h>
Public Member Functions | |
CModelParameterSpecies (CModelParameterGroup *pParent, const CModelParameter::Type &type=CModelParameter::Type::Species) | |
CModelParameterSpecies (const CModelParameterSpecies &src, CModelParameterGroup *pParent) | |
virtual void | compile () |
virtual void | createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const |
virtual std::string | getName () const |
virtual const C_FLOAT64 & | getValue (const CCore::Framework &framework) const |
virtual void | setCN (const CCommonName &cn) |
virtual void | setValue (const C_FLOAT64 &value, const CCore::Framework &framework, bool updateModelIfActive=true) |
virtual CData | toData () const |
virtual bool | updateModel () |
virtual | ~CModelParameterSpecies () |
Public Member Functions inherited from CModelParameter | |
virtual bool | applyData (const CData &data, CUndoData::CChangeSet &changes) |
CModelParameter (CModelParameterGroup *pParent, const CModelParameter::Type &type) | |
CModelParameter (const CModelParameter &src, CModelParameterGroup *pParent) | |
virtual void | destruct () |
virtual const CompareResult & | diff (const CModelParameter &other, const CCore::Framework &framework=CCore::Framework::ParticleNumbers, const bool &createMissing=false) |
virtual const CModelParameter * | getChild (const size_t &index) const |
const CCommonName & | getCN () const |
const CompareResult & | getCompareResult () const |
virtual size_t | getIndex () const |
std::string | getInitialExpression () const |
const CExpression * | getInitialExpressionPtr () const |
CModel * | getModel () const |
virtual size_t | getNumChildren () const |
CDataObject * | getObject () const |
CModelParameterGroup * | getParent () const |
CModelParameterSet * | getSet () const |
const CModelEntity::Status & | getSimulationType () const |
const Type & | getType () const |
CValidatedUnit | getUnit (const CCore::Framework &framework) const |
bool | isInitialExpressionValid () const |
bool | isReadOnly () const |
bool | operator< (const CModelParameter &rhs) const |
virtual bool | refreshFromModel (const bool &modifyExistence) |
void | setCompareResult (const CompareResult &compareResult) |
void | setInitialExpression (const std::string &initialExpression) |
void | setParent (CModelParameterGroup *pParent) |
bool | setSimulationType (const CModelEntity::Status &simulationType) |
virtual CModelParameterSet * | toSet () |
virtual const CModelParameterSet * | toSet () const |
virtual | ~CModelParameter () |
Public Member Functions inherited from CUndoObjectInterface | |
CUndoObjectInterface () | |
CUndoObjectInterface (const CUndoObjectInterface &src) | |
bool | generateUuid () |
const xg::Guid & | getUuid () const |
virtual CUndoObjectInterface * | insert (const CData &data) |
bool | setUuid (const std::string &uuid) |
bool | setUuid (const xg::Guid &uuid) |
virtual void | updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject) |
virtual | ~CUndoObjectInterface () |
Private Member Functions | |
friend | CModelParameterCompartment::~CModelParameterCompartment () |
CCommonName | getCompartmentCN () const |
Private Attributes | |
CRegisteredCommonName | mCompartmentCN |
C_FLOAT64 | mConcentration |
CModelParameterCompartment * | mpCompartment |
|
private |
CModelParameterSpecies::CModelParameterSpecies | ( | CModelParameterGroup * | pParent, |
const CModelParameter::Type & | type = CModelParameter::Type::Species |
||
) |
Constructor
CModelParameterSpecies::CModelParameterSpecies | ( | const CModelParameterSpecies & | src, |
CModelParameterGroup * | pParent | ||
) |
Copy constructor
|
virtual |
Destructor
References mpCompartment, and CModelParameterCompartment::removeSpecies().
|
virtual |
Compile the parameter
Reimplemented from CModelParameter.
References CModelParameterCompartment::addSpecies(), CModelParameter::compile(), CModelParameterGroup::getModelParameter(), CModelParameter::getSet(), mCompartmentCN, mpCompartment, CModelParameter::mValue, CCore::ParticleNumbers, setValue(), and CModelParameterSet::toGroup().
|
virtual |
Create the undo data which represents the changes recording the differences between the provided oldData and the current data.
CUndoData | & undoData |
const | CUndoData::Type & type |
const | CData & oldData (default: empty data) |
const | CCore::Framework & framework (default: CCore::Framework::ParticleNumbers) |
Reimplemented from CModelParameter.
References CUndoData::addProperty(), CData::addProperty(), CUndoData::CHANGE, CCore::Concentration, CModelParameter::createUndoData(), CData::FRAMEWORK, CCore::FrameworkNames, CData::getProperty(), CData::INITIAL_INTENSIVE_VALUE, CData::INITIAL_VALUE, mConcentration, CModelParameter::mValue, CData::PARAMETER_VALUE, and CDataValue::toData().
|
private |
Retrieve the CN of the compartment the species is contained in.
References mCompartmentCN.
|
virtual |
Retrieve the name.
Reimplemented from CModelParameter.
References CMetabNameInterface::getDisplayName(), CModelParameterSet::getModel(), CModelParameter::getSet(), CModelParameter::mCN, mCompartmentCN, CModelParameter::mpObject, and CCommonName::nameFromCN().
|
virtual |
Retrieve the value of the parameter based on the current framework
const | Framework & framework |
Reimplemented from CModelParameter.
References CCore::Concentration, mConcentration, and CModelParameter::mValue.
|
virtual |
Set the CN of the object represented by the parameter
const | CCommonName & cn |
Reimplemented from CModelParameter.
References CModelParameter::mCN, mCompartmentCN, and CModelParameter::setCN().
|
virtual |
Set the value of the parameter based on the current framework
const | double & value |
const | Framework & framework |
updateModelIfActive | if this is the active parameter set, write the changes back to the model |
Reimplemented from CModelParameter.
References CModelParameterCompartment::addSpecies(), CCore::Concentration, CModelParameter::getModel(), CModelParameterGroup::getModelParameter(), CModel::getNumber2QuantityFactor(), CModel::getQuantity2NumberFactor(), CModelParameter::getSet(), CModelParameter::getValue(), CModelParameterSet::isActive(), mCompartmentCN, mConcentration, mpCompartment, CModelParameter::mValue, CCore::ParticleNumbers, CModelParameterSet::toGroup(), and updateModel().
Referenced by compile().
|
virtual |
Retrieve the data describing the object
Reimplemented from CModelParameter.
References CData::addProperty(), CData::getProperty(), CData::INITIAL_INTENSIVE_VALUE, mConcentration, CData::PARAMETER_VALUE, CModelParameter::toData(), and CDataValue::toData().
|
virtual |
Update the corresponding model object with the current parameter settings
Reimplemented from CModelParameter.
References CModelEntity::ASSIGNMENT, CModelEntity::getStatus(), mConcentration, CModelParameter::mpObject, CMetab::setInitialConcentration(), and CModelParameter::updateModel().
Referenced by setValue().
|
private |
The CN of the compartment the species is contained in.
Referenced by compile(), getCompartmentCN(), getName(), setCN(), and setValue().
|
private |
The concentration value of the species.
Referenced by createUndoData(), getValue(), setValue(), toData(), and updateModel().
|
private |
A pointer to the parameter representing the compartment the species is contained in.
Referenced by compile(), setValue(), and ~CModelParameterSpecies().