Delay.h File Reference

Detailed Description

Definition of Delay.

Author:
Sarah Keating
Include dependency graph for Delay.h:
This graph shows which files directly or indirectly include this file:

Functions

Delay_t * Delay_clone (const Delay_t *d)
 Creates and returns a deep copy of the given Delay_t structure.
int Delay_containsUndeclaredUnits (Delay_t *d)
 Predicate returning true or false depending on whether the math expression of this Delay_t contains parameters/numbers with undeclared units.
Delay_t * Delay_create (unsigned int level, unsigned int version)
 Creates a new Delay_t structure using the given SBML level and version values.
Delay_t * Delay_createWithNS (SBMLNamespaces_t *sbmlns)
 Creates a new Delay_t structure using the given SBMLNamespaces_t structure.
void Delay_free (Delay_t *d)
 Frees the given Delay_t structure.
UnitDefinition_t * Delay_getDerivedUnitDefinition (Delay_t *d)
 Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this Delay_t.
const ASTNode_t * Delay_getMath (const Delay_t *d)
 Get the mathematical formula for a Delay_t structure and return it as as an ASTNode structure.
const XMLNamespaces_t * Delay_getNamespaces (Delay_t *c)
 Returns a list of XMLNamespaces_t associated with this Delay_t structure.
int Delay_isSetMath (const Delay_t *d)
 Predicate to test whether the formula for the given Delay_t structure is set.
int Delay_setMath (Delay_t *d, const ASTNode_t *math)
 Sets the delay expression of the given Delay_t instance to a copy of the given ASTNode_t structure.

Function Documentation

Delay_t* Delay_clone ( const Delay_t *  t)

Creates and returns a deep copy of the given Delay_t structure.

Parameters:
tthe Delay_t structure to copy.
Returns:
a (deep) copy of the given Delay_t structure t.
int Delay_containsUndeclaredUnits ( Delay_t *  d)

Predicate returning true or false depending on whether the math expression of this Delay_t contains parameters/numbers with undeclared units.

Returns:
true if the math expression of this Delay_t includes parameters/numbers with undeclared units, false otherwise.
Note:
a return value of true indicates that the UnitDefinition_t returned by the getDerivedUnitDefinition function may not accurately represent the units of the expression.
See also:
Delay_getDerivedUnitDefinition()
Delay_t* Delay_create ( unsigned int  level,
unsigned int  version 
)

Creates a new Delay_t structure using the given SBML level and version values.

Parameters:
levelan unsigned int, the SBML Level to assign to this Delay
versionan unsigned int, the SBML Version to assign to this Delay
Returns:
a pointer to the newly created Delay_t structure.
Note:
Once a Delay has been added to an SBMLDocument, the level and version for the document override those used to create the Delay. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument.
Delay_t* Delay_createWithNS ( SBMLNamespaces_t *  sbmlns)

Creates a new Delay_t structure using the given SBMLNamespaces_t structure.

Parameters:
sbmlnsSBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this Delay
Returns:
a pointer to the newly created Delay_t structure.
Note:
Once a Delay has been added to an SBMLDocument, the sbmlns namespaces for the document override those used to create the Delay. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument.
void Delay_free ( Delay_t *  t)

Frees the given Delay_t structure.

Parameters:
tthe Delay_t structure to free.
UnitDefinition_t* Delay_getDerivedUnitDefinition ( Delay_t *  d)

Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this Delay_t.

Returns:
a UnitDefinition_t that expresses the units of the math expression of this Delay_t.

Note that the functionality that facilitates unit analysis depends on the model as a whole. Thus, in cases where the object has not been added to a model or the model itself is incomplete, unit analysis is not possible and this method will return NULL.

Note:
The units are calculated by applying the mathematics from the expression to the units of the <ci> elements used within the expression. Where there are parameters/numbers with undeclared units the UnitDefinition_t returned by this function may not accurately represent the units of the expression.
See also:
Delay_containsUndeclaredUnits()
const ASTNode_t* Delay_getMath ( const Delay_t *  t)

Get the mathematical formula for a Delay_t structure and return it as as an ASTNode structure.

Parameters:
tthe Delay_t structure to query.
Returns:
an ASTNode_t structure representing the expression tree.
const XMLNamespaces_t* Delay_getNamespaces ( Delay_t *  d)

Returns a list of XMLNamespaces_t associated with this Delay_t structure.

Parameters:
dthe Delay_t structure
Returns:
pointer to the XMLNamespaces_t structure associated with this SBML object
int Delay_isSetMath ( const Delay_t *  t)

Predicate to test whether the formula for the given Delay_t structure is set.

Parameters:
tthe Delay_t structure to query
Returns:
true if the formula (meaning the math subelement) of this Delay is set, false otherwise.
int Delay_setMath ( Delay_t *  t,
const ASTNode_t *  math 
)

Sets the delay expression of the given Delay_t instance to a copy of the given ASTNode_t structure.

Parameters:
tthe Delay_t structure to set.
mathan ASTNode representing a formula tree.
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines