next up previous
Next: FIFO puts the message Up: PROCEDURES Previous: ENDSIMUL ends the simulation

EXTFEL extracts an event from the FEL

Syntax:

    EXTFEL(<node name>, <time>, <index>, <event parameter>);
It is used to extract an event from the Future Event List. Parameters of the instruction are the elements (fields) of the event to be extracted.
<node name>, is the name of the node which the event points to. It must be explicitly indicated.
<time>, is a real expression whose value is the time of the event. If it is negative, it is not taken into account.
<index>, is the index of the node. If it is 0, it is not taken into account.
<parameter> is the event parameter. If it is 0, it is not taken into account.

This procedure can be used in nodes of any type.

The first event (if any) found with the specified values is destroyed and used memory released.

Example:

 Avenue (R) Exit ::
 ---------------------------------
 Accident (A) :: EXTFEL(Avenue, TimeExit, 0, 0);
The first event, that schedules the exit of the IL of Avenue that has an scheduled exit time equals to TimeExit, is eliminated.



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