Next: , Previous: , Up: Assembler Programs   [Contents][Index]


5.13 Unloading the Probability Profile

To unload statistics and a probability profile from a node, use the function described below.

Function: int qsmm_node_unload (qsmm_t model, int node)

This function performs the following operations on a node of a multinode model specified by handle model:

Argument node specifies the identifier of the node.

The function returns a non-negative value on success or a negative error code on failure. Currently, the following error codes can be returned.

QSMM_ERR_NOTFOUND

A node with identifier node does not exist.

QSMM_ERR_PROFSRCP

A node with identifier node is a source of probability profile for other nodes.

QSMM_ERR_UNTIMELY

The model instance does not exist.

QSMM_ERR_STORAGE

Statistics storage failure. This could leave the model instance in indeterminate state. If the model instance is in indeterminate state, then after removing a reason of the error, the operation can be repeated, and if the function succeeds, then the model instance state will become determinate.

QSMM_ERR_NOMEM

There was not enough memory to perform the operation. This could leave the model instance in indeterminate state. If the model instance is in indeterminate state, then after removing a reason of the error, the operation can be repeated, and if the function succeeds, then the model instance state will become determinate.


Next: , Previous: , Up: Assembler Programs   [Contents][Index]