Пример #1
0
CModel * CModelParameter::getModel() const
{
    CModelParameterSet * pSet = getSet();

    if (pSet != NULL)
    {
        return pSet->getModel();
    }

    return NULL;
}
Пример #2
0
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();
}