Download Object Oriented Design-System Analysis and Design-Lecture Slides and more Slides System Analysis and Design in PDF only on Docsity!
C H A P T E R
OBJECT-
ORIENTED DESIGN
AND MODELING
USING THE UML
Chapter 18 Object-Oriented Design & Modeling Using the UML
- Differentiate between entity, interface, and control objects.
- Understand the concept of a dependency relationship and the circumstances under which it is used.
- Describe association navigability and explain why it is used.
- Define visibility and explain its three levels.
- Explain the difference between a behavior and a method.
- Understand the basic concept object responsibility and how it is related to message sending between object types.
- Explain the importance of considering object reuse during systems design.
- Differentiate between design patterns, object frameworks, and components.
- Describe three activities involved in completing object design.
- Differentiate between a design use-case narrative an an analysis use-case narrative.
- Construct an object robustness diagram.
- Describe CRC card modeling.
- Construct statechart and sequence diagrams.
- Construct a class diagram that reflects design specifics.
- Construct component and deployment diagrams. docsity.com
Object-Oriented Design
Object-oriented design (OOD) – an approach used to specify the software solution in terms of collaborating objects, their attributes, and their methods.
- Continuation of object-oriented analysis
Design Object Types
Entity object – an object that contains business-related information that is typically persistent and stored in a database.
ENTITY
OBJECT
Design Object Types
Control object – an object that contains application logic that isn’t the responsibility of an entity object.
- Examples of such logic are business rules and calculations that involve multiple objects
- Control objects coordinate messages between interface objects and entity objects and the sequences in which the messages occur.
CONTROL
OBJECT docsity.com
Design Relationships - Dependency
- A dependency relationship is used to model the association between two classes: - To indicate that when a change occurs in one class, it may affect the other class. - To indicate the association between a persistent class and a transient class. - Interface classes typically are transient - Illustrated with a dashed arrow The Order Display Window is an interface class. It is dependent on the Order Processor class to respond to events initiated from the interface.
Attribute and Method Visibility
Visibility – the level of access an external object has to an attribute or method.
- Public attributes/methods can be accessed/invoked by any other method in any other object or class. - Denoted by the symbol +
- Protected attributes/methods can be accessed/invoked by any method in the same class or in subclasses of that class. - Denoted by the symbol #
- Private attributes/methods can be accessed/invoked by any method in the same class. - Denoted by the symbol –
Method – the software logic that is executed in response to a message.
Object Responsibilities
Object responsibility – the obligation that an object has to provide a service when requested and thus collaborate with other objects to satisfy the request if required.
- An object responsibility is implemented by the creation of methods that may have to collaborate with other objects and methods.
Object Reusability
- The number one driving force for developing systems using object-oriented technology is the potential to reuse objects. - Allows development of quality applications cheaper and faster. - Objects should be defined within a good generalization/specialization hierarchy.
Comparison of an OO Language and a 3GL Language Programming Language
Project Duration (calendar months)
Level of Effort (person months)
Software Size (lines of code) PL/1 19 152 265, Smalltalk 3.5 10.4 22,
Student Generalization/Specialization Hierarchy
Object Reusability
Object framework – a set of related, interacting objects that provide a well-defined set of services for accomplishing a task.
Component – a group of objects packaged together into one unit. An example of a component is a dynamic link library (DLL) or executable file.
The Process of Object-Oriented Design
- Refining the use case model to reflect the implementation environment.
- Modeling object interactions and behavior that support the use case scenario.
- Updating the object model to reflect the implementation environment.
Design Use Case
Design Use Case (continued)