CModel * CModelParameter::getModel() const { CModelParameterSet * pSet = getSet(); if (pSet != NULL) { return pSet->getModel(); } return NULL; }
CModelParameterSet::CModelParameterSet(const CModelParameterSet & src, const CCopasiContainer * pParent, const bool & createMissing): CCopasiContainer(src, pParent), CModelParameterGroup(src, NULL, createMissing), CAnnotation(src), mKey(CCopasiRootContainer::getKeyFactory()->add("ModelParameterSet", this)), mpModel(NULL) { setObjectParent(pParent); if (mpModel == NULL) { mpModel = src.getModel(); } compile(); }