|
libSBML C++ API
libSBML 5.10.0 C++ API
|
NULL if no units have been declared.Note that unit declarations for LocalParameter objects are specified in terms of the identifier of a unit (e.g., using setUnits()), but this method returns a UnitDefinition object, not a unit identifier. It does this by constructing an appropriate UnitDefinition. For SBML Level 2 models, it will do this even when the value of the "units" attribute is one of the predefined SBML units "substance", "volume", "area", "length" or "time". Callers may find this useful in conjunction with the helper methods provided by the UnitDefinition class for comparing different UnitDefinition objects.