libSBML C++ API
5.20.4
|
Definition of DistribExtension. More...
Classes | |
class | DistribExtension |
Macros | |
#define | DISTRIB_CREATE_NS(variable, sbmlns) EXTENSION_CREATE_NS(DistribPkgNamespaces, variable, sbmlns); |
Typedefs | |
typedef SBMLExtensionNamespaces< DistribExtension > | DistribPkgNamespaces |
Required typedef definitions. More... | |
Enumerations | |
enum | SBMLDistribTypeCode_t { SBML_DISTRIB_UNCERTPARAMETER = 1500 , SBML_DISTRIB_UNCERTAINTY = 1501 , SBML_DISTRIB_UNCERTSTATISTICSPAN = 1502 , SBML_DISTRIB_DISTRIBBASE = 1503 } |
SBMLDistribTypeCode_t Enumeration of possible types in the libSBML “distrib” package implementation. More... | |
enum | UncertType_t { DISTRIB_UNCERTTYPE_DISTRIBUTION , DISTRIB_UNCERTTYPE_EXTERNALPARAMETER , DISTRIB_UNCERTTYPE_COEFFIENTOFVARIATION , DISTRIB_UNCERTTYPE_KURTOSIS , DISTRIB_UNCERTTYPE_MEAN , DISTRIB_UNCERTTYPE_MEDIAN , DISTRIB_UNCERTTYPE_MODE , DISTRIB_UNCERTTYPE_SAMPLESIZE , DISTRIB_UNCERTTYPE_SKEWNESS , DISTRIB_UNCERTTYPE_STANDARDDEVIATION , DISTRIB_UNCERTTYPE_STANDARDERROR , DISTRIB_UNCERTTYPE_VARIANCE , DISTRIB_UNCERTTYPE_CONFIDENCEINTERVAL , DISTRIB_UNCERTTYPE_CREDIBLEINTERVAL , DISTRIB_UNCERTTYPE_INTERQUARTILERANGE , DISTRIB_UNCERTTYPE_RANGE , DISTRIB_UNCERTTYPE_INVALID } |
Enumeration of values permitted as the value of the "uncerttype" attribute on Distrib objects. More... | |
Functions | |
UncertType_t | UncertType_fromString (const char *code) |
Returns the UncertType_t enumeration corresponding to the given string or DISTRIB_UNCERTTYPE_INVALID if there is no such match. More... | |
int | UncertType_isValid (UncertType_t ut) |
Predicate returning 1 (true) or 0 (false) depending on whether the given UncertType_t is valid. More... | |
int | UncertType_isValidString (const char *code) |
Predicate returning 1 (true) or 0 (false) depending on whether the given string is a valid UncertType_t. More... | |
const char * | UncertType_toString (UncertType_t ut) |
Returns the string version of the provided UncertType_t enumeration. More... | |
Definition of DistribExtension.
#define DISTRIB_CREATE_NS | ( | variable, | |
sbmlns | |||
) | EXTENSION_CREATE_NS(DistribPkgNamespaces, variable, sbmlns); |
Required typedef definitions.
DistribPkgNamespace is derived from SBMLNamespaces class and used when creating an object of SBase derived classes defined in the distrib package
SBMLExtensionNamespaces<DistribExtension> must be instantiated in DistribExtension.cpp for DLL
SBMLDistribTypeCode_t Enumeration of possible types in the libSBML “distrib” package implementation.
SBML_
. The set of possible type codes for core elements is defined in the enumeration SBMLTypeCode_t, and in addition, libSBML plug-ins for SBML Level 3 packages define their own extra enumerations of type codes (e.g., SBMLLayoutTypeCode_t for the Level 3 Layout package). Note that different Level 3 package plug-ins may use overlapping type codes; to identify the package to which a given object belongs, call the SBase::getPackageName()
method on the object.The exception to this is lists: all SBML-style list elements have the type SBML_LIST_OF, regardless of what package they are from.
SBMLLayoutTypeCode_t
for the SBML Level 3 Layout extension, SBMLFbcTypeCode_t
for the SBML Level 3 Flux Balance Constraints extension, etc.).NULL
if the value you give it is actually from a package.The following example code illustrates the combined use of SBase::getPackageName() and SBase::getTypeCode():
Enumerator | |
---|---|
SBML_DISTRIB_UNCERTPARAMETER | |
SBML_DISTRIB_UNCERTAINTY | |
SBML_DISTRIB_UNCERTSTATISTICSPAN | |
SBML_DISTRIB_DISTRIBBASE |
enum UncertType_t |
Enumeration of values permitted as the value of the "uncerttype" attribute on Distrib objects.
UncertType_t UncertType_fromString | ( | const char * | code | ) |
Returns the UncertType_t enumeration corresponding to the given string or DISTRIB_UNCERTTYPE_INVALID if there is no such match.
code | the string to convert to a UncertType_t. |
int UncertType_isValid | ( | UncertType_t | ut | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given UncertType_t is valid.
ut | the UncertType_t enumeration to query. |
1
(true) if the UncertType_t is DISTRIB_UNCERTTYPE_DISTRIBUTION, DISTRIB_UNCERTTYPE_EXTERNALPARAMETER, DISTRIB_UNCERTTYPE_COEFFIENTOFVARIATION, DISTRIB_UNCERTTYPE_KURTOSIS, DISTRIB_UNCERTTYPE_MEAN, DISTRIB_UNCERTTYPE_MEDIAN, DISTRIB_UNCERTTYPE_MODE, DISTRIB_UNCERTTYPE_SAMPLESIZE, DISTRIB_UNCERTTYPE_SKEWNESS, DISTRIB_UNCERTTYPE_STANDARDDEVIATION, DISTRIB_UNCERTTYPE_STANDARDERROR, DISTRIB_UNCERTTYPE_VARIANCE, DISTRIB_UNCERTTYPE_CONFIDENCEINTERVAL, DISTRIB_UNCERTTYPE_CREDIBLEINTERVAL, DISTRIB_UNCERTTYPE_INTERQUARTILERANGE, or DISTRIB_UNCERTTYPE_RANGE; 0
(false) otherwise (including DISTRIB_UNCERTTYPE_INVALID). int UncertType_isValidString | ( | const char * | code | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given string is a valid UncertType_t.
code | the string to query. |
1
(true) if the string is "distribution", "externalParameter", "coeffientOfVariation", "kurtosis", "mean", "median", "mode", "sampleSize", "skewness", "standardDeviation", "standardError", "variance", "confidenceInterval", "credibleInterval", "interquartileRange", "range", or "invalid UncertType value"; 0
(false) otherwise.1
(true), but "Distribution" will return 0
(false). const char* UncertType_toString | ( | UncertType_t | ut | ) |
Returns the string version of the provided UncertType_t enumeration.
ut | the UncertType_t enumeration value to convert. |
NULL
if the value is DISTRIB_UNCERTTYPE_INVALID or another invalid enumeration value.