file name: dmsgtemp.hpp
classification: simulation
contents: class CDelayList, struct SDelayMcb, struct SDelayRecvMcb,
struct SDelaySendMcb
derived from: class ACSortedArray
use: a list class for storing pointers to objects of type SDelayMcb
with a sort key of type double; duplicates are allowed
Note: the list class was generated from duptemp.hpp,
and its functions have the same behaviour as those of the base class.
A new function was added, which was not tested:
SDelayMcb*
RemoveFirst (): Removes and returnes the first object from the list.
If the list is empty, NULL is returned.
struct
SDelayMcb: used for storing messages together with their delivery times.
The stucture contains either a send or a receive message, thus the sendData
and receiveData structures are grouped in a union and the send
member is used to decide between them.
- EBool send: is True if the message is delayed on send,
False is the message is delayed on reception
- double deliveryTime: the time of delivery, which is also used
as the sort key in the list
struct
SRecvDelayMcb: derived from SDelayMcb. The structure is used
to store incoming messages. The inherited member send must be
set to False.
- renvx *renv: the message envelope (local copy).
- bufx*buf: the message buffer (local copy).
- INT16 size: the buffer size.
- int if_num: the number of the network interface.
struct
SSendDelayMcb: derived from SDelayMcb. The structure is used
to store outgoing messages. The inherited member send must be
set to True.
- int mode: the mode for ci_send().
- tenvx *tenv: the message envelope (local copy).
- char *msg: the message buffer (local copy).
- INT16 msgsize: the buffer size.
- int if_num: the number of the network interface.
- int area: the area of the application.
global items used:
last modified: Fri Feb 5 18:56:11 1999