Skip to main content Accessibility help
×
Hostname: page-component-586b7cd67f-t8hqh Total loading time: 0 Render date: 2024-11-30T06:55:17.507Z Has data issue: false hasContentIssue false

8 - Object and Class Structuring for Real-Time Embedded Software

from Part II - Real-Time Software Design Method

Published online by Cambridge University Press:  05 March 2016

Hassan Gomaa
Affiliation:
George Mason University, Virginia
Get access

Summary

After structural modeling and defining the use case and state machine models, the next step is to determine the software classes and objects in the real-time embedded system. Using a model-based approach, the emphasis is on software objects that model real-world objects in the problem domain. Furthermore, since concurrency is so fundamental to real-time software design, an important issue that is addressed at this stage is whether the objects are concurrent or not. Another key issue described in this chapter is the behavior pattern of each category of object.

This chapter provides guidelines, in particular structuring criteria, on how to determine the classes and objects in the system. As with system structural modeling (see Chapter 5), software classes and objects are categorized by using stereotypes. Section 8.1 gives an overview of object and class structuring while Section 8.2 describes object and class structuring categories. Section 8.3 describes object behavior and patterns. Section 8.4 describes the different kinds of boundary classes and objects. Section 8.5 describes entity classes and objects, which were first introduced in Chapter 5. Section 8.6 describes the different kinds of control classes and objects. Section 8.7 describes application logic classes and objects.

OBJECT AND CLASS STRUCTURING CRITERIA

In software applications, a class is categorized by the role it plays in the application. Object and class structuring criteria are provided to assist the designer in structuring a system into its constituent classes and objects. The approach used for identifying objects is to look for real-world objects in the problem domain and then design corresponding software objects that model the real world. After the objects have been identified, the interactions among objects are depicted in the dynamic model on sequence diagrams or communication diagrams, as described in Chapter 9.

Classes are categorized in order to group together classes with similar characteristics. Figure 8.1 shows the categorization of application classes using inheritance. As described in Chapter 5, stereotypes (See Sections 5.2 and 5.6) are used to distinguish among the various kinds of classes. Application classes are categorized according to their role in the application, in particular «boundary» class, «entity» class, «control» class, or «application logic» class. Because an object is an instance of a class, an object has the same stereotype as the class from which it is instantiated.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2016

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×