Docsity

Object-Oriented Analysis and Design: Strategic Frameworks for Modern Software Engineering, Study notes of Object Oriented Analysis and Design

Toggle sidebar
bg1
ITC-505: Object-Oriented Analysis & Design
Comprehensive Course Outline & Technical Reference Manual
Course Level: Advanced Core | Subject: Software Engineering Frameworks
1. Challenges in Software Engineering & Disciplinary Differences
Inherent Challenges in Software Engineering
Software engineering is uniquely demanding due to what Fred Brooks famously classified as the inherent
properties of software: Complexity, Conformity, Changeability, and Invisibility. Unlike physical systems,
software systems can have an almost infinite number of discrete states, making exhaustive testing impossible.
Complexity: Software products are scaling exponentially. A modern operating system or enterprise
application comprises millions of lines of code, hundreds of subsystems, and intricate inter-dependencies.
Conformity: Software is frequently forced to conform to pre-existing interfaces, legacy systems, hardware
specifications, and arbitrary human environments rather than universal laws of nature.
Changeability: Because software is easily modified on screen, stakeholders expect continuous, fluid
updates throughout its lifecycle. This puts severe stress on architectural integrity.
Invisibility: Software has no physical geometry. It cannot be visually inspected for cracks, stress
distribution, or alignment errors, which severely complicates architectural visualization and conceptual
mapping.
How Software Engineering Differs from Traditional Engineering
While software engineering shares structural processes with civil, mechanical, and electrical engineering, it
diverges dramatically across several fundamental dimensions:
•
•
•
•
ITC-505: OOAD Complete Course Notes Page 1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Object-Oriented Analysis and Design: Strategic Frameworks for Modern Software Engineering and more Study notes Object Oriented Analysis and Design in PDF only on Docsity!

ITC-505: Object-Oriented Analysis & Design

Comprehensive Course Outline & Technical Reference Manual

Course Level: Advanced Core | Subject: Software Engineering Frameworks

1. Challenges in Software Engineering & Disciplinary Differences

Inherent Challenges in Software Engineering

Software engineering is uniquely demanding due to what Fred Brooks famously classified as the inherent properties of software: Complexity, Conformity, Changeability, and Invisibility. Unlike physical systems, software systems can have an almost infinite number of discrete states, making exhaustive testing impossible.

Complexity: Software products are scaling exponentially. A modern operating system or enterprise application comprises millions of lines of code, hundreds of subsystems, and intricate inter-dependencies. Conformity: Software is frequently forced to conform to pre-existing interfaces, legacy systems, hardware specifications, and arbitrary human environments rather than universal laws of nature. Changeability: Because software is easily modified on screen, stakeholders expect continuous, fluid updates throughout its lifecycle. This puts severe stress on architectural integrity. Invisibility: Software has no physical geometry. It cannot be visually inspected for cracks, stress distribution, or alignment errors, which severely complicates architectural visualization and conceptual mapping.

How Software Engineering Differs from Traditional Engineering

While software engineering shares structural processes with civil, mechanical, and electrical engineering, it diverges dramatically across several fundamental dimensions:

Dimension Traditional Engineering (e.g., Civil/Mechanical) Software Engineering

Nature of Material

Bound by physical laws, gravity, thermodynamics, and tangible constraints.

Completely intangible; conceptual constructs bound only by logical limits.

Wear & Tear Physical assets degrade, rust, or fatigue over time due to operational friction.

Software does not wear out; instead, it suffers from "software rot" due to design degradation during maintenance.

Malleability Highly resistant to change after construction begins. Modifying a concrete bridge is cost-prohibitive.

Extremely fluid and expected to undergo profound structural mutations post- deployment.

Mathematical Model

Relies primarily on continuous mathematics (Calculus, Physics equations).

Relies fundamentally on discrete mathematics, boolean logic, and finite graph theory.

2. Introduction to Object-Oriented Analysis and Design (OOAD)

Object-Oriented Analysis and Design represents a sophisticated paradigm shift from traditional procedural programming. Rather than viewing a software system as a sequence of procedural steps or functions acting upon passive data structures, OOAD conceptualizes a system as a network of autonomous, interacting entities known as objects.

Analysis vs. Design: The Core Operational Definitions Object-Oriented Analysis (OOA): Focuses on discovery and domain understanding. It answers the question: "What is the system supposed to do?" During OOA, engineers model real-world requirements and business domain objects without considering implementation details, programming languages, or deployment environments.

Object-Oriented Design (OOD): Focuses on logical implementation. It answers the question: "How will the system fulfill its requirements?" Engineers transform the analysis models into robust blueprint components, defining design patterns, architectural boundaries, database schemas, and specific programming interfaces.

3. The Object-Oriented Development Lifecycle (OODL)

The Object-Oriented Development Lifecycle moves away from rigid, linear approaches like the traditional Waterfall model. Instead, it adopts an iterative and incremental philosophy, typified by modern frameworks such as the Unified Process (UP) and Agile methodologies.

Separation of Concerns (Nearly Decomposable): Intra-component interactions (inside a single object) are tightly coupled, while inter-component interactions (between separate objects) are loosely coupled. This isolation prevents changes from rippling unchecked across the entire system. Common Patterns & Subsystems: Complex systems are built using recurring structural patterns. These standard architectural forms (e.g., Model-View-Controller, Client-Server) are reused across different parts of the application. Stable Intermediate Forms: Complex systems evolve from simple, working configurations. You cannot build a complex system from scratch successfully; it must be grown by systematically scaling up a stable, smaller system.

6. Handling Complexities: Decomposition Strategies

To keep massive systems understandable, engineers break them down into smaller pieces using decomposition. There are two primary ways to do this:

Algorithmic (Functional) Decomposition

This traditional approach splits a system by its steps or functions. A main program calls sub-routines, which call smaller functions. While intuitive, this approach tightly links data structures directly to functions. If a core data structure changes, the entire functional hierarchy often breaks down, making maintenance difficult.

Object-Oriented Decomposition

This modern approach decomposes a system by the autonomous entities (objects) that own their data and behaviors. Instead of tracking steps in an algorithm, the system is structured around domain concepts (e.g., Customer , Account , Transaction ). This encapsulates volatile data structures behind stable interfaces, dramatically improving system maintainability and reusability.

7. The Object Model and Its Pillars

The Object Model forms the theoretical foundation of OOAD. It is divided into four major, mandatory elements and three minor, supporting elements.

Major Elements (Mandatory)

Abstraction: Focusing on the essential characteristics of an object relative to the current perspective, filtering out unnecessary, non-essential implementation details. Encapsulation (Information Hiding): Bundling data and the methods that operate on that data into a single unit, while completely hiding the internal implementation details behind a public interface. Modularity: Breaking a large program down into smaller, distinct, and independently compilable units or packages to make it easier to manage. Hierarchy: Organizing abstractions into ordered structures, primarily using inheritance (is-a relationships) and aggregation/composition (has-a relationships).

Minor Elements (Supporting)

Typing: Enforcing compliance with object interfaces. Strong typing prevents objects of different classes from being interchanged invalidly, catching design errors early. Concurrency: Giving different objects the ability to execute code simultaneously across separate threads or processes. Persistence: Giving objects the ability to transcend space and time, saving their internal state to non- volatile storage (like a database) so they survive past the application's runtime.

8. Unified Modeling Language (UML) & Diagram Categories

The Unified Modeling Language (UML) is the industry-standard visual notation used to specify, visualize, construct, and document software artifacts. UML diagrams are divided into two primary categories, each serving a different modeling perspective:

Category Primary Purpose Key Diagram Types

Structural Modeling

Captures the static configuration of the system, including its classes, interfaces, components, and physical nodes. It shows what elements make up the system, but not how they react over time.

Class Diagram, Object Diagram, Component Diagram, Deployment Diagram, Package Diagram.

Behavioral / Interaction Modeling

Captures the dynamic execution, state changes, workflows, and communication exchanges over time. It models the living, reacting aspects of the system.

Use Case Diagram, Sequence Diagram, State Machine Diagram, Activity Diagram, Communication Diagram.

9. Use Case Diagrams (Functional Requirement Modeling)

Use Case Diagrams capture the functional requirements of a system from the perspective of external actors. They define the boundaries of the system and establish what behaviors it must provide to its users.

Core Components

Actor: An external entity (human user, external hardware, or legacy software system) that interacts with the system to achieve a specific goal. Represented as a stick figure. Use Case: A discrete unit of functional business value provided by the system to an actor. Represented as an ellipse. System Boundary: A bounding box enclosing the use cases, defining what is inside the application versus what exists externally.

11. Dynamic Modeling

While Use Case and Class diagrams map out structural blueprints, Dynamic Modeling focuses on how a system behaves at runtime. It tracks how objects interact, how they communicate across boundaries, and how their internal values change over time in response to external triggers.

Dynamic modeling is crucial for designing real-time features, intricate business logic, complex algorithmic workflows, and reactive state changes. It is primarily visualized using Sequence Diagrams (which track time- based communication) and State Diagrams (which track lifecycle changes within a single object).

12. Sequence Diagrams (Interaction Modeling)

Sequence Diagrams track runtime interactions between objects over time, focusing on the explicit chronological order in which messages are exchanged.

Core Notation & Semantics

Lifeline: Represents an individual instance of a class during the interaction. Drawn as a vertical dashed line descending from an object box at the top. Activation Bar (Execution Specification): A thin vertical rectangle placed on top of a lifeline, showing exactly when an object is actively performing an operation. Synchronous Message: A solid line with a solid arrowhead. The sender stops and waits for a response before continuing. Asynchronous Message: A solid line with an open arrowhead. The sender sends the message and continues its execution immediately without waiting. Return Message: A dashed line with an open arrowhead, passing back computed results or control to the caller. Self-Message: A message loop that originates and ends on the same activation bar, showing an object calling its own internal helper method.

13. State Diagrams (Behavioral Machine Modeling)

State Diagrams (or State Machine Diagrams) model the lifecycle of a single, highly reactive object. They map out the distinct states an object can occupy, and the events that cause it to move from one state to another.

Core Structural Elements

Initial State: The starting point when an object is instantiated. Represented as a solid, filled circle. State: A specific condition or situation during an object's life when it satisfies a criteria, performs an activity, or waits for an event. Represented as a rounded rectangle. Transition: A directed arrow showing how an object moves between states. It is labeled with a specific syntax string: Event [Guard] / Action.

Guard Condition: A boolean expression enclosed in square brackets. The transition only fires if this condition evaluates to true when the event occurs. Final State: The termination point of the object's lifecycle. Represented as a bullseye (a filled circle inside a larger circle).