6 Architectural Design

Software Engineering · Unit 6 · 6 hrs

Architectural Design

Exam-focused notes for Architectural Design (Software Engineering, CSC375): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.

Architectural Design in short

Architectural design is the first stage of software design: it settles how a system is organised as a set of interacting components before any of those components is designed in detail.

Architectural Design: notes

Introduction

Architectural design is concerned with understanding how a software system should be organised, and with designing its overall structure: it identifies a system's main structural components and the relationships between them, and forms the link between requirements engineering and the more detailed design work that follows it. The architectural design process itself is usually organised around three activities: system structuring, decomposing the system into its major subsystems and identifying how they communicate; control modelling, establishing a model of the control relationships between those subsystems; and modular decomposition, breaking each subsystem further down into lower-level modules, objects or components. Two models are commonly used for this last step: the object model, which decomposes a system into interacting objects, and the data-flow (pipeline) model, which decomposes a system into functional modules that transform inputs into outputs.

Architectural Design Decisions

During architectural design, system architects must answer a number of fundamental structural questions: is there a generic application architecture that can simply be reused; what overall approach will be used to structure the system; which architectural styles are appropriate; how will the system be distributed across processors; how should the architecture be documented; and how will the architectural design itself be evaluated. The architecture chosen affects a system's performance, dependability and maintainability directly, so the particular structure adopted for an application is driven largely by its non-functional requirements: maintainability, performance, availability, security and safety.

What this unit covers

  • Introduction
  • Architectural Design Decisions
  • Architectural Views
  • Architectural Patterns
  • Application Architectures

Application Architectures

2081 · 5 marks

Explain any one application of architecture. [5]

Application architecture describes the patterns and techniques used to design and build an application. It is the process of defining the framework of an organization's application solutions against business requirements. It helps to ensure that applications are scalable and reliable. Application...

Open this answer on its own page →

Architectural Views

2080 · 10 marks

Explain architectural views. Illustrate on layered architecture, repository architecture, and pipe and filter architecture.[10]

An architectural view is a representation of an entire system from the perspective of a related set of concerns. It describes the system from the viewpoint of different stakeholders such as end-users, developers, project managers, and testers. There are four essential views: View Description Usef...

Open this answer on its own page →

Architectural Design Decisions

2076 · 5 marks

What are the activities of architectural design process? Discuss abstract machine model. [5]

The architectural design process includes the following three major activities: - The system is decomposed into major sub-systems. - Communication mechanisms between these sub-systems are identified. - Each sub-system is relatively independent and provides a set of related services. - A model of ...

Open this answer on its own page →

2076 · 5 marks

What is modular decomposition? Discuss object oriented model of decomposition. [5]

Show solved answer

Modular Decomposition and Object Oriented Model of Decomposition

Modular Decomposition

Modular decomposition is a process of decomposing subsystems into modules. After the system has been decomposed into subsystems (during system structuring), each subsystem must be further decomposed into lower-level modules such as components, objects, or functions. It is one of the key activities of the architectural design process.

In short: System --> Subsystems --> Modules (via modular decomposition)

Two modular decomposition models are commonly used:

  1. Object Oriented Model (decomposition into objects/classes)
  2. Function Oriented (Pipeline) Model (decomposition into functions/processes)

Object Oriented Model of Decomposition

In the object oriented model, the system is decomposed into a set of loosely coupled objects with well-defined interfaces. Each object encapsulates its own private state (data/attributes) and operations (methods/behaviors).

Key characteristics of this model include:

FeatureDescription
EncapsulationEach object hides its internal state from other objects
AbstractionObjects expose only necessary interfaces
ReusabilityObjects/classes can be reused across the system
MaintainabilityChanges to one object have minimal impact on others

Steps in Object Oriented Decomposition

  1. Define the context and modes of use of the system.
  2. Design the system architecture by identifying major subsystems.
  3. Identify the principal system objects (classes) from the requirements.
  4. Develop design models such as class diagrams, sequence diagrams, etc.
  5. Specify object interfaces -- define the operations each object provides.

Example

Consider a Patient Management System:

  • It can be decomposed into objects such as Patient, PatientRecord, Doctor, Appointment.
  • Each object has its own attributes and methods.
  • Objects communicate with each other through well-defined interfaces.
Patient                 PatientRecord
-----------             ---------------
- patientID             - recordID
- name                  - diagnosis
- age                   - treatment
-----------             ---------------
+ register()            + addRecord()
+ getDetails()          + getHistory()

These classes and their associations are modeled using UML Class Diagrams, which show the static structure of the system.

Advantages of Object Oriented Decomposition

  • Software is easier to change and maintain compared to functional approaches.
  • Promotes reusability of object classes.
  • Closely models real-world entities, making design more intuitive.
  • Supports incremental development -- individual objects can be developed and tested independently.

In summary, modular decomposition breaks subsystems into manageable modules, and the object oriented model does this by organizing the system around objects that encapsulate both data and behavior, making the system more modular, reusable, and maintainable.

Open this answer on its own page →