libSBML Perl API  libSBML 5.10.0 Perl API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
doc_warning_eventassignment_math_literals Class Reference

Detailed Description

Warning
Note that it is possible the "math" expression in the EventAssignment contains literal numbers or parameters with undeclared units. In those cases, it is not possible to calculate the units of the overall expression without making assumptions. LibSBML does not make assumptions about the units, and EventAssignment::getDerivedUnitDefinition() only returns the units as far as it is able to determine them. For example, in an expression X + Y, if X has unambiguously-defined units and Y does not, it will return the units of X. When using this method, it is critical that callers also invoke the method EventAssignment::containsUndeclaredUnits() to determine whether this situation holds. Callers should take suitable action in those situations.
Note that it is possible the "math" expression in the EventAssignment contains literal numbers or parameters with undeclared units. In those cases, it is not possible to calculate the units of the overall expression without making assumptions. LibSBML does not make assumptions about the units, and EventAssignment::getDerivedUnitDefinition() only returns the units as far as it is able to determine them. For example, in an expression X + Y, if X has unambiguously-defined units and Y does not, it will return the units of X. When using this method, it is critical that callers also invoke the method EventAssignment::containsUndeclaredUnits() to determine whether this situation holds. Callers should take suitable action in those situations.