ucvalue

Description

Function ucvalue can be used in expressions throughout the scheduling model.

Synopsis


#include "factor.h"

double ucvalue(icase, argvalue, type)

int  icase;   /* Integer parameter to function. */
void * argvalue; /* Pointer to the second argument. */
char  type;   /* Type of the second argument. */

Returns

Value to use in expression.

Note: This function can be used to compute simple values or do more complex functions. A reference to ucvalue is placed in a system expression. This reference has 2 parameters: 1) iCase, an integer (corresponds with icase defined above) and 2) express, an expression. The user then writes a ucvalue function with 3 parameters: 1) icase, upon which the function will branch (switch, if-then-else, etc.) if there are multiple different ucvalue references in expressions, 2) argvalue, the result of an evaluation of the expression (express), and 3) type, the type of the expression (‘R’ = double*, ‘I’ = int*, ‘S’ = char*).
Note: The value argvalue will never be “NULL” or (void *)NULL.