Next: Using the Assembler Preprocessor, Previous: Memory Efficient Cloning the Probability Profile, Up: Assembler Programs [Contents][Index]

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`:- – if the node is a probability profile user, then break off its correspondence with the node that acts as a probability profile source;
- – unload statistics collected on the event history for the node;
- – unload the probability profile of the node;
- – if an assembler program is loaded into the node, then unload information on controlled and output probability variables defined in the assembler program;
- – if an assembler program is loaded into the node, then unload information about names assigned to states of the assembler program;
- – unload an assembler program template used for disassembling;
- – destroy the cache of values of output probability variables.

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.