|
COPASI API
4.40.278
|
#include <CSBMLunit.h>
Public Types | |
| enum | INFO { UNKNOWN = 0 , DEFAULT , GLOBAL , PROVIDED , DERIVED } |
| this enum encodes the status of a units information More... | |
Public Member Functions | |
| CSBMLunitInformation (const CSBMLunit &u, INFO info, bool conflict=false) | |
| CSBMLunitInformation (const UnitDefinition *ud, INFO info, bool conflict=false) | |
| CSBMLunitInformation (unsigned int sbmlLevel, unsigned int sbmlVersion) | |
| Default constructor. More... | |
| CSBMLunitInformation (unsigned int sbmlLevel, unsigned int sbmlVersion, INFO info, bool conflict=false) | |
| virtual std::string | getDisplayString () const |
| INFO | getInfo () const |
| get the status information More... | |
| bool | isConflict () const |
| retrieve the conflict flag More... | |
| void | setConflict (bool c) |
| set the conflict flag More... | |
| void | setInfo (INFO info) |
| set the status information More... | |
Public Member Functions inherited from CSBMLunit | |
| void | applyExponent (const std::string &id, size_t frame) |
| apply symbolic exponent to the unit More... | |
| void | applyExponent (double exp) |
| apply numeric exponent to the unit. More... | |
| void | applyInverseExponent (const std::string &id, size_t frame) |
| apply inverse of symbolic exponent to the unit More... | |
| CSBMLunit (const CSBMLunit &src) | |
| Copy constructor. More... | |
| CSBMLunit (const UnitDefinition *ud) | |
| Constructor from libsbml units. More... | |
| CSBMLunit (unsigned int sbmlLevel, unsigned int sbmlVersion) | |
| Default constructor. More... | |
| UnitDefinition & | getSBMLUnitDefinition () |
| const UnitDefinition & | getSBMLUnitDefinition () const |
| int | getSymbolicExpExp () const |
| const std::string & | getSymbolicExponent () const |
| void | invert () |
| bool | isDimensionless () const |
| bool | multiply (const CSBMLunit &unit) |
| virtual | ~CSBMLunit () |
Static Public Member Functions | |
| static bool | isEqual (const CSBMLunitInformation &unit1, const CSBMLunitInformation &unit2) |
Static Public Member Functions inherited from CSBMLunit | |
| static bool | isEqual (const CSBMLunit &unit1, const CSBMLunit &unit2) |
Private Attributes | |
| bool | mConflict |
| indicated whether a conflict occurred while trying to determine the unit. More... | |
| INFO | mInfo |
This class contains one unit definition plus some meta information, e.g. whether the unit was provided or calculated, if it is unknown or if there is a conflict.
this enum encodes the status of a units information
| CSBMLunitInformation::CSBMLunitInformation | ( | unsigned int | sbmlLevel, |
| unsigned int | sbmlVersion | ||
| ) |
Default constructor.
| CSBMLunitInformation::CSBMLunitInformation | ( | unsigned int | sbmlLevel, |
| unsigned int | sbmlVersion, | ||
| INFO | info, | ||
| bool | conflict = false |
||
| ) |
| CSBMLunitInformation::CSBMLunitInformation | ( | const CSBMLunit & | u, |
| INFO | info, | ||
| bool | conflict = false |
||
| ) |
| CSBMLunitInformation::CSBMLunitInformation | ( | const UnitDefinition * | ud, |
| INFO | info, | ||
| bool | conflict = false |
||
| ) |
|
virtual |
Reimplemented from CSBMLunit.
References DEFAULT, DERIVED, CSBMLunit::getDisplayString(), GLOBAL, mConflict, mInfo, PROVIDED, and UNKNOWN.
Referenced by CSBMLunitInterface::debugOutput(), and CSBMLunitInterface::determineUnits().
|
inline |
get the status information
References mInfo.
Referenced by Expression2PresentationMMLUnits::getMathML(), CSBMLunitInterface::handleOneExpression(), CSBMLunitInterface::handleTerminalNode(), CSBMLunitInterface::initializeFromSBMLModel(), CSBMLunitInterface::recursionDivide(), CSBMLunitInterface::recursionEqual(), CSBMLunitInterface::recursionPiecewise(), CSBMLunitInterface::recursionPower(), CSBMLunitInterface::recursionTimes(), and CSBMLunitInterface::writeBackToModel().
|
inline |
retrieve the conflict flag
References mConflict.
Referenced by Expression2PresentationMMLUnits::getMathML(), and CSBMLunitInterface::handleTerminalNode().
|
static |
References CSBMLunit::isEqual(), mConflict, and mInfo.
Referenced by Expression2PresentationMMLUnits::writeMathMLName().
|
inline |
|
inline |
set the status information
References mInfo.
Referenced by CSBMLunitInterface::handleTerminalNode(), CSBMLunitInterface::initializeFromSBMLModel(), CSBMLunitInterface::recursion(), CSBMLunitInterface::recursionDivide(), CSBMLunitInterface::recursionPower(), and CSBMLunitInterface::recursionTimes().
|
private |
indicated whether a conflict occurred while trying to determine the unit.
Referenced by getDisplayString(), isConflict(), isEqual(), and setConflict().
|
private |
Referenced by getDisplayString(), getInfo(), isEqual(), and setInfo().