ABSTRACT

This chapter presents a detailed explanation about the simulation algorithms for Discrete Event systems Specification (DEVS) and their implementation in the CD++ simulation engine. It shows how different simulation engines can be created based on these algorithms, including a stand-alone version, a parallel simulation algorithm, a distributed simulator, and a real-time engine. The chapter describes how to use wrappers on DEVS simulators to permit operability between different existing DEVS tools and introduces the different existing simulators available for CD++. It explores the basic simulation algorithms for single-processor DEVS models and explains in detail how these simulation algorithms are implemented in the stand-alone version of CD++, including the definition of DEVS and Cell-DEVS models. The main idea of DEVS abstract simulation algorithms is to create a hierarchy of execution engines based on the modeling hierarchy created by the user. AtomicCell is an abstract class derived from atomic to define Cell-DEVS models.