Book Image

The Complete Edition - Software Engineering for Real-Time Systems

By : Jim Cooling
Book Image

The Complete Edition - Software Engineering for Real-Time Systems

By: Jim Cooling

Overview of this book

From air traffic control systems to network multimedia systems, real-time systems are everywhere. The correctness of the real-time system depends on the physical instant and the logical results of the computations. This book provides an elaborate introduction to software engineering for real-time systems, including a range of activities and methods required to produce a great real-time system. The book kicks off by describing real-time systems, their applications, and their impact on software design. You will learn the concepts of software and program design, as well as the different types of programming, software errors, and software life cycles, and how a multitasking structure benefits a system design. Moving ahead, you will learn why diagrams and diagramming plays a critical role in the software development process. You will practice documenting code-related work using Unified Modeling Language (UML), and analyze and test source code in both host and target systems to understand why performance is a key design-driver in applications. Next, you will develop a design strategy to overcome critical and fault-tolerant systems, and learn the importance of documentation in system design. By the end of this book, you will have sound knowledge and skills for developing real-time embedded systems.
Table of Contents (16 chapters)
Preface
15
Glossary of terms

4.5 Object-Oriented Design

4.5.1 An Introduction

It has already been shown in Section 4.1, Design Fundamentals, that designs may be structured as sets of interconnected objects. In the example given (Figure 4.7), the computing objects were clearly linked with physical items. Generally, though, objects don't have such a clear-cut relationship. Mostly they are abstract items that represent computing processes within the system. In formal terms, an object, as far as OO Design (OOD) is concerned, may be defined as:

"A software machine that has a number of defined operational states and a defined means to access and change these states."

A change of state is achieved by passing a message into an object, as shown conceptually in Figure 4.43(a). So, in simple terms, an object-structured program executes as a set of interacting machines (Figure 4.43(b)), communicating using messages. These objects, acting together, determine the function and behavior of the overall...