COPASI API
4.16.103
|
#include <CMetabNameInterface.h>
Public Member Functions | |
CMetabNameInterface () | |
~CMetabNameInterface () | |
Static Public Member Functions | |
static bool | doesExist (const CModel *model, const std::string &metabolite, const std::string &compartment) |
static std::string | getDisplayName (const CModel *model, const std::string &key, const bool "ed) |
static std::string | getDisplayName (const CModel *model, const CMetab &metab, const bool "ed) |
static std::string | getDisplayName (const CModel *model, const std::string &metabolite, const std::string &compartment, const bool "ed) |
static CMetab * | getMetabolite (const CModel *model, const std::string &metabolite, const std::string &compartment) |
static std::string | getMetaboliteKey (const CModel *model, const std::string &metabolite, const std::string &compartment) |
static bool | isUnique (const CModel *model, const std::string &name) |
static std::pair< std::string, std::string > | splitDisplayName (const std::string &name) |
static std::string | unQuote (const std::string &displayName) |
This class handles the display names of metabolites. It converts "Species" to "Species {Compartment}" if the metabolite name is not unique. If it is unique (that means it occurs in only one compartment) then the "{Compartment}" is not added.
Definition at line 40 of file CMetabNameInterface.h.
CMetabNameInterface::CMetabNameInterface | ( | ) |
CMetabNameInterface::~CMetabNameInterface | ( | ) |
Definition at line 38 of file CMetabNameInterface.cpp.
|
static |
This returns whether a metabolite with the given name does exist. If a compartment is also given (as an appendix to the name) then it only returns true if the metabolite exists in the specified compartment.
Definition at line 154 of file CMetabNameInterface.cpp.
References C_INVALID_INDEX, CModel::findMetabByName(), CModel::getCompartments(), and CCopasiVectorN< CType >::getIndex().
Referenced by getDisplayName(), and CChemEqInterface::listOfNonExistingMetabNames().
|
static |
This returns a name to use for display in the GUI. If the name of the metabolite is unique it is used unaltered. If it is not then the compartment is added to the name to make it unique.
Definition at line 41 of file CMetabNameInterface.cpp.
References CKeyFactory::get(), and CCopasiRootContainer::getKeyFactory().
Referenced by CChemEqInterface::buildDisplayNames(), CTimeSeries::compile(), CODEExporter::exportMetabolites(), CODEExporter::exportMetabolitesConcentrations(), CMoiety::getDescription(), getDisplayName(), CEFMTask::getInternalSpecies(), ParameterTable::getListOfAllMetabNames(), CModelParameterSpecies::getName(), CEFMTask::getNetReaction(), CMetab::getObjectDisplayName(), CQEFMSpeciesDM::headerData(), CQBrowserPaneDM::load(), CReactionInterface::loadMappingAndValues(), StateSubwidget::loadMetabolites(), operator<<(), CModel::printParameterOverview(), CEFMProblem::printResult(), and CQBrowserPaneDM::slotNotify().
|
static |
This returns a name to use for display in the GUI. If the name of the metabolite is unique it is used unaltered. If it is not then the compartment is added to the name to make it unique.
Definition at line 51 of file CMetabNameInterface.cpp.
References CMetab::getCompartment(), getDisplayName(), and CCopasiObject::getObjectName().
|
static |
This returns a name to use for display in the GUI. If the name of the metabolite is unique it is used unaltered. If it is not then the compartment is added to the name to make it unique.
Definition at line 56 of file CMetabNameInterface.cpp.
References doesExist(), CModel::getCompartments(), CCopasiObject::getObjectName(), isNumber(), isUnique(), quote(), and CCopasiVector< T >::size().
|
static |
Definition at line 100 of file CMetabNameInterface.cpp.
References C_INVALID_INDEX, CModel::findMetabByName(), CModel::getCompartments(), CCopasiVectorN< CType >::getIndex(), CCompartment::getMetabolites(), and CModel::getMetabolites().
Referenced by CChemEqInterface::completeCompartments(), and getMetaboliteKey().
|
static |
This tries to find the metabolite with the given name. If the name is not unique and is given without a compartment then the first occurrence of a metabolite with this name is returned.
Definition at line 88 of file CMetabNameInterface.cpp.
References CModelEntity::getKey(), and getMetabolite().
Referenced by CReactionInterface::writeBackToReaction(), and CChemEqInterface::writeToChemEq().
|
static |
This returns whether the metabolite name is unique.
Definition at line 131 of file CMetabNameInterface.cpp.
References CModel::getMetabolites(), CCopasiObject::getObjectName(), and CCopasiVector< T >::size().
Referenced by CChemEqInterface::completeCompartments(), getDisplayName(), and CChemEqInterface::listOfNonUniqueMetabNames().
|
static |
Definition at line 173 of file CMetabNameInterface.cpp.
References CChemEqParserBase::getSubstrateCompartments(), CChemEqParserBase::getSubstrateNames(), quote(), and CChemEqParserBase::yyparse().
Referenced by CChemEqInterface::addModifier(), and CReactionInterface::writeBackToReaction().
|
static |
Definition at line 197 of file CMetabNameInterface.cpp.
References CChemEqParserBase::getSubstrateCompartments(), CChemEqParserBase::getSubstrateNames(), and CChemEqParserBase::yyparse().
Referenced by ParameterTable::getListOfAllMetabNames(), and ParameterTable::updateTable().