COPASI API  4.40.278
CModelParameterReactionParameter Class Reference

#include <CModelParameter.h>

Inheritance diagram for CModelParameterReactionParameter:
[legend]

Public Member Functions

 CModelParameterReactionParameter (CModelParameterGroup *pParent, const CModelParameter::Type &type=CModelParameter::Type::ReactionParameter)
 
 CModelParameterReactionParameter (const CModelParameterReactionParameter &src, CModelParameterGroup *pParent)
 
virtual void compile ()
 
const CRegisteredCommonNamegetGlobalQuantityCN () const
 
const CReactiongetReaction () const
 
void setGlobalQuantityCN (const std::string &globalQuantityCN)
 
virtual ~CModelParameterReactionParameter ()
 
- 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 createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const
 
virtual void destruct ()
 
virtual const CompareResultdiff (const CModelParameter &other, const CCore::Framework &framework=CCore::Framework::ParticleNumbers, const bool &createMissing=false)
 
virtual const CModelParametergetChild (const size_t &index) const
 
const CCommonNamegetCN () const
 
const CompareResultgetCompareResult () const
 
virtual size_t getIndex () const
 
std::string getInitialExpression () const
 
const CExpressiongetInitialExpressionPtr () const
 
CModelgetModel () const
 
virtual std::string getName () const
 
virtual size_t getNumChildren () const
 
CDataObjectgetObject () const
 
CModelParameterGroupgetParent () const
 
CModelParameterSetgetSet () const
 
const CModelEntity::StatusgetSimulationType () const
 
const TypegetType () const
 
CValidatedUnit getUnit (const CCore::Framework &framework) const
 
virtual const double & getValue (const CCore::Framework &framework) const
 
bool isInitialExpressionValid () const
 
bool isReadOnly () const
 
bool operator< (const CModelParameter &rhs) const
 
virtual bool refreshFromModel (const bool &modifyExistence)
 
virtual void setCN (const CCommonName &cn)
 
void setCompareResult (const CompareResult &compareResult)
 
void setInitialExpression (const std::string &initialExpression)
 
void setParent (CModelParameterGroup *pParent)
 
bool setSimulationType (const CModelEntity::Status &simulationType)
 
virtual void setValue (const C_FLOAT64 &value, const CCore::Framework &framework, bool updateModelIfActive=true)
 
virtual CData toData () const
 
virtual CModelParameterSettoSet ()
 
virtual const CModelParameterSettoSet () const
 
virtual bool updateModel ()
 
virtual ~CModelParameter ()
 
- Public Member Functions inherited from CUndoObjectInterface
 CUndoObjectInterface ()
 
 CUndoObjectInterface (const CUndoObjectInterface &src)
 
bool generateUuid ()
 
const xg::Guid & getUuid () const
 
virtual CUndoObjectInterfaceinsert (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 ()
 

Static Public Member Functions

static CCommonName getReactionCN (const CCommonName &reactionParameterCN)
 
- Static Public Member Functions inherited from CModelParameter
static CModelParameterfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CUndoObjectInterface
template<class CType >
static CType * fromData (const CData &, CUndoObjectInterface *)
 

Private Attributes

CRegisteredCommonName mGlobalQuantityCN
 
CModelParametermpGlobalQuantity
 
CReactionmpReaction
 

Additional Inherited Members

- Public Types inherited from CModelParameter
enum class  CompareResult {
  Obsolete , Missing , Modified , Conflict ,
  Identical , __SIZE
}
 
enum class  Type {
  Model , Compartment , Species , ModelValue ,
  ReactionParameter , Reaction , Group , Set ,
  unknown , __SIZE
}
 
- Static Public Attributes inherited from CModelParameter
static const CEnumAnnotation< std::string, CompareResultCompareResultNames
 
static const CEnumAnnotation< std::string, TypeTypeNames
 
- Protected Attributes inherited from CModelParameter
CRegisteredCommonName mCN
 
CompareResult mCompareResult
 
bool mIsInitialExpressionValid
 
CExpressionmpInitialExpression
 
CDataObjectmpObject
 
CModelParameterGroupmpParent
 
CModelEntity::Status mSimulationType
 
Type mType
 
double mValue
 

Constructor & Destructor Documentation

◆ CModelParameterReactionParameter() [1/2]

CModelParameterReactionParameter::CModelParameterReactionParameter ( CModelParameterGroup pParent,
const CModelParameter::Type type = CModelParameter::Type::ReactionParameter 
)

Constructor

◆ CModelParameterReactionParameter() [2/2]

CModelParameterReactionParameter::CModelParameterReactionParameter ( const CModelParameterReactionParameter src,
CModelParameterGroup pParent 
)

Copy constructor

◆ ~CModelParameterReactionParameter()

CModelParameterReactionParameter::~CModelParameterReactionParameter ( )
virtual

Destructor

Member Function Documentation

◆ compile()

◆ getGlobalQuantityCN()

const CRegisteredCommonName & CModelParameterReactionParameter::getGlobalQuantityCN ( ) const

Retrieve the CN of the assigned global quantity

Returns
const CRegisteredCommonName & globalQuantityCN

References mGlobalQuantityCN.

Referenced by CModelParameterGroup::getObjectUnit().

◆ getReaction()

const CReaction * CModelParameterReactionParameter::getReaction ( ) const

Retrieve a pointer to the reaction the parameter belongs to.

Returns
const CReaction * reaction

References mpReaction.

◆ getReactionCN()

CCommonName CModelParameterReactionParameter::getReactionCN ( const CCommonName reactionParameterCN)
static

Retrieve the CN of the reaction the parameter belongs to

Parameters
constCCommonName & reactionParameterCN
Returns
CCommonName reationCN

Referenced by CModelParameterSet::insert().

◆ setGlobalQuantityCN()

void CModelParameterReactionParameter::setGlobalQuantityCN ( const std::string &  globalQuantityCN)

Set the CN of the assigned global quantity. If the CN is empty the assignment is removed.

Parameters
conststd::string & globalQuantityCN

References compile(), CModelParameterGroup::compile(), CModelParameter::mpParent, and CModelParameter::setInitialExpression().

Member Data Documentation

◆ mGlobalQuantityCN

CRegisteredCommonName CModelParameterReactionParameter::mGlobalQuantityCN
private

The CN of the assigned global quantity.

Referenced by compile(), and getGlobalQuantityCN().

◆ mpGlobalQuantity

CModelParameter* CModelParameterReactionParameter::mpGlobalQuantity
private

A pointer to the parameter representing the assigned global quantity.

Referenced by compile().

◆ mpReaction

CReaction* CModelParameterReactionParameter::mpReaction
private

A pointer to the reaction the parameter belongs to.

Referenced by compile(), and getReaction().


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