COPASI API
4.16.103
|
#include <CMathDependencyGraph.h>
Public Types | |
typedef NodeMap::const_iterator | const_iterator |
typedef NodeMap::iterator | iterator |
typedef std::map< const CObjectInterface *, CMathDependencyNode * > | NodeMap |
Public Member Functions | |
iterator | addObject (const CObjectInterface *pObject) |
void | clear () |
CMathDependencyGraph () | |
void | exportDOTFormat (std::ostream &os, const std::string &name) const |
bool | getUpdateSequence (const CMath::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects, const CObjectInterface::ObjectSet &requestedObjects, CObjectInterface::UpdateSequence &updateSequence) |
~CMathDependencyGraph () | |
Private Member Functions | |
std::string | getDOTNodeId (const CObjectInterface *pObject) const |
Private Attributes | |
std::map< const CObjectInterface *, size_t > | mObject2Index |
NodeMap | mObjects2Nodes |
Definition at line 18 of file CMathDependencyGraph.h.
typedef NodeMap::const_iterator CMathDependencyGraph::const_iterator |
Definition at line 23 of file CMathDependencyGraph.h.
typedef NodeMap::iterator CMathDependencyGraph::iterator |
Definition at line 22 of file CMathDependencyGraph.h.
typedef std::map< const CObjectInterface *, CMathDependencyNode * > CMathDependencyGraph::NodeMap |
Definition at line 21 of file CMathDependencyGraph.h.
CMathDependencyGraph::CMathDependencyGraph | ( | ) |
Constructor
Definition at line 18 of file CMathDependencyGraph.cpp.
CMathDependencyGraph::~CMathDependencyGraph | ( | ) |
CMathDependencyGraph::iterator CMathDependencyGraph::addObject | ( | const CObjectInterface * | pObject | ) |
Add an object and all its prerequisites to the tree
const | CObjectInterface * pObject |
Definition at line 41 of file CMathDependencyGraph.cpp.
References CObjectInterface::getPrerequisites(), and mObjects2Nodes.
Referenced by CModel::buildDependencyGraphs(), and CMathContainer::createDependencyGraphs().
void CMathDependencyGraph::clear | ( | ) |
Clear the whole dependency tree
Definition at line 28 of file CMathDependencyGraph.cpp.
References mObjects2Nodes.
Referenced by CModel::buildDependencyGraphs(), and ~CMathDependencyGraph().
void CMathDependencyGraph::exportDOTFormat | ( | std::ostream & | os, |
const std::string & | name | ||
) | const |
Definition at line 191 of file CMathDependencyGraph.cpp.
References getDOTNodeId(), CObjectInterface::getObject(), mObject2Index, and mObjects2Nodes.
Referenced by CModel::buildDependencyGraphs(), CMathContainer::createDependencyGraphs(), and getUpdateSequence().
|
private |
Definition at line 230 of file CMathDependencyGraph.cpp.
References CMath::DependentMass, CMath::Discontinuous, CMath::EventAssignment, CMath::EventDelay, CMath::EventPriority, CMath::EventRoot, CMath::EventRootState, CMath::EventTrigger, CMath::Flux, CMathObject::getDataObject(), CCopasiObject::getObjectName(), CCopasiObject::getObjectParent(), CMathObject::getValueType(), mObject2Index, CMath::ParticleFlux, CMath::Propensity, CMath::Rate, CMath::TotalMass, CMath::Value, and CMath::ValueTypeUndefined.
Referenced by exportDOTFormat().
bool CMathDependencyGraph::getUpdateSequence | ( | const CMath::SimulationContextFlag & | context, |
const CObjectInterface::ObjectSet & | changedObjects, | ||
const CObjectInterface::ObjectSet & | requestedObjects, | ||
CObjectInterface::UpdateSequence & | updateSequence | ||
) |
Construct a update sequence for the given context
const | CMath::SimulationContextFlag & context |
const | CObjectInterface::ObjectSet & changedObjects |
const | CObjectInterface::ObjectSet & requestedObjects |
CObjectInterface::UpdateSequence | & updateSequence) |
Definition at line 70 of file CMathDependencyGraph.cpp.
References CCopasiMessage::ERROR, exportDOTFormat(), MCMathModel, and mObjects2Nodes.
Referenced by CMathContainer::createApplyInitialValuesSequence(), CMathContainer::createSynchronizeInitialValuesSequence(), CMathContainer::createUpdateSimulationValuesSequence(), and CModel::getUpdateSequence().
|
mutableprivate |
Definition at line 69 of file CMathDependencyGraph.h.
Referenced by exportDOTFormat(), and getDOTNodeId().
|
private |
Definition at line 67 of file CMathDependencyGraph.h.
Referenced by addObject(), clear(), exportDOTFormat(), and getUpdateSequence().