Chapter 2Simulation Infrastructure
Among designers of real-time software, there is a tendency to shun object-oriented programming in C++ in favor of hand-optimized programming in a mix of C and assembly. Because they often involve very short sampling intervals and very long durations, simulations can take a long time to execute. The lengthy execution time creates an incentive to apply runtime optimization techniques to simulation programs. However, simulation tools also need to be convenient and easy to use correctly. When designing the simulation software for this book, the convenience and robustness of an object-oriented approach won out over execution speed advantages potentially offered by other approaches.
2.1 Parameter Input