Appendix 2AEXAMPLE SOURCE CODE

The support directory on the companion Web site contains the classes that implement the PracSim simulation infrastructure. A number of these classes are listed in Table 2A.1. In addition to the items listed, the support directory also contains I/O support routines for the enumerated types presented in Section 2.1.3.

Table 2A.1 Classes in the support directory.

Image

2A.1 PracSimModel

Every model in PracSim inherits from the base class PracSimModel. The header for PracSimModel is provided in Listings 2A.1, and implementations for the various methods are provided in Listing 2A.2 through 2A.4.

Listing 2A.1 Header for ...

Get Simulating Wireless Communication Systems: Practical Models In C++ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.