



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Design Principles What is design? Translation of user requirements into a description of how the system will satisfy those requirements. Software Architecture "The overall structure of the software and the ways in which that structure provides conceptual integrity for a system" – Mary Shaw and David Garlan, Software Architecture, 1996 The structure or organization of the software components, their interaction, and the structure of data used in the components. Diagrams are very helpful here! There are some common architectural patterns that are used in many software systems. Tiered or Layered architecture: system functionality is partitioned (or layered) so that each partition performs specific functionality, and only communicates with the adjoining layers. Frequently, each layer executes on a separate computer, although multiple layers may reside on one computer. Each layer provides service to the layer above it, and receives service from the layer below. Each layer provides an interface that is used to communicate with it. This allows layers to be changed easily - new versions only have to provide the same interface Layered architectures can also be more scalable. Often, a layer can reside on multiple computers in parallel, with each computer providing the layer's services. Requests for service can go to any of the machines. We can think of many applications as having three parts: presentation, application processing, and data management. Presentation layer: concerned with presenting information to the user and user interaction. Application processing layer: implements the logic of the application. Data management layer: concerned with database operations.
If we organize our applications carefully, we can separate these into layers. presentation ^ | v application processing ^ | v data management Note that the presentation layer does not interact directly with the data management layer. How can we map applications onto computing systems? Single-Tier Architecture (monolithic) Older style of computing. Mainframe computer with lots of dumb terminals. In this case, the three application layers all run on one computer, and may not clearly separated. Also, single-user application running on a PC (e.g., MS Office). 2-Tier Also called client/server architecture. Typical 2-tier architecture: application and database. Application includes business logic and presentation (display). Application needs to be installed on every computer on which it needs to be used. 2 major forms
There are many types of diagrams in the UML: state diagrams, interactions diagrams, use case diagrams, class diagrams, sequence diagrams. Some of these diagrams describe/document the structure of a system (e.g. class diagram). Some of them describe the behavior of a system (use case diagrams, sequence diagrams). I want to start looking at class diagrams at a high-level today. Class Diagram
Insurance Company Insurance Company Insurance Contract Customer 0..*
1 0..*
1..*
An insurance company has many (0..*) insurance contracts. An insurance contract is related to one insurance company. The contract is related to many insurance customers. This diagram is only showing the class names (no attributes or operations) Finding classes How do you find the classes to model? Good classes reflect the problem domain. A class is a person, place, thing, event, or concept in the environment Derive them from the UC descriptions and requirements spec: