next up previous
Next: BEGINSCAN repeats the scanning Up: PROCEDURES Previous: PROCEDURES

ACT schedules a future activation of a node

Syntax:

    ACT(<node name>, <real expression>);
It is used to schedule a node activation in a future time.

<node name> is the name of the node to be activated.
<real expression> is a real expression whose value indicates the time from now until the future activation.

When this instruction is executed, a future event is put in the FEL. The event node is the indicated by <node name> . The time of the event is TIME+<real expression>. Here TIME is the system variable that contains the value of the actual simulation time.
The index and the event parameter of the event are the actual values of the variables INO and IEV respectively.

This procedure can be used in nodes of any type.

Examples:

    ACT(SubwayDepart, 0);  ACT(Controller, 7);
    FOR i := 1 TO 8 DO ACT(Arrivals[i], EXPO(TMBarr[i]);
The components of the multiple node Arrivals are activated for future times taken from an exponential distribution with mean values depending on the node.



domingo c
Mon Mar 20 17:37:52 PST 2000