COPASI API
4.16.103
|
#include <Expression2PresentationMMLUnits.h>
Public Member Functions | |
Expression2PresentationMMLUnits (const ASTNode *rootnode) | |
std::string | getMathML (const CSBMLunitInformation &ui) const |
void | setUnitInterface (CSBMLunitInterface *unitInterface, CSBMLunitInterface *unitInterface2) |
![]() | |
Expression2PresentationMML (const ASTNode *rootnode) | |
void | setModel (const Model *m) |
void | setReaction (const Reaction *m) |
void | setUseReactionNameInLocalParameters (bool b) |
void | writeMathML (std::ostream &out) const |
virtual | ~Expression2PresentationMML () |
Protected Member Functions | |
std::string | getMathML (const UnitDefinition &ud) const |
std::string | getMathML (const Unit *u, bool absExp) const |
void | writeMathMLBox (std::ostream &out, const std::string &a, const std::string &b, const std::string &color, size_t l) const |
void | writeMathMLBox (std::ostream &out, const std::string &a, const std::string &b, const std::string &c, const std::string &color, size_t l) const |
virtual void | writeMathMLName (std::ostream &out, const ASTNode *node, size_t l) const |
virtual void | writeMathMLNumber (std::ostream &out, const ASTNode *node, size_t l) const |
![]() | |
void | writeMathML (std::ostream &out, const ASTNode *node, size_t l) const |
virtual void | writeMathMLFunction (std::ostream &out, const ASTNode *node, size_t l) const |
Protected Attributes | |
CSBMLunitInterface * | mpUnitInterface |
CSBMLunitInterface * | mpUnitInterface2 |
![]() | |
const Model * | mpModel |
const Reaction * | mpReaction |
const ASTNode * | mRootNode |
bool | mUseReactionNameInLocalParameters |
Definition at line 24 of file Expression2PresentationMMLUnits.h.
Expression2PresentationMMLUnits::Expression2PresentationMMLUnits | ( | const ASTNode * | rootnode | ) |
Definition at line 18 of file Expression2PresentationMMLUnits.cpp.
std::string Expression2PresentationMMLUnits::getMathML | ( | const CSBMLunitInformation & | ui | ) | const |
Definition at line 115 of file Expression2PresentationMMLUnits.cpp.
References CSBMLunitInformation::DEFAULT, CSBMLunitInformation::DERIVED, CSBMLunitInformation::getInfo(), CSBMLunit::getSBMLUnitDefinition(), CSBMLunit::getSymbolicExpExp(), CSBMLunit::getSymbolicExponent(), CSBMLunitInformation::GLOBAL, CSBMLunitInformation::isConflict(), CSBMLunitInformation::PROVIDED, and CSBMLunitInformation::UNKNOWN.
Referenced by getMathML(), writeMathMLName(), and writeMathMLNumber().
|
protected |
Definition at line 192 of file Expression2PresentationMMLUnits.cpp.
References getMathML().
|
protected |
void Expression2PresentationMMLUnits::setUnitInterface | ( | CSBMLunitInterface * | unitInterface, |
CSBMLunitInterface * | unitInterface2 | ||
) |
sets the unit interface to the SBML model so that the units can be displayed. this implicitly also handles setting the model
Definition at line 24 of file Expression2PresentationMMLUnits.cpp.
References CSBMLunitInterface::getModel(), Expression2PresentationMML::mpModel, mpUnitInterface, and mpUnitInterface2.
|
protected |
write the mathML for a box that is used to display an object identifier + its unit information a and b are mathML strings
Definition at line 159 of file Expression2PresentationMMLUnits.cpp.
References SPC.
Referenced by writeMathMLName(), and writeMathMLNumber().
|
protected |
Definition at line 173 of file Expression2PresentationMMLUnits.cpp.
References SPC.
|
protectedvirtual |
Reimplemented from Expression2PresentationMML.
Definition at line 33 of file Expression2PresentationMMLUnits.cpp.
References CSBMLunitInterface::getListOfConflictingNodes(), CSBMLunitInterface::getMappedUnitFromIdentifier(), getMathML(), CSBMLunitInformation::isEqual(), Expression2PresentationMML::mpReaction, mpUnitInterface, mpUnitInterface2, writeMathMLBox(), and Expression2PresentationMML::writeMathMLName().
|
protectedvirtual |
Reimplemented from Expression2PresentationMML.
Definition at line 74 of file Expression2PresentationMMLUnits.cpp.
References CSBMLunitInterface::getListOfConflictingNodes(), CSBMLunitInterface::getMappedUnitFromNumberNode(), getMathML(), mpUnitInterface, mpUnitInterface2, writeMathMLBox(), and Expression2PresentationMML::writeMathMLNumber().
|
protected |
Definition at line 55 of file Expression2PresentationMMLUnits.h.
Referenced by setUnitInterface(), writeMathMLName(), and writeMathMLNumber().
|
protected |
Definition at line 56 of file Expression2PresentationMMLUnits.h.
Referenced by setUnitInterface(), writeMathMLName(), and writeMathMLNumber().