Construction and Use of a Simulation Package in C

MC Little, DL McCue

1993 · 44 citations · 0 references

Concepts

Abstract

We have designed and built a simulation package in C++ which provides discrete process based simulation similar to SIMULA's simulation class and libraries. Inheritence was used throughout the design to an even greater extent than is already provided by SIMULA. This has allowed us to add new functionality without affecting the overall system structure, and hence provides for a more flexible and expandable simulation package. This paper describes the class hierarchy which we have created, and indicates how it can be used to further refine the simulation package. An example of the use of the simulation package is presented along with the results obtained. Keywords: simulation, object-orientation, C++, SIMULA * The software to be described in this paper is available via anonymous ftp from arjuna.ncl.ac.uk 2 1. Introduction This paper describes the steps which we have taken when designing and building a simulation package in C++[Stroustrup 86]. Our package (C++SIM) provides discrete proce...