index previous next




file name: sim_glob.hpp, sim_glob.cpp
classification: pure simulation
contents: contains three global list variables only needed in simulation, and function InstallNetworks()
use: the lists store pointers to simulation objects, which are needed for pure simulation; InstallNetworks() is used to add new network types in pure simulation


global items used:


global variables:

 CClockList listOfClocks: A list of all clocks. Clocks are accessed with the key (nodeID, area). The list is needed by the network to obtain the clock value of a certain node (for timestamping messages).

 CLanceList listOfLances: A list of all lances. Lances are accessed with the key (nodeID, area). The list is used by the network to deliver a message to all Lance objects of the receiver node.

 CNetworkList listOfNetworks: A list of all networks. Networks are accessed with the key (networkID). The list is needed by the (software) controller to store and handle the networks.

 CNetworkManager networkManager: the manager object that returns the creation function of a given network type.


global functions:

 void InstallNetworks(): Installs all networks known in the system. The function must be called in main() before the simulation controller is created.


last modified: Fri Feb 5 18:56:33 1999