The design is described by a set of models that show the software from several views and at several levels of detail.
The Design Model
The design model has four elements. The data design turns the data model into data structures and, where needed, a database. The architectural design defines the relation between the main structural elements of the software. The interface design describes how the software communicates with other systems and with the people who use it. The component-level design describes the internal detail of each component. The model is built from the requirements model and is refined down to code.
Definition: Design model. A set of data, architectural, interface and component-level designs that together describe how the software will be built.
Software Architecture
The software architecture is the structure of the system, made of its components, their externally visible properties, and the relations among them. It is the first step that turns requirements into a structure. A good architecture helps to understand the system, supports communication with stakeholders, allows reuse, and shows how well the non-functional requirements, such as performance and security, will be met.
Data Design
Data design creates a model of the data at a high level of abstraction and refines it into the structures needed to implement the software. At the component level, it selects the data structures, such as lists and trees, and defines the operations on them. At the application level, it converts the data model into a database design with tables, keys and relations. At the business level, data held in many databases are used for analysis in a data warehouse.
Architectural Design and Styles
An architectural style is a pattern for the structure of a system. In a layered architecture the system is arranged in layers, each using the services of the layer below, as in presentation, business logic and data layers. In a client-server architecture clients request services from a server. In a data-centred architecture components share a central data store. A data-flow architecture passes data through a series of filters. A call-and-return architecture arranges the program as a main program that calls subprograms. In an object-oriented architecture the components are objects that pass messages. The choice depends on the requirements and the quality attributes wanted.
Table 3.2: Architectural styles
| Style | Main idea | Example |
|---|---|---|
| Layered | Each layer uses the one below | Web application |
| Client-server | Clients request a server | Email system |
| Data-centred | Components share a data store | Hospital records |
| Data-flow | Data passes through filters | Compiler stages |
| Object-oriented | Objects send messages | Banking software |
Example 3.2: Choosing an architectural style
Problem: A college portal has a web page for users, rules for fees and results, and a database of student records. Suggest an architecture.
Solution:
- The three kinds of work can be separated into presentation, business logic and data.
- Each layer uses only the layer below it.
Result: A three-layer architecture is suitable, and it can be deployed in a client-server form.
Common mistakes
- Treating architecture as the same as detailed design. It is the high-level structure.
- Choosing a style without checking the non-functional requirements.
- Forgetting the interface design, which describes how components and users communicate.
Key takeaways
- The design model has data, architectural, interface and component-level designs.
- Architecture is the structure of components and their relations.
- Layered, client-server, data-centred and data-flow are common styles.
- Data design moves from data structures to databases.
Practice questions
- Name the elements of the design model.
- What is a layered architecture?
- What does data design produce?
Answers to the practice questions
- Data, architectural, interface and component-level designs.
- A structure in which each layer uses the services of the layer below.
- Data structures and database designs derived from the data model.
Sources
- Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit III
