COPASI API
4.40.278
|
#include <CModelMIRIAMInfo.h>
Public Member Functions | |
bool | addDefaultCreatedDT () |
CCreator * | addDefaultCreator (bool force=false) |
virtual bool | applyData (const CData &data, CUndoData::CChangeSet &changes) |
CMIRIAMInfo () | |
CBiologicalDescription * | createBiologicalDescription () |
CCreator * | createCreator (const std::string &objectName) |
CModification * | createModification (const std::string &objectName) |
CReference * | createReference (const std::string &objectName) |
virtual void | createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const |
bool | empty () const |
CDataVector< CBiologicalDescription > & | getBiologicalDescriptions () |
const CDataVector< CBiologicalDescription > & | getBiologicalDescriptions () const |
const std::string | getCreatedDT () const |
CDataVector< CCreator > & | getCreators () |
const CDataVector< CCreator > & | getCreators () const |
virtual const std::string & | getKey () const |
CDataVector< CModification > & | getModifications () |
const CDataVector< CModification > & | getModifications () const |
CRDFGraph * | getRDFGraph () |
CDataVector< CReference > & | getReferences () |
const CDataVector< CReference > & | getReferences () const |
void | load (CDataContainer *pObject) |
void | loadBiologicalDescriptions () |
void | loadCreators () |
void | loadModifications () |
void | loadReferences () |
bool | removeBiologicalDescription (CBiologicalDescription *pBiologicalDescription) |
bool | removeCreator (CCreator *pCreator) |
bool | removeModification (CModification *pModified) |
bool | removeReference (CReference *pReference) |
bool | save () |
void | setCreatedDT (const std::string &dt) |
virtual CData | toData () const |
~CMIRIAMInfo () | |
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 size_t | getIndex (const CDataObject *pObject) const |
virtual const CObjectInterface * | getObject (const CCommonName &cn) const override |
virtual objectMap & | getObjects () |
virtual const objectMap & | getObjects () const |
virtual const std::string | getUnits () const override |
virtual const CDataObject * | getValueObject () const override |
virtual CUndoObjectInterface * | insert (const CData &data) override |
void | objectRenamed (CDataObject *pObject, const std::string &oldName) |
virtual bool | remove (CDataObject *pObject) |
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 CCommonName | getCN () const override |
virtual const CDataObject * | getDataObject () const override |
CDataContainer * | getObjectAncestor (const std::string &type) const |
CDataModel * | getObjectDataModel () const |
virtual std::string | getObjectDisplayName () const override |
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 |
virtual void * | getValuePointer () 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 |
virtual void | print (std::ostream *ostream) const override |
void | removeIssue (const CIssue &issue) |
void | removeReference (const CDataContainer *pReference) |
bool | setObjectName (const std::string &name) |
virtual bool | setObjectParent (const CDataContainer *pParent) |
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 void | updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject) |
virtual | ~CUndoObjectInterface () |
Additional Inherited Members | |
Public Types inherited from CDataContainer | |
typedef CDataObjectMap | objectMap |
Public Types inherited from CDataObject | |
typedef std::set< const CDataObject * > | DataObjectSet |
enum | Flag { Container , Vector , Matrix , NameVector , Reference , ValueBool , ValueInt , ValueInt64 , ValueDbl , NonUniqueName , StaticString , ValueString , Separator , DisplayName , ModelEntity , Array , DataModel , Root , Gui , __SIZE } |
Public Types inherited from CObjectInterface | |
typedef std::vector< const CDataContainer * > | ContainerList |
typedef std::set< const CObjectInterface * > | ObjectSet |
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 CDataContainer | |
static const CObjectInterface::ContainerList | EmptyList |
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) | |
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 |
CMIRIAMInfo::CMIRIAMInfo | ( | ) |
CMIRIAMInfo::~CMIRIAMInfo | ( | ) |
References CAnnotation::freeMiriamInfo(), mpObject, mpRDFGraph, and pdelete.
bool CMIRIAMInfo::addDefaultCreatedDT | ( | ) |
References empty(), getCreatedDT(), setCreatedDT(), and UTCTimeStamp().
Referenced by CDataModel::commonAfterLoad().
CCreator * CMIRIAMInfo::addDefaultCreator | ( | bool | force = false | ) |
SMethod to add a creator based on user preferences. If the preferences or not set NULL is returned
References createCreator(), CDataVector< CType >::empty(), empty(), CRootContainer::getConfiguration(), getCreatedDT(), CConfigurationFile::getCurrentAuthorEmail(), CConfigurationFile::getCurrentAuthorFamilyName(), CConfigurationFile::getCurrentAuthorGivenName(), CConfigurationFile::getCurrentAuthorOrganization(), mCreators, CCreator::setEmail(), CCreator::setFamilyName(), CCreator::setGivenName(), and CCreator::setORG().
Referenced by CDataModel::commonAfterLoad().
|
virtual |
Apply the provided data to the object
const | CData & data |
Reimplemented from CDataContainer.
References CDataContainer::applyData(), CData::DATE, CData::getProperty(), CData::isSetProperty(), save(), setCreatedDT(), and CDataValue::toString().
CBiologicalDescription * CMIRIAMInfo::createBiologicalDescription | ( | ) |
References CDataVector< CType >::add(), CRDFGraph::addTriplet(), CRDFGraph::getAboutNode(), CRDFNode::getSubject(), mBiologicalDescriptions, mpRDFGraph, CRDFObject::RESOURCE, CRDFObject::setResource(), and CRDFObject::setType().
Referenced by CBiologicalDescription::fromData(), and SBMLImporter::importMIRIAM().
CCreator * CMIRIAMInfo::createCreator | ( | const std::string & | objectName | ) |
References CDataVector< CType >::add(), CRDFGraph::addTriplet(), CRDFObject::BLANK_NODE, CRDFPredicate::dcterms_creator, CRDFGraph::generatedNodeId(), CRDFGraph::getAboutNode(), CRDFNode::getSubject(), CRDFPredicate::getURI(), mCreators, mpRDFGraph, CRDFObject::setBlankNodeId(), and CRDFObject::setType().
Referenced by addDefaultCreator(), and CCreator::fromData().
CModification * CMIRIAMInfo::createModification | ( | const std::string & | objectName | ) |
References CDataVector< CType >::add(), CRDFGraph::addTriplet(), CRDFObject::BLANK_NODE, CRDFPredicate::dcterms_modified, CRDFGraph::generatedNodeId(), CRDFGraph::getAboutNode(), CRDFNode::getSubject(), CRDFPredicate::getURI(), mModifications, mpRDFGraph, CRDFObject::setBlankNodeId(), CModification::setDate(), and CRDFObject::setType().
Referenced by CModification::fromData().
CReference * CMIRIAMInfo::createReference | ( | const std::string & | objectName | ) |
References CDataVector< CType >::add(), CRDFGraph::addTriplet(), CRDFObject::BLANK_NODE, CRDFPredicate::dcterms_bibliographicCitation, CRDFGraph::generatedNodeId(), CRDFGraph::getAboutNode(), CRDFNode::getSubject(), CRDFPredicate::getURI(), mpRDFGraph, mReferences, CRDFObject::setBlankNodeId(), and CRDFObject::setType().
Referenced by CReference::fromData().
|
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 CDataContainer.
References CUndoData::addProperty(), CUndoData::CHANGE, CDataContainer::createUndoData(), CData::DATE, getCreatedDT(), and CData::getProperty().
bool CMIRIAMInfo::empty | ( | ) | const |
References CRDFGraph::empty(), and mpRDFGraph.
Referenced by addDefaultCreatedDT(), addDefaultCreator(), and CSBMLExporter::updateMIRIAMAnnotation().
CDataVector< CBiologicalDescription > & CMIRIAMInfo::getBiologicalDescriptions | ( | ) |
References mBiologicalDescriptions.
Referenced by SBMLImporter::importMIRIAM(), and CSBMLExporter::updateMIRIAMAnnotation().
const CDataVector< CBiologicalDescription > & CMIRIAMInfo::getBiologicalDescriptions | ( | ) | const |
References mBiologicalDescriptions.
const std::string CMIRIAMInfo::getCreatedDT | ( | ) | const |
References CRDFPredicate::dcterms_W3CDTF, CRDFNode::getFieldValue(), mCreated, and CRDFTriplet::pObject.
Referenced by addDefaultCreatedDT(), addDefaultCreator(), createUndoData(), toData(), and CSBMLExporter::updateMIRIAMAnnotation().
CDataVector< CCreator > & CMIRIAMInfo::getCreators | ( | ) |
References mCreators.
Referenced by CSBMLExporter::updateMIRIAMAnnotation().
const CDataVector< CCreator > & CMIRIAMInfo::getCreators | ( | ) | const |
References mCreators.
|
virtual |
Reimplemented from CDataObject.
References CDataObject::getKey(), CAnnotation::getKey(), and mpAnnotation.
CDataVector< CModification > & CMIRIAMInfo::getModifications | ( | ) |
References mModifications.
Referenced by CSBMLExporter::updateMIRIAMAnnotation().
const CDataVector< CModification > & CMIRIAMInfo::getModifications | ( | ) | const |
References mModifications.
CRDFGraph * CMIRIAMInfo::getRDFGraph | ( | ) |
References mpRDFGraph.
CDataVector< CReference > & CMIRIAMInfo::getReferences | ( | ) |
References mReferences.
Referenced by CSBMLExporter::updateMIRIAMAnnotation().
const CDataVector< CReference > & CMIRIAMInfo::getReferences | ( | ) | const |
References mReferences.
void CMIRIAMInfo::load | ( | CDataContainer * | pObject | ) |
References CDataContainer::add(), CAnnotation::castObject(), CRDFGraph::createAboutNode(), CRDFPredicate::dcterms_created, CRDFNode::getDescendantsWithPredicate(), CDataObject::getKey(), CAnnotation::getMiriamAnnotation(), CDataObject::getObjectParent(), CRDFNode::getPath(), CRDFParser::graphFromXml(), loadBiologicalDescriptions(), loadCreators(), loadModifications(), loadReferences(), mCreated, mpAnnotation, mpObject, mpRDFGraph, mTriplet, pdelete, and CRDFTriplet::pObject.
Referenced by CDataModel::commonAfterLoad(), SBMLImporter::importMIRIAM(), and CSBMLExporter::updateMIRIAMAnnotation().
void CMIRIAMInfo::loadBiologicalDescriptions | ( | ) |
References CDataVector< CType >::add(), CRDFPredicate::bqbiol_encodes, CRDFPredicate::bqbiol_hasPart, CRDFPredicate::bqbiol_hasProperty, CRDFPredicate::bqbiol_hasTaxon, CRDFPredicate::bqbiol_hasVersion, CRDFPredicate::bqbiol_is, CRDFPredicate::bqbiol_isEncodedBy, CRDFPredicate::bqbiol_isHomologTo, CRDFPredicate::bqbiol_isPartOf, CRDFPredicate::bqbiol_isPropertyOf, CRDFPredicate::bqbiol_isVersionOf, CRDFPredicate::bqbiol_occursIn, CRDFPredicate::bqmodel_hasInstance, CRDFPredicate::bqmodel_is, CRDFPredicate::bqmodel_isDerivedFrom, CRDFPredicate::bqmodel_isInstanceOf, CDataVector< CType >::cleanup(), CRDFPredicate::copasi_encodes, CRDFPredicate::copasi_hasPart, CRDFPredicate::copasi_hasVersion, CRDFPredicate::copasi_is, CRDFPredicate::copasi_isDescribedBy, CRDFPredicate::copasi_isEncodedBy, CRDFPredicate::copasi_isHomologTo, CRDFPredicate::copasi_isPartOf, CRDFPredicate::copasi_isVersionOf, CRDFPredicate::copasi_occursIn, CRDFPredicate::end, CRDFNode::getDescendantsWithPredicate(), CRDFNode::getPath(), CMIRIAMResources::isCitation(), mBiologicalDescriptions, mTriplet, CRDFTriplet::pObject, and CRDFPredicate::unknown.
Referenced by load().
void CMIRIAMInfo::loadCreators | ( | ) |
void CMIRIAMInfo::loadModifications | ( | ) |
References CDataVector< CType >::add(), CDataVector< CType >::cleanup(), CRDFPredicate::dcterms_modified, CRDFNode::getDescendantsWithPredicate(), mModifications, mTriplet, and CRDFTriplet::pObject.
Referenced by load().
void CMIRIAMInfo::loadReferences | ( | ) |
References CDataVector< CType >::add(), CRDFPredicate::bqbiol_isDescribedBy, CRDFPredicate::bqmodel_isDescribedBy, CDataVector< CType >::cleanup(), CRDFPredicate::dcterms_bibliographicCitation, CRDFPredicate::end, CRDFNode::getDescendantsWithPredicate(), CRDFNode::getPath(), mReferences, mTriplet, and CRDFTriplet::pObject.
Referenced by load().
bool CMIRIAMInfo::removeBiologicalDescription | ( | CBiologicalDescription * | pBiologicalDescription | ) |
bool CMIRIAMInfo::removeCreator | ( | CCreator * | pCreator | ) |
bool CMIRIAMInfo::removeModification | ( | CModification * | pModified | ) |
bool CMIRIAMInfo::removeReference | ( | CReference * | pReference | ) |
bool CMIRIAMInfo::save | ( | ) |
References CRDFGraph::clean(), CAnnotation::getKey(), mpAnnotation, mpRDFGraph, CAnnotation::setMiriamAnnotation(), CRDFGraph::updateNamespaces(), and CRDFWriter::xmlFromGraph().
Referenced by CBiologicalDescription::applyData(), CCreator::applyData(), applyData(), CModification::applyData(), CReference::applyData(), CDataModel::commonAfterLoad(), CBiologicalDescription::destruct(), CCreator::destruct(), CModification::destruct(), CReference::destruct(), and SBMLImporter::importMIRIAM().
void CMIRIAMInfo::setCreatedDT | ( | const std::string & | dt | ) |
References CRDFGraph::addTriplet(), CRDFObject::BLANK_NODE, CRDFPredicate::dcterms_created, CRDFPredicate::dcterms_W3CDTF, CRDFGraph::generatedNodeId(), CRDFNode::getPath(), CRDFNode::getSubject(), CRDFPredicate::getURI(), mCreated, mpRDFGraph, mTriplet, CRDFTriplet::pObject, CRDFObject::setBlankNodeId(), CRDFNode::setFieldValue(), and CRDFObject::setType().
Referenced by addDefaultCreatedDT(), and applyData().
|
virtual |
Retrieve the data describing the object
Reimplemented from CDataContainer.
References CData::addProperty(), CData::DATE, getCreatedDT(), and CDataContainer::toData().
|
private |
|
private |
Referenced by getCreatedDT(), load(), and setCreatedDT().
|
private |
|
private |
Referenced by addDefaultCreator(), createCreator(), getCreators(), loadCreators(), and removeCreator().
|
private |
Referenced by createModification(), getModifications(), loadModifications(), and removeModification().
|
private |
|
private |
Referenced by load(), and ~CMIRIAMInfo().
|
private |
|
private |
Referenced by createReference(), getReferences(), loadReferences(), and removeReference().
|
private |
Referenced by load(), loadBiologicalDescriptions(), loadCreators(), loadModifications(), loadReferences(), and setCreatedDT().