COPASI API
4.40.278
|
#include <SEDMLUtils.h>
Static Public Member Functions | |
static std::string | argbToRgba (const std::string &argb, bool includeHash=true) |
static CModelValue * | createAmountMV (CModel *pModel, const CMetab *pMetab) |
static std::string | findIdByNameAndType (const std::map< const CDataObject *, SBase * > &map, int typeCode, const std::string &name) |
static int | getAlphaFromArgb (const std::string &argb) |
static int | getAlphaFromRgba (const std::string &rgba) |
static std::string | getNextId (const std::string &base, int count) |
static const CDataObject * | getObjectForSbmlId (const CModel *pModel, const std::string &id, const std::string &SBMLType, bool initial=false) |
static std::string | getSbmlId (const CDataObject &object) |
static std::string | getSedMLStringForArchive (const std::string &fileName) |
static std::string | getXPathAndName (std::string &sbmlId, const std::string &type, const CModel *pModel, const CDataModel &dataModel) |
static std::string | getXPathForObject (const CDataObject &object) |
static std::string | getXPathForObjectAndType (const CDataObject &object, const std::string &sbmlId) |
static std::string | getXPathForSbmlIdAndType (const std::string &type, const std::string &sbmlId) |
static int | lineTypeFromSed (int linetype) |
static int | lineTypeToSed (int linetype) |
static std::string & | removeCharactersFromString (std::string &str, const std::string &characters) |
static const CDataObject * | resolveDatagenerator (CModel *model, const SedDataGenerator *dataReference) |
static const CDataObject * | resolveVariable (CModel *model, const SedVariable *variable) |
static const CDataObject * | resolveXPath (const CModel *model, const std::string &xpath, bool initial=false) |
static std::string | rgbaToArgb (const std::string &rgba, bool includeHash=true) |
static void | setLibCombineTempDir () |
static void | splitStrings (const std::string &xpath, char delim, std::vector< std::string > &stringsContainer) |
static int | symbolFromSed (int symbol) |
static int | symbolToSed (int symbol) |
static std::string | translateTargetXpathInSBMLId (const std::string &xpath, std::string &SBMLType) |
Static Public Attributes | |
static std::map< int, int > | COPASI_LINE_STYLE_MAP |
static std::map< int, int > | COPASI_SYMBOL_MAP |
static std::map< std::string, std::string > | PARAMETER_KISAO_MAP |
Utility methods for SED-ML Import / Export
|
static |
Referenced by CSEDMLExporter::exportStyleForItem().
|
static |
References CModelEntity::ASSIGNMENT, C_INVALID_INDEX, CModel::createModelValue(), CDataObject::getCN(), CMetab::getCompartment(), CMetab::getConcentrationReference(), CDataVectorN< CType >::getIndex(), CModel::getModelValues(), CDataObject::getObjectName(), CModelEntity::getValueReference(), CModelEntity::setExpression(), and CModelEntity::setStatus().
Referenced by resolveVariable().
|
static |
tries to find a species id in the given map. Lookup will be performed by name
References CDataObject::getObjectDisplayName(), and removeCharactersFromString().
Referenced by getXPathAndName().
|
static |
|
static |
Referenced by SEDMLImporter::applyStyleToCopasiItem().
|
static |
|
static |
References CModel::getCompartments(), CModel::getMetabolites(), CModel::getModelValues(), CDataContainer::getObject(), CModel::getReactions(), and CDataVector< CType >::size().
Referenced by resolveXPath().
|
static |
References CModelEntity::getSBMLId().
Referenced by getXPathForObject().
|
static |
References CCopasiMessage::ERROR, and setLibCombineTempDir().
Referenced by SedmlInfo::forArchive().
|
static |
This function uses the Copasi2SBML map of the datamodel, to resolve the element with the display name provided in the 'sbmlId' parameter. Once the object has been resolved the xpath string will be created for it, and the object sbmlId returned.
sbmlId | input parameter with the displayName of the object sought, will be the output 'sbmlId' if the element cannot be resolved, sbmlId will be set to the empty string |
type | the object type of the element |
pModel | the model to search through |
dataModel | the datamodel to use |
References findIdByNameAndType(), removeCharactersFromString(), SEDML_TIME_URN, and splitStrings().
Referenced by getXPathForObject().
|
static |
object | the object to generate an xpath expression for |
References CDataModel::getModel(), CDataObject::getObjectDataModel(), CDataObject::getObjectDisplayName(), getSbmlId(), getXPathAndName(), and getXPathForSbmlIdAndType().
Referenced by CSEDMLExporter::exportNthScanItem().
|
static |
References CDataObject::getObjectAncestor(), CDataObject::getObjectName(), CDataObject::getObjectType(), and CReaction::getSBMLId().
Referenced by VariableInfo::VariableInfo().
|
static |
Wraps the given sbml id into an xpath expression according to type
type | one of 'Concentration', 'InitialConcentration', 'Volume', 'Value', 'Flux' |
sbmlid | the sbmlid of the object |
Referenced by getXPathForObject().
|
static |
References COPASI_LINE_STYLE_MAP.
Referenced by SEDMLImporter::applyStyleToCopasiItem().
|
static |
References COPASI_LINE_STYLE_MAP.
Referenced by CSEDMLExporter::exportStyleForItem().
|
static |
|
static |
References CDataContainer::getObject(), resolveVariable(), and SEDML_TIME_URN.
Referenced by SEDMLImporter::addCurveToCopasiPlot(), SEDMLImporter::addSurfaceToCopasiPlot(), and SEDMLImporter::importReport().
|
static |
References createAmountMV(), CMetab::getConcentrationRateReference(), CMetab::getConcentrationReference(), CDataObject::getObjectParent(), CDataObject::getObjectType(), CModelEntity::getRateReference(), CModelEntity::getValueReference(), resolveXPath(), SEDML_KISAO_AMOUNT, SEDML_KISAO_CONCENTRATION, SEDML_KISAO_CONCENTRATION_RATE, SEDML_KISAO_PARTICLE_RATE, SEDML_KISAO_PARTICLENUMBER, SEDML_KISAO_RATE, SEDML_KISAO_RATEOFCHANGE, and CCopasiMessage::WARNING.
Referenced by resolveDatagenerator().
|
static |
References CDataObject::getObject(), getObjectForSbmlId(), CDataObject::getObjectParent(), and translateTargetXpathInSBMLId().
Referenced by applyAttributeChange(), SEDMLImporter::importTask(), and resolveVariable().
|
static |
Referenced by SEDMLImporter::applyStyleToCopasiItem().
|
static |
updates the libcombine temp directory to the COPASI temp path
References COptions::getValue().
Referenced by getSedMLStringForArchive().
|
static |
This is a hack at the moment better solution for processing XPath string may be developed in the future
Referenced by getXPathAndName(), and translateTargetXpathInSBMLId().
|
static |
References COPASI_SYMBOL_MAP.
Referenced by SEDMLImporter::applyStyleToCopasiItem().
|
static |
References COPASI_SYMBOL_MAP.
Referenced by CSEDMLExporter::exportStyleForItem().
|
static |
References removeCharactersFromString(), and splitStrings().
Referenced by resolveXPath().
|
static |
Referenced by lineTypeFromSed(), and lineTypeToSed().
|
static |
Referenced by symbolFromSed(), and symbolToSed().
|
static |
Referenced by SEDMLImporter::applyAlgorithm(), and CSEDMLExporter::exportAlgorithm().