COPASI API
4.40.278
|
#include <CCopasiParameterGroup.h>
Public Member Functions | |
bool | addGroup (const std::string &name) |
void | addParameter (CCopasiParameter *pParameter) |
bool | addParameter (const CCopasiParameter ¶meter) |
bool | addParameter (const std::string &name, const CCopasiParameter::Type type, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All) |
template<class CType > | |
bool | addParameter (const std::string &name, const CCopasiParameter::Type type, const CType &value, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All) |
virtual bool | applyData (const CData &data, CUndoData::CChangeSet &changes) |
CCopasiParameterGroup * | assertGroup (const std::string &name, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All) |
template<class CType > | |
CType * | assertParameter (const std::string &name, const CCopasiParameter::Type type, const CType &defaultValue, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All) |
index_iterator | beginIndex () const |
const_name_iterator | beginName () const |
CCopasiParameterGroup (const CCopasiParameterGroup &src, const CDataContainer *pParent=NULL) | |
CCopasiParameterGroup (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &objectType="ParameterGroup") | |
void | clear () |
virtual void | createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const |
virtual bool | elevateChildren () |
index_iterator | endIndex () const |
const_name_iterator | endName () const |
CCopasiParameterGroup & | getElementTemplates () |
const CCopasiParameterGroup & | getElementTemplates () const |
CCopasiParameterGroup * | getGroup (const size_t &index) |
const CCopasiParameterGroup * | getGroup (const size_t &index) const |
CCopasiParameterGroup * | getGroup (const std::string &name) |
const CCopasiParameterGroup * | getGroup (const std::string &name) const |
virtual size_t | getIndex (const CDataObject *pObject) const |
size_t | getIndex (const std::string &name) const |
std::string | getKey (const size_t &index) const |
std::string | getKey (const std::string &name) const |
virtual const std::string & | getName (const size_t &index) const |
virtual const CObjectInterface * | getObject (const CCommonName &cn) const |
CCopasiParameter * | getParameter (const size_t &index) |
const CCopasiParameter * | getParameter (const size_t &index) const |
CCopasiParameter * | getParameter (std::string name) |
const CCopasiParameter * | getParameter (std::string name) const |
CCopasiParameter::Type | getType (const size_t &index) const |
CCopasiParameter::Type | getType (const std::string &name) const |
std::string | getUniqueParameterName (const CCopasiParameter *pParameter) const |
template<class CType > | |
CType & | getValue (const size_t &index) |
template<class CType > | |
const CType & | getValue (const size_t &index) const |
template<class CType > | |
CType & | getValue (const std::string &name) |
template<class CType > | |
const CType & | getValue (const std::string &name) const |
bool | haveTemplate () const |
virtual CUndoObjectInterface * | insert (const CData &data) |
CCopasiParameterGroup & | operator= (const CCopasiParameterGroup &rhs) |
virtual void | print (std::ostream *ostream) const |
virtual bool | remove (CDataObject *pObject) |
bool | removeParameter (CCopasiParameter *pParameter) |
bool | removeParameter (const size_t &index) |
bool | removeParameter (const std::string &name) |
virtual void | setUserInterfaceFlag (const UserInterfaceFlag &flag) |
template<class CType > | |
bool | setValue (const size_t &index, const CType &value) |
template<class CType > | |
bool | setValue (const std::string &name, const CType &value) |
size_t | size (const UserInterfaceFlag &require=UserInterfaceFlag::None, const UserInterfaceFlag &exclude=UserInterfaceFlag::None) const |
bool | swap (const size_t &iFrom, const size_t &iTo) |
bool | swap (index_iterator &from, index_iterator &to) |
virtual CData | toData () const |
virtual void | updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject) |
virtual | ~CCopasiParameterGroup () |
Public Member Functions inherited from CCopasiParameter | |
CCopasiParameter (const CCopasiParameter &src, const CDataContainer *pParent) | |
CCopasiParameter (const std::string &name, const Type &type, const void *pValue=NULL, const CDataContainer *pParent=NO_PARENT, const std::string &objectType="Parameter") | |
virtual CCommonName | getCN () const override |
template<class CType > | |
const CType & | getDefault () const |
virtual const std::string & | getKey () const override |
virtual std::string | getObjectDisplayName () const override |
const CCopasiParameter::Type & | getType () const |
const UserInterfaceFlag & | getUserInterfaceFlag () const |
template<class CType > | |
std::vector< std::pair< CType, CType > > & | getValidValues () |
template<class CType > | |
const std::vector< std::pair< CType, CType > > & | getValidValues () const |
void * | getValidValuesPointer () const |
template<class CType > | |
CType & | getValue () |
template<class CType > | |
const CType & | getValue () const |
virtual void * | getValuePointer () const override |
CDataObject * | getValueReference () const |
bool | hasValidValues () const |
bool | isBasic () const |
bool | isDefault () const |
bool | isEditable () const |
bool | isUnsupported () const |
bool | isValidValue (const bool &value) const |
bool | isValidValue (const C_FLOAT64 &value) const |
bool | isValidValue (const C_INT32 &value) const |
bool | isValidValue (const CCommonName &value) const |
template<class CType > | |
bool | isValidValue (const CType &) const |
bool | isValidValue (const std::string &value) const |
bool | isValidValue (const std::vector< CCopasiParameter * > &value) const |
bool | isValidValue (const unsigned C_INT32 &value) const |
CCopasiParameter & | operator= (const CCopasiParameter &rhs) |
template<class CType > | |
bool | setDefault (const CType &defaultValue) |
bool | setDefault (const std::vector< CCopasiParameter * > &defaultValue) |
virtual bool | setObjectParent (const CDataContainer *pParent) override |
template<class CType , class Enum > | |
bool | setValidValues (const CEnumAnnotation< CType, Enum > &validValues) |
template<class CType > | |
bool | setValidValues (const std::vector< std::pair< CType, CType > > &validValues) |
template<class CType > | |
bool | setValue (const CType &value) |
bool | setValue (const std::vector< CCopasiParameter * > &value) |
virtual | ~CCopasiParameter () |
Public Member Functions inherited from CDataContainer | |
virtual bool | add (CDataObject *pObject, const bool &adopt=true) |
virtual bool | appendDeletedDependentData (CUndoData &undoData) const |
CDataContainer (const CDataContainer &src, const CDataContainer *pParent) | |
CDataContainer (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None) | |
virtual std::string | getChildObjectUnits (const CDataObject *pObject) const |
void | getDescendants (CDataObject::DataObjectSet &descendants, const bool &recursive=false) const |
virtual objectMap & | getObjects () |
virtual const objectMap & | getObjects () const |
virtual const std::string | getUnits () const override |
virtual const CDataObject * | getValueObject () const override |
void | objectRenamed (CDataObject *pObject, const std::string &oldName) |
virtual | ~CDataContainer () |
Public Member Functions inherited from CDataObject | |
void | addIssue (const CIssue &issue) |
void | addReference (const CDataContainer *pReference) |
virtual void | calculateValue () override |
CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL) | |
virtual void | destruct () override |
virtual const CDataObject * | getDataObject () const override |
CDataContainer * | getObjectAncestor (const std::string &type) const |
CDataModel * | getObjectDataModel () const |
const CObjectInterface * | getObjectFromCN (const CCommonName &cn) const |
const std::string & | getObjectName () const |
CDataContainer * | getObjectParent () const |
const std::string & | getObjectType () const |
virtual const CObjectInterface::ObjectSet & | getPrerequisites () const override |
virtual const CValidity & | getValidity () const override |
bool | hasFlag (const Flag &flag) const |
virtual bool | isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const override |
bool | prerequisitsContains (const DataObjectSet &objects) const |
void | removeIssue (const CIssue &issue) |
void | removeReference (const CDataContainer *pReference) |
bool | setObjectName (const std::string &name) |
void | validityChanged (const CValidity &changedValidity) override |
void | validityRemoved (const CValidity &changedValidity) |
virtual | ~CDataObject () |
Public Member Functions inherited from CObjectInterface | |
CObjectInterface () | |
CObjectInterface (const CObjectInterface &src) | |
virtual | ~CObjectInterface () |
Public Member Functions inherited from CUndoObjectInterface | |
CUndoObjectInterface () | |
CUndoObjectInterface (const CUndoObjectInterface &src) | |
bool | generateUuid () |
const xg::Guid & | getUuid () const |
bool | setUuid (const std::string &uuid) |
bool | setUuid (const xg::Guid &uuid) |
virtual | ~CUndoObjectInterface () |
Protected Member Functions | |
CCopasiParameterGroup () | |
Protected Member Functions inherited from CCopasiParameter | |
CCopasiParameter (const CCopasiParameter &src) | |
Protected Member Functions inherited from CDataContainer | |
template<class CType > | |
CDataMatrixReference< CType > * | addMatrixReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None) |
template<class CType > | |
CDataObjectReference< CType > * | addObjectReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None) |
template<class CType > | |
CDataVectorReference< CType > * | addVectorReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None) |
CDataContainer (const CDataContainer &src) | |
void | initObjects () |
Protected Member Functions inherited from CDataObject | |
CDataObject () | |
CDataObject (const std::string &name, const CDataContainer *pParent=static_cast< CDataContainer * >((void *) 0), const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None) | |
Private Attributes | |
CCopasiParameterGroup * | mpElementTemplates {NULL } |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CCopasiParameterGroup &o) |
bool | operator== (const CCopasiParameterGroup &lhs, const CCopasiParameterGroup &rhs) |
Additional Inherited Members | |
Static Public Member Functions inherited from CCopasiParameter | |
static void | allocateValidValues (const Type &type, void *&pValidValues) |
static void | allocateValue (const Type &type, void *&pValue) |
static void | assignValue (const Type &type, void *&pValue, const void *pNewValue) |
static void | deleteValidValues (const Type &type, void *&pValidValues) |
static void | deleteValue (const Type &type, void *&pValue) |
static CCopasiParameter * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CDataContainer | |
static CDataContainer * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CDataObject | |
static CDataObject * | fromData (const CData &data, CUndoObjectInterface *pParent) |
static void | sanitizeObjectName (std::string &name) |
Static Public Member Functions inherited from CObjectInterface | |
static const CDataObject * | DataObject (const CObjectInterface *pInterface) |
static CObjectInterface * | GetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName) |
Static Public Member Functions inherited from CUndoObjectInterface | |
template<class CType > | |
static CType * | fromData (const CData &, CUndoObjectInterface *) |
Static Public Attributes inherited from CCopasiParameter | |
static const CEnumAnnotation< std::string, Type > | TypeName |
static const CEnumAnnotation< std::string, Type > | XMLType |
Static Public Attributes inherited from CDataContainer | |
static const CObjectInterface::ContainerList | EmptyList |
Protected Attributes inherited from CCopasiParameter | |
std::string | mKey |
void * | mpDefault |
void * | mpValidValues |
void * | mpValue |
CDataObject * | mpValueReference |
UserInterfaceFlag | mUserInterfaceFlag |
Protected Attributes inherited from CDataContainer | |
objectMap | mObjects |
Protected Attributes inherited from CDataObject | |
ObjectSet | mPrerequisits |
std::set< CDataContainer * > | mReferences |
Protected Attributes inherited from CObjectInterface | |
CValidity | mValidity |
CCopasiParameterGroup class. This class is used to describe parameters. This class is intended to be used with integration or optimization methods or reactions.
Created for COPASI by Stefan Hoops 2002
typedef CDataObjectMap::const_type_iterator< CCopasiParameter > CCopasiParameterGroup::const_name_iterator |
typedef std::vector< CCopasiParameter * > CCopasiParameterGroup::elements |
typedef elements::iterator CCopasiParameterGroup::index_iterator |
|
protected |
Default constructor
CCopasiParameterGroup class. This class is used to describe parameters. This class is intended to be used with integration or optimization methods or reactions.
Created for COPASI by Stefan Hoops 2002
Referenced by addGroup(), addParameter(), CScanProblem::createScanItem(), getElementTemplates(), operator=(), and CMIRIAMResources::updateMIRIAMResourcesFromFile().
CCopasiParameterGroup::CCopasiParameterGroup | ( | const CCopasiParameterGroup & | src, |
const CDataContainer * | pParent = NULL |
||
) |
Copy constructor
const CCopasiParameterGroup & | src |
const | CDataContainer * pParent (default: NULL) |
References operator=().
CCopasiParameterGroup::CCopasiParameterGroup | ( | const std::string & | name, |
const CDataContainer * | pParent = NO_PARENT , |
||
const std::string & | objectType = "ParameterGroup" |
||
) |
Specific constructor
const | string & name |
const | CDataContainer * pParent (default: NULL) |
const | std::string & objectType (default: "ParameterGroup") |
|
virtual |
Destructor
References mpElementTemplates, and pdelete.
bool CCopasiParameterGroup::addGroup | ( | const std::string & | name | ) |
Add a subgroup to the group
const | std::string & name |
References addParameter(), and CCopasiParameterGroup().
Referenced by CSensProblem::addVariables(), assertGroup(), and CScanProblem::initializeParameter().
void CCopasiParameterGroup::addParameter | ( | CCopasiParameter * | pParameter | ) |
Add a parameter
CCopasiParameter | * pParameter |
References CDataContainer::add(), CCopasiParameter::getUserInterfaceFlag(), CCopasiParameter::mpValue, CCopasiParameter::mUserInterfaceFlag, and CCopasiParameter::setUserInterfaceFlag().
bool CCopasiParameterGroup::addParameter | ( | const CCopasiParameter & | parameter | ) |
Add a parameter
const | CCopasiParameter & parameter |
References CCopasiParameter::CCopasiParameter(), CCopasiParameterGroup(), CCopasiParameter::getType(), CCopasiParameter::GROUP, and NO_PARENT.
Referenced by CFitItem::addCrossValidation(), CMIRIAMResource::addDeprecatedURL(), CExperimentSet::addExperiment(), CFitItem::addExperiment(), CRecentFiles::addFile(), CFitProblem::addFitConstraint(), CFitProblem::addFitItem(), addGroup(), CMIRIAMResources::addMIRIAMResource(), COptProblem::addOptConstraint(), COptProblem::addOptItem(), addParameter(), CTimeSensProblem::addParameterCN(), CScanProblem::addScanItem(), CTimeSensProblem::addTargetCN(), assertParameter(), SBMLImporter::createCReactionFromReaction(), CScanProblem::createScanItem(), CReactionInterface::createUndoData(), CHybridMethodODE45::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CReaction::initializeParameters(), PlotItemHandler::processEnd(), PlotSpecificationHandler::processEnd(), ConstantHandler::processStart(), and CMIRIAMResources::updateMIRIAMResourcesFromFile().
bool CCopasiParameterGroup::addParameter | ( | const std::string & | name, |
const CCopasiParameter::Type | type, | ||
const CCopasiParameter::UserInterfaceFlag & | flag = CCopasiParameter::UserInterfaceFlag::All |
||
) |
Add a parameter to the group
const | std::string & name |
const | CCopasiParameter::Type type |
const | CCopasiParameter::UserInterfaceFlag & flag (default: CCopasiParameter::UserInterfaceFlag::All)) |
References addParameter(), CCopasiParameter::CCopasiParameter(), CCopasiParameterGroup(), CCopasiParameter::GROUP, and CCopasiParameter::setUserInterfaceFlag().
|
inline |
Add a parameter to the group
const | std::string & name |
const | CCopasiParameter::Type type |
const | CType & value |
const | CCopasiParameter::UserInterfaceFlag & flag (default: CCopasiParameter::UserInterfaceFlag::All) |
References addParameter(), CCopasiParameter::basic, CCopasiParameter::CCopasiParameter(), CCopasiParameterGroup(), CCopasiParameter::GROUP, CCopasiParameter::isValidValue(), CCopasiParameter::mpValue, NO_PARENT, CCopasiParameter::setDefault(), CCopasiParameter::setUserInterfaceFlag(), and CCopasiParameter::setValue().
|
virtual |
Apply the provided data to the object
const | CData & data |
Reimplemented from CCopasiParameter.
Reimplemented in CPlotSpecification, and CPlotItem.
References CDataObject::applyData(), CCopasiParameter::applyData(), CObjectInterface::DataObject(), getObject(), getParameter(), CData::getProperty(), insert(), CData::isSetProperty(), CData::OBJECT_INDEX, CData::OBJECT_NAME, CData::OBJECT_TYPE, CData::PARAMETER_VALUE, size(), and CDataValue::toDataVector().
Referenced by CCopasiTask::applyData().
CCopasiParameterGroup * CCopasiParameterGroup::assertGroup | ( | const std::string & | name, |
const CCopasiParameter::UserInterfaceFlag & | flag = CCopasiParameter::UserInterfaceFlag::All |
||
) |
Assert that a group with the given name is present. If not the group is created as empty group.
const | std::string & name |
const | CCopasiParameter::UserInterfaceFlag & flag (default: CCopasiParameter::UserInterfaceFlag::All) |
References addGroup(), getGroup(), CCopasiParameter::getUserInterfaceFlag(), removeParameter(), setUserInterfaceFlag(), and CCopasiParameter::unsupported.
Referenced by CConfigurationFile::CXML::CXML(), CExperimentObjectMap::elevateChildren(), CRecentFiles::initializeParameter(), CConfigurationFile::initializeParameter(), CMIRIAMResource::initializeParameter(), CMIRIAMResources::initializeParameter(), COptProblem::initializeParameter(), CExperiment::initializeParameter(), CFitItem::initializeParameter(), CFitProblem::initializeParameter(), CSensProblem::initializeParameter(), CTimeSensProblem::initializeParameter(), CHybridMethodODE45::initializeParameter(), and CExperimentObjectMap::setNumCols().
|
inline |
Assert that a parameter with the given name and type is present. If not the parameter is created with the default value.
const | std::string & name |
const | CCopasiParameter::Type type |
const | CType & Value |
const | CCopasiParameter::UserInterfaceFlag & flag (default: CCopasiParameter::UserInterfaceFlag::All) |
References addParameter(), getParameter(), CCopasiParameter::getType(), CCopasiParameter::getUserInterfaceFlag(), CCopasiParameter::getValue(), removeParameter(), CCopasiParameter::setUserInterfaceFlag(), and CCopasiParameter::unsupported.
Referenced by SEDMLImporter::applyStyleToCopasiItem(), CLNAProblem::CLNAProblem(), CMCAProblem::CMCAProblem(), COptMethod::COptMethod(), COptMethodCoranaWalk::COptMethodCoranaWalk(), COptMethodDE::COptMethodDE(), COptMethodEP::COptMethodEP(), COptMethodGA::COptMethodGA(), COptMethodGASR::COptMethodGASR(), COptMethodHookeJeeves::COptMethodHookeJeeves(), COptMethodLevenbergMarquardt::COptMethodLevenbergMarquardt(), COptMethodNelderMead::COptMethodNelderMead(), COptMethodNL2SOL::COptMethodNL2SOL(), COptMethodPraxis::COptMethodPraxis(), COptMethodPS::COptMethodPS(), COptMethodSA::COptMethodSA(), COptMethodSRES::COptMethodSRES(), COptMethodSS::COptMethodSS(), COptMethodSteepestDescent::COptMethodSteepestDescent(), CRandomSearch::CRandomSearch(), COutputAssistant::createDefaultOutput(), CSensProblem::createParametersInGroup(), COutputAssistant::createPlot(), CSensMethod::CSensMethod(), CSteadyStateProblem::CSteadyStateProblem(), CExperimentObjectMap::elevateChildren(), CFitProblem::elevateChildren(), CScanItem::ensureParameterGroupHasAllElements(), CScanItemLinear::ensureParameterGroupHasAllElements(), CScanItemRandom::ensureParameterGroupHasAllElements(), CAnalyticsProblem::initializeParameter(), CCheckForUpdates::initializeParameter(), CRecentFiles::initializeParameter(), CConfigurationFile::initializeParameter(), CCrossSectionProblem::initializeParameter(), CLyapProblem::initializeParameter(), CLyapWolfMethod::initializeParameter(), CMIRIAMResource::initializeParameter(), CMIRIAMResources::initializeParameter(), COptItem::initializeParameter(), COptProblem::initializeParameter(), CExperiment::initializeParameter(), CExperimentObjectMap::CDataColumn::initializeParameter(), CCrossValidationSet::initializeParameter(), CFitProblem::initializeParameter(), CScanProblem::initializeParameter(), CSensProblem::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CTimeSensLsodaMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridMethodODE45::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CLsodaMethod::initializeParameter(), CLsodaMethod2::initializeParameter(), CRadau5Method::initializeParameter(), CStochasticRungeKuttaRI5::initializeParameter(), CStochDirectMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CTrajAdaptiveSA::initializeParameter(), CTrajectoryMethodDsaLsodar::initializeParameter(), CTrajectoryProblem::initializeParameter(), CCSPMethod::initializeParameter(), CILDMMethod::initializeParameter(), CILDMModifiedMethod::initializeParameter(), CTSSAProblem::initializeParameter(), CExperimentObjectMap::CDataColumn::setObjectCN(), CExperimentObjectMap::CDataColumn::setScale(), and CPlotItem::setType().
CCopasiParameterGroup::index_iterator CCopasiParameterGroup::beginIndex | ( | ) | const |
Retrieve the begin of unsorted iterator Note: the swap function may be used to change the order
References CCopasiParameter::mpValue.
Referenced by CRecentFiles::addFile(), CMIRIAMResources::createDisplayNameMap(), CMIRIAMResources::createURIMap(), elevate(), CMIRIAMResources::elevateChildren(), CExperimentObjectMap::elevateChildren(), CExperimentSet::elevateChildren(), CMIRIAMResource::extractId(), CExperimentObjectMap::fixBuild55(), CScanProblem::fixBuild81(), CExperimentObjectMap::getLastNotIgnoredColumn(), getObject(), CConfigurationFile::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CReaction::initializeParameters(), CHybridMethodODE45::partitionSystem(), setUserInterfaceFlag(), size(), CExperimentSet::sort(), CHybridNextReactionLSODAMethod::start(), and swap().
CCopasiParameterGroup::const_name_iterator CCopasiParameterGroup::beginName | ( | ) | const |
Retrieve the start iterator going through the parameters sorted by name
References CDataObjectMap::begin(), and CDataContainer::mObjects.
Referenced by CReaction::createUndoData(), and CReaction::toData().
void CCopasiParameterGroup::clear | ( | ) |
Clear all parameters and subgroups
References CCopasiParameter::mpValue, and pdelete.
Referenced by CTimeSensProblem::clearParameterCNs(), CScanProblem::clearScanItems(), CTimeSensProblem::clearTargetCNs(), CExperiment::elevateChildren(), CExperimentObjectMap::elevateChildren(), CSSAMethod::initialize(), COptProblem::initialize(), CConfigurationFile::CXML::load(), CExperiment::operator=(), CSensProblem::removeVariables(), CExperimentObjectMap::setNumCols(), and CPlotItem::setType().
|
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 CCopasiParameter.
References CUndoData::addPostProcessData(), CUndoData::addPreProcessData(), CUndoData::addProperty(), CData::begin(), C_INT32, CUndoData::CHANGE, CCopasiParameter::createUndoData(), CUndoData::empty(), CData::end(), getIndex(), CUndoData::getNewData(), CUndoData::getOldData(), CData::getProperty(), CUndoObjectInterface::insert(), CDataContainer::insert(), CUndoData::INSERT, CCopasiParameter::mpValue, CData::OBJECT_INDEX, CData::OBJECT_NAME, CData::PARAMETER_VALUE, CUndoData::REMOVE, and CDataValue::toDataVector().
Referenced by CCopasiTask::createUndoData().
|
virtual |
This methods must be called to elevate subgroups to derived objects. The default implementation does nothing.
Reimplemented in CFitProblem, CFitItem, COptProblem, CEFMProblem, CTSSAProblem, CTSSAMethod, CTrajectoryProblem, CTrajectoryMethodDsaLsodar, CTrajAdaptiveSA, CTauLeapMethod, CStochMethod, CStochDirectMethod, CStochasticRungeKuttaRI5, CRadau5Method, CLsodaMethod2, CLsodaMethod, CHybridMethodODE45, CHybridMethod, CTimeSensProblem, CTimeSensLsodaMethod, CSteadyStateMethod, CNewtonMethod, CMCAMethod, CExperimentSet, CExperimentObjectMap, CExperimentObjectMap::CDataColumn, CExperiment, COscillationProblem, COptMethodSS, CMIRIAMResources, CLyapWolfMethod, CLyapProblem, CLNAMethod, and CConfigurationFile.
Referenced by TaskHandler::processEnd().
CCopasiParameterGroup::index_iterator CCopasiParameterGroup::endIndex | ( | ) | const |
Retrieve the end of unsorted iterator Note: the swap function may be used to change the order
References CCopasiParameter::mpValue.
Referenced by CRecentFiles::addFile(), CMIRIAMResources::createDisplayNameMap(), CMIRIAMResources::createURIMap(), elevate(), CMIRIAMResources::elevateChildren(), CExperimentObjectMap::elevateChildren(), CExperimentSet::elevateChildren(), CMIRIAMResource::extractId(), CExperimentObjectMap::fixBuild55(), CScanProblem::fixBuild81(), CExperimentObjectMap::getLastNotIgnoredColumn(), getObject(), CConfigurationFile::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CReaction::initializeParameters(), CHybridMethodODE45::partitionSystem(), setUserInterfaceFlag(), size(), CExperimentSet::sort(), CHybridNextReactionLSODAMethod::start(), and swap().
CCopasiParameterGroup::const_name_iterator CCopasiParameterGroup::endName | ( | ) | const |
Retrieve the end iterator going through the parameters sorted by name
References CDataObjectMap::end(), and CDataContainer::mObjects.
Referenced by CReaction::createUndoData(), and CReaction::toData().
CCopasiParameterGroup & CCopasiParameterGroup::getElementTemplates | ( | ) |
References CCopasiParameterGroup(), mpElementTemplates, and NO_PARENT.
Referenced by CHybridMethodODE45::initializeParameter().
const CCopasiParameterGroup & CCopasiParameterGroup::getElementTemplates | ( | ) | const |
References mpElementTemplates.
CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const size_t & | index | ) |
Retrieve a subgroup from the group
const | size_t & index |
References getParameter().
const CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const size_t & | index | ) | const |
Retrieve a subgroup from the group
const | size_t & index |
References getParameter().
CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const std::string & | name | ) |
Retrieve a subgroup from the group
const | std::string & name |
References getParameter().
Referenced by assertGroup(), CConfigurationFile::elevateChildren(), CExperiment::elevateChildren(), CFitProblem::elevateChildren(), CExperimentObjectMap::getDefaultScale(), CExperimentSet::getExperiment(), CMIRIAMResources::getMIRIAMResource(), CExperimentObjectMap::getName(), CExperimentObjectMap::getObjectCN(), CExperimentObjectMap::getRole(), CExperimentObjectMap::getScale(), CConfigurationFile::load(), CExperimentObjectMap::setObjectCN(), CExperimentObjectMap::setRole(), and CExperimentObjectMap::setScale().
const CCopasiParameterGroup * CCopasiParameterGroup::getGroup | ( | const std::string & | name | ) | const |
Retrieve a subgroup from the group
const | std::string & name |
References getParameter().
|
virtual |
Reimplemented from CDataContainer.
References CDataContainer::getIndex(), and CCopasiParameter::mpValue.
Referenced by createUndoData(), operator=(), CFitProblem::restore(), and updateIndex().
size_t CCopasiParameterGroup::getIndex | ( | const std::string & | name | ) | const |
Retrieve the index of a parameter or subgroup with a given name
const | std::string & name |
References C_INVALID_INDEX, and CCopasiParameter::mpValue.
std::string CCopasiParameterGroup::getKey | ( | const size_t & | index | ) | const |
Retrieve the key of a parameter or subgroup
const | size_t & index |
References CCopasiParameter::getKey(), and getParameter().
std::string CCopasiParameterGroup::getKey | ( | const std::string & | name | ) | const |
Retrieve the key of a parameter or subgroup
const | std::string & name |
References CCopasiParameter::getKey(), and getParameter().
Referenced by CCopasiXML::saveModel().
|
virtual |
Retrieve the name of a parameter or subgroup
const | size_t & index |
Reimplemented in CExperimentObjectMap.
References CDataObject::getObjectName(), and getParameter().
Referenced by CExperiment::readColumnNames(), and CCopasiXML::saveModel().
|
virtual |
Retrieve a descendant object by its CN.
const | CCommonName & cn |
Reimplemented from CDataContainer.
References beginIndex(), C_INVALID_INDEX, endIndex(), CDataContainer::getObject(), CCommonName::getObjectName(), CCommonName::getRemainder(), and strToUnsignedInt().
Referenced by applyData(), and COutputAssistant::createDefaultOutput().
CCopasiParameter * CCopasiParameterGroup::getParameter | ( | const size_t & | index | ) |
Retrieve a parameter or subgroup from the group
const | size_t & index |
References CCopasiParameter::mpValue, and size().
const CCopasiParameter * CCopasiParameterGroup::getParameter | ( | const size_t & | index | ) | const |
Retrieve a parameter or subgroup from the group
const | size_t & index |
References CCopasiParameter::mpValue, and size().
CCopasiParameter * CCopasiParameterGroup::getParameter | ( | std::string | name | ) |
Retrieve a parameter or subgroup from the group
const | std::string & name |
References CDataObjectMap::equal_range(), CDataContainer::getObjects(), and CDataObject::sanitizeObjectName().
Referenced by CExperimentSet::addExperiment(), CSensProblem::addVariables(), SEDMLImporter::applyAlgorithm(), CReaction::applyData(), applyData(), assertParameter(), CSensProblem::changeVariables(), CModelAnalyzer::checkReaction(), CModel::convert2NonReversible(), CReactionInterface::createUndoData(), CScanItemLinear::CScanItemLinear(), CTSSATask::CTSSATask(), CModelExpansion::duplicateReaction(), COptProblem::elevateChildren(), CFitItem::elevateChildren(), CFitProblem::elevateChildren(), CSEDMLExporter::exportAlgorithm(), CSEDMLExporter::exportNthScanItem(), CODEExporter::exportReacParamsAndFuncs(), CScanProblem::fixBuild81(), CPlotItem::getActivity(), CReactionInterface::getDeletedParameters(), getGroup(), getKey(), getName(), CUndoData::getObject(), CTimeSensProblem::getParameterCN(), CReaction::getParameterValue(), CScanProblem::getScanItem(), CTimeSensProblem::getTargetCN(), getType(), getValue(), CSensProblem::getVariables(), COptMethodDE::initialize(), COptMethodEP::initialize(), COptMethodGA::initialize(), COptMethodGASR::initialize(), COptMethodLevenbergMarquardt::initialize(), COptMethodPS::initialize(), COptMethodSA::initialize(), COptMethodSRES::initialize(), COptMethodSS::initialize(), COptPopulationMethod::initialize(), CRandomSearch::initialize(), CTSSATask::initialize(), CCheckForUpdates::initializeParameter(), CConfigurationFile::initializeParameter(), CLyapWolfMethod::initializeParameter(), CExperiment::initializeParameter(), CExperimentObjectMap::CDataColumn::initializeParameter(), CScanProblem::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridMethodODE45::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CLsodaMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CReaction::initializeParameters(), CReactionInterface::loadMappingAndValues(), PlotItemHandler::processEnd(), PlotSpecificationHandler::processEnd(), TaskHandler::processEnd(), ConstantHandler::processStart(), PlotItemHandler::processStart(), PlotSpecificationHandler::processStart(), removeParameter(), CTimeSensProblem::removeParameterCN(), CTimeSensProblem::removeTargetCN(), SBMLImporter::sbmlId2CopasiCN(), CReaction::setParameterValue(), setValue(), CConfigurationFile::showItemIssues(), CHybridNextReactionLSODAMethod::start(), CProvenanceXMLWriter::updateCurrentSessionProvenance(), CProvenanceXMLWriter::updateOrigionOfProvenance(), and CReactionInterface::writeBackToReaction().
const CCopasiParameter * CCopasiParameterGroup::getParameter | ( | std::string | name | ) | const |
Retrieve a parameter or subgroup from the group
const | std::string & name |
References CDataObjectMap::equal_range(), CDataContainer::getObjects(), and CDataObject::sanitizeObjectName().
CCopasiParameter::Type CCopasiParameterGroup::getType | ( | const size_t & | index | ) | const |
Retrieve the type of a parameter or subgroup
const | size_t & index |
References getParameter(), CCopasiParameter::getType(), and CCopasiParameter::INVALID.
CCopasiParameter::Type CCopasiParameterGroup::getType | ( | const std::string & | name | ) | const |
Retrieve the type of a parameter or subgroup
const | std::string & name |
References getParameter(), CCopasiParameter::getType(), and CCopasiParameter::INVALID.
std::string CCopasiParameterGroup::getUniqueParameterName | ( | const CCopasiParameter * | pParameter | ) | const |
Retrieve a unique name for the given parameter
const | CCopasiParameter * pParameter |
References C_INVALID_INDEX, CDataObject::getObjectName(), and CCopasiParameter::mpValue.
Referenced by CCopasiParameter::getCN(), and CCopasiParameter::getObjectDisplayName().
|
inline |
Retrieve a pointer to the value of a parameter or subgroup
const | size_t & index |
References __FatalError, getParameter(), and CCopasiParameter::getValue().
|
inline |
Retrieve a pointer to the value of a parameter or subgroup
const | size_t & index |
References __FatalError, getParameter(), and CCopasiParameter::getValue().
|
inline |
Retrieve a pointer to the value of a parameter or subgroup
const | std::string & name |
References __FatalError, getParameter(), and CCopasiParameter::getValue().
|
inline |
Retrieve a pointer to the value of a parameter or subgroup
const | std::string & name |
References __FatalError, getParameter(), and CCopasiParameter::getValue().
Referenced by CFitItem::addCrossValidation(), CFitItem::addExperiment(), CSensProblem::copyParameterGroupToSensItem(), CScanItem::createScanItemFromParameterGroup(), CScanItem::CScanItem(), CScanItemLinear::CScanItemLinear(), CScanItemRandom::CScanItemRandom(), CExperiment::elevateChildren(), CFitProblem::elevateChildren(), CSEDMLExporter::exportStyleForItem(), CFitItem::getCrossValidation(), CFitItem::getCrossValidations(), CFitItem::getExperiment(), CFitItem::getExperiments(), CScanTask::initSubtask(), CSEDMLExporter::PlotItemStyleComparer::operator()(), and CCopasiXML::saveModel().
bool CCopasiParameterGroup::haveTemplate | ( | ) | const |
References mpElementTemplates, and size().
|
virtual |
Create and insert an undo object based on the given data. This method needs to be re-implemented in container which support INSERT and REMOVE
const | CData & data |
Reimplemented from CDataContainer.
References CDataContainer::add(), CCopasiParameter::fromData(), CData::getProperty(), min, CCopasiParameter::mpValue, CData::OBJECT_INDEX, size(), and CDataValue::toSizeT().
Referenced by applyData(), and CFitProblem::initialize().
CCopasiParameterGroup & CCopasiParameterGroup::operator= | ( | const CCopasiParameterGroup & | rhs | ) |
Assignment operator
const | CCopasiParameterGroup & rhs |
References CDataContainer::add(), CDataObjectMap::begin(), CCopasiParameter::CCopasiParameter(), CCopasiParameterGroup(), CDataObjectMap::end(), getIndex(), CDataObject::getObjectName(), CDataContainer::getObjects(), CCopasiParameter::GROUP, CDataContainer::insert(), min, mpElementTemplates, CCopasiParameter::mpValue, CCopasiParameter::mUserInterfaceFlag, CObjectInterface::mValidity, NO_PARENT, pdelete, removeParameter(), and CDataObject::setObjectName().
Referenced by CCopasiParameterGroup(), CCopasiMethod::operator=(), CConfigurationFile::operator=(), CMIRIAMResources::operator=(), and CExperimentObjectMap::operator=().
|
virtual |
This is the output method for any object. The default implementation provided with CDataObject uses the ostream operator<< of the object to print the object.To override this default behavior one needs to reimplement the virtual print function.
std::ostream | * ostream |
Reimplemented from CCopasiParameter.
Reimplemented in CMCAProblem, CSensProblem, CFitProblem, COptProblem, CLNAProblem, CCopasiProblem, CCopasiMethod, COscillationProblem, COptPopulationMethod, CCrossSectionProblem, and CAnalyticsProblem.
|
virtual |
Removes the pointer to the object, from the vector
CDataObject | * pObject |
Reimplemented from CDataContainer.
References CCopasiParameter::mpValue, and CDataContainer::remove().
bool CCopasiParameterGroup::removeParameter | ( | CCopasiParameter * | pParameter | ) |
Remove a parameter or subgroup from the group
const | size_t & index |
References CDataObject::getObjectParent().
bool CCopasiParameterGroup::removeParameter | ( | const size_t & | index | ) |
Remove a parameter or subgroup from the group
const | size_t & index |
References CCopasiParameter::mpValue, removeParameter(), and size().
bool CCopasiParameterGroup::removeParameter | ( | const std::string & | name | ) |
Remove a parameter or subgroup from the group
const | std::string & name |
References getParameter().
Referenced by assertGroup(), assertParameter(), CExperiment::elevateChildren(), CTSSAProblem::elevateChildren(), COptProblem::elevateChildren(), CFitItem::elevateChildren(), CFitProblem::elevateChildren(), CConfigurationFile::initializeParameter(), CLyapWolfMethod::initializeParameter(), CExperiment::initializeParameter(), CFitProblem::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CLsodaMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CReaction::initializeParameters(), operator=(), CFitItem::removeCrossValidation(), CExperimentSet::removeExperiment(), CFitItem::removeExperiment(), COptProblem::removeOptConstraint(), COptProblem::removeOptItem(), removeParameter(), CTimeSensProblem::removeParameterCN(), CScanProblem::removeScanItem(), CTimeSensProblem::removeTargetCN(), CSensProblem::removeVariables(), CExperimentObjectMap::CDataColumn::setObjectCN(), and CExperimentObjectMap::CDataColumn::setScale().
|
virtual |
Reimplemented from CCopasiParameter.
References beginIndex(), endIndex(), CCopasiParameter::mUserInterfaceFlag, and CCopasiParameter::setUserInterfaceFlag().
Referenced by assertGroup(), and CRecentFiles::initializeParameter().
|
inline |
Set the value of a parameter or subgroup.
const | size_t & index |
const | CType & value |
References getParameter(), and CCopasiParameter::setValue().
|
inline |
Set the value of a parameter or subgroup.
const | std::string & name |
const | CType & value |
References getParameter(), and CCopasiParameter::setValue().
Referenced by SEDMLImporter::addCurveToCopasiPlot(), SEDMLImporter::addSurfaceToCopasiPlot(), SEDMLImporter::applyStyleToCopasiItem(), CSensProblem::copySensItemToParameterGroup(), COutputAssistant::createDefaultOutput(), COutputAssistant::createPlot(), CFitProblem::elevateChildren(), SEDMLImporter::importTask(), COptMethodDE::initialize(), COptMethodGA::initialize(), COptMethodGASR::initialize(), COptMethodPS::initialize(), COptMethodSRES::initialize(), COptMethodSS::initialize(), CLyapWolfMethod::initializeParameter(), CMCAMethod::initializeParameter(), CNewtonMethod::initializeParameter(), CSteadyStateMethod::initializeParameter(), CHybridMethod::initializeParameter(), CHybridNextReactionLSODAMethod::initializeParameter(), CHybridNextReactionRKMethod::initializeParameter(), CStochMethod::initializeParameter(), CTauLeapMethod::initializeParameter(), CTSSAMethod::initializeParameter(), CSteadyStateProblem::load(), CNewtonMethod::load(), CExperiment::operator=(), COptMethodSS::optimise(), TaskHandler::processEnd(), CScanProblem::setContinueFromCurrentState(), CScanProblem::setContinueOnError(), CSteadyStateProblem::setJacobianRequested(), CPlotSpecification::setLogX(), CPlotSpecification::setLogY(), CScanProblem::setOutputInSubtask(), CSteadyStateProblem::setStabilityAnalysisRequested(), CLNAProblem::setSteadyStateRequested(), CMCAProblem::setSteadyStateRequested(), CScanProblem::setSubtask(), CCSPMethod::start(), and TestOptimization().
size_t CCopasiParameterGroup::size | ( | const UserInterfaceFlag & | require = UserInterfaceFlag::None , |
const UserInterfaceFlag & | exclude = UserInterfaceFlag::None |
||
) | const |
The size of the parameter group @ return size_t size
References beginIndex(), endIndex(), CCopasiParameter::mpValue, and CFlags< eUserInterfaceFlag >::None.
Referenced by CFitItem::addCrossValidation(), CFitItem::addExperiment(), CRecentFiles::addFile(), applyData(), CFitProblem::calculateStatistics(), CModelAnalyzer::checkReaction(), CExperimentObjectMap::compile(), CModel::createEventsForTimeseries(), CExperiment::elevateChildren(), CODEExporter::exportReacParamsAndFuncs(), CFitItem::getCrossValidation(), CFitItem::getCrossValidationCount(), CFitItem::getCrossValidations(), CFitItem::getExperiment(), CExperimentSet::getExperimentCount(), CFitItem::getExperimentCount(), CFitItem::getExperiments(), CMIRIAMResources::getMIRIAMResource(), CScanProblem::getNumberOfScanItems(), CSensProblem::getNumberOfVariables(), CTimeSensProblem::getNumParameters(), CTimeSensProblem::getNumTargets(), CUndoData::getObject(), COptProblem::getOptConstraintSize(), COptProblem::getOptItemSize(), getParameter(), haveTemplate(), insert(), CTSSAMethod::isValidProblem(), CExperimentSet::keyToIndex(), CConfigurationFile::load(), CHybridMethodODE45::partitionSystem(), CExperiment::read(), removeParameter(), CFitProblem::restore(), CCopasiXML::saveModel(), CExperimentObjectMap::setNumCols(), and CExperiment::updateFittedPoints().
bool CCopasiParameterGroup::swap | ( | const size_t & | iFrom, |
const size_t & | iTo | ||
) |
Swap two parameters Note: This has effect on the index_iterator and index access methods.
const | size_t & iFrom |
const | size_t & iTo |
References beginIndex().
Referenced by CExperimentSet::sort(), and COptProblem::swapOptItem().
bool CCopasiParameterGroup::swap | ( | index_iterator & | from, |
index_iterator & | to | ||
) |
Swap two parameters Note: This has effect on the iterator and index access methods.
index_iterator | & from |
index_iterator | & to |
References beginIndex(), and endIndex().
|
virtual |
Retrieve the data describing the object
Reimplemented from CCopasiParameter.
Reimplemented in CPlotSpecification, and CPlotItem.
References CData::addProperty(), CCopasiParameter::mpValue, CData::PARAMETER_VALUE, and CCopasiParameter::toData().
Referenced by CCopasiTask::createUndoData(), and CCopasiTask::toData().
|
virtual |
Update the index of a contained object This method needs to be re-implemented in container which care about the order of contained objects
const | size_t & index |
const | CUndoObjectInterface * pUndoObject |
Reimplemented from CUndoObjectInterface.
References C_INVALID_INDEX, getIndex(), min, and CCopasiParameter::mpValue.
|
friend |
|
friend |
Comparison operator
const | CCopasiParameterGroup & lhs |
const | CCopasiParameterGroup & rhs |
|
private |
Referenced by getElementTemplates(), haveTemplate(), operator=(), and ~CCopasiParameterGroup().