Trigger.h File Reference

Detailed Description

Definition of Trigger.

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

Functions

Trigger_t * Trigger_clone (const Trigger_t *t)
Trigger_t * Trigger_create (unsigned int level, unsigned int version)
 Creates a new Trigger_t structure using the given SBML level and version values.
Trigger_t * Trigger_createWithNS (SBMLNamespaces_t *sbmlns)
 Creates a new Trigger_t structure using the given SBMLNamespaces_t structure.
void Trigger_free (Trigger_t *t)
 Frees the given Trigger.
int Trigger_getInitialValue (const Trigger_t *t)
 Get the value of the "initialValue" attribute of this Trigger.
const ASTNode_t * Trigger_getMath (const Trigger_t *t)
const XMLNamespaces_t * Trigger_getNamespaces (Trigger_t *c)
 Returns a list of XMLNamespaces_t associated with this Trigger_t structure.
int Trigger_getPersistent (const Trigger_t *t)
 Get the value of the "persistent" attribute of this Trigger.
int Trigger_hasRequiredAttributes (Trigger_t *t)
 Predicate returning true or false depending on whether all the required attributes for this Trigger object have been set.
int Trigger_hasRequiredElements (Trigger_t *t)
 Predicate returning true or false depending on whether all the required elements for this Trigger object have been set.
int Trigger_isSetInitialValue (const Trigger_t *t)
 Return true if the "initialValue" attribute of this Trigger is set.
int Trigger_isSetMath (const Trigger_t *t)
int Trigger_isSetPersistent (const Trigger_t *t)
 Return true if the "persistent" attribute of this Trigger is set.
int Trigger_setInitialValue (Trigger_t *t, int initialValue)
 Sets the "initialValue" attribute of this Trigger instance.
int Trigger_setMath (Trigger_t *t, const ASTNode_t *math)
 Sets the math of this Trigger to a copy of the given ASTNode.
int Trigger_setPersistent (Trigger_t *t, int persistent)
 Sets the "persistent" attribute of this Trigger instance.

Function Documentation

Trigger_t* Trigger_clone ( const Trigger_t *  t)
Returns:
a (deep) copy of this Trigger.
Trigger_t* Trigger_create ( unsigned int  level,
unsigned int  version 
)

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

Parameters:
levelan unsigned int, the SBML Level to assign to this Trigger
versionan unsigned int, the SBML Version to assign to this Trigger
Returns:
a pointer to the newly created Trigger_t structure.
Note:
Once a Trigger has been added to an SBMLDocument, the level and version for the document override those used to create the Trigger. 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.
Trigger_t* Trigger_createWithNS ( SBMLNamespaces_t *  sbmlns)

Creates a new Trigger_t structure using the given SBMLNamespaces_t structure.

Parameters:
sbmlnsSBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this Trigger
Returns:
a pointer to the newly created Trigger_t structure.
Note:
Once a Trigger has been added to an SBMLDocument, the sbmlns namespaces for the document override those used to create the Trigger. 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 Trigger_free ( Trigger_t *  t)

Frees the given Trigger.

int Trigger_getInitialValue ( const Trigger_t *  t)

Get the value of the "initialValue" attribute of this Trigger.

Parameters:
tthe Trigger_t structure
Returns:
the "initialValue" attribute value in this Trigger.
const ASTNode_t* Trigger_getMath ( const Trigger_t *  t)
Returns:
the math of this Trigger.
const XMLNamespaces_t* Trigger_getNamespaces ( Trigger_t *  t)

Returns a list of XMLNamespaces_t associated with this Trigger_t structure.

Parameters:
tthe Trigger_t structure
Returns:
pointer to the XMLNamespaces_t structure associated with this SBML object
int Trigger_getPersistent ( const Trigger_t *  t)

Get the value of the "persistent" attribute of this Trigger.

Parameters:
tthe Trigger_t structure
Returns:
the "persistent" attribute value in this Trigger.
int Trigger_hasRequiredAttributes ( Trigger_t *  t)

Predicate returning true or false depending on whether all the required attributes for this Trigger object have been set.

Note:
The required attributes for a Trigger object are:
  • persistent ( L3 onwards )
  • initialValue ( L3 onwards )
int Trigger_hasRequiredElements ( Trigger_t *  t)

Predicate returning true or false depending on whether all the required elements for this Trigger object have been set.

Note:
The required elements for a Trigger object are:
  • math
int Trigger_isSetInitialValue ( const Trigger_t *  t)

Return true if the "initialValue" attribute of this Trigger is set.

Parameters:
tthe Trigger_t structure
Returns:
true if the "initialValue" attribute value in this Trigger is set, false otherwise.
int Trigger_isSetMath ( const Trigger_t *  t)
Returns:
true (non-zero) if the math (or equivalently the formula) of this Trigger is set, false (0) otherwise.
int Trigger_isSetPersistent ( const Trigger_t *  t)

Return true if the "persistent" attribute of this Trigger is set.

Parameters:
tthe Trigger_t structure
Returns:
true if the "persisent" attribute value in this Trigger is set, false otherwise.
int Trigger_setInitialValue ( Trigger_t *  t,
int  initialValue 
)

Sets the "initialValue" attribute of this Trigger instance.

Parameters:
tthe Trigger_t structure
initialValuea boolean representing the initialValue to be set.
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:
int Trigger_setMath ( Trigger_t *  t,
const ASTNode_t *  math 
)

Sets the math of this Trigger to a copy of the given ASTNode.

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
int Trigger_setPersistent ( Trigger_t *  t,
int  persistent 
)

Sets the "persistent" attribute of this Trigger instance.

Parameters:
tthe Trigger_t structure
persistenta boolean representing the initialValue to be set.
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:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines