130 likes | 144 Views
Learn about architectural design concepts and subsystem interactions using a simple library example. Understand architecture types, component architectures, transitioning to architectural design, and modeling with use cases and classes. Explore how subsystems interact to accomplish tasks like checking out copies in a library system.
E N D
Requirements Models to Architectural Design Models: A Simple Library Example Robert France Colorado State University
What is architectural design? • Concerned with identifying subsystems and their relationships • Architectural design is an example of programming-in-the-large • Basic element of construction is a subsystem or layer or system component (unlike programming-in-the-small where the basic unit of construction is a statement in a programming language) • Subsystems are systematically refined to show more details in detailed design.
Architecture Types • Logical Architecture • Organization of a system into logical units (e.g., layers, subsystems) • Logical units do not necessarily result in units of implementation (e.g., Java packages, components) • Implementation (Deployment) Architecture • Organization of a system into physical units (e.g., source files, Java packages, components)
Layered Architectures • Separate presentation and application logic, and other areas of concern. UI Layer “Domain” or “Application Logic” Layer Services Layer Persistence Subsystem Logging Subsystem . . .
Component Architectures • An architectural component is an architectural unit provides a well defined set of services. • An architecture is constructed by composing components. • A component has two types of interfaces • Provided interface: describes the services provided by a component • Required interface: describes the services that the component requires to provide its services
Transitioning to Architectural Design Describe how subsystems interact to accomplish use cases Requirements use case Architectural sequence models Identify subsystems by grouping use cases Architectural static model Identify subsystems by grouping classes Requirements class model
Simple Library Example • Library consists of reference and general copies • Only general copies can be chacked out; reference copies cannot be checked out • A borrower cannot check out a copy if they have outstanding fines. • A borrower is charged $1 for each week after its due date that it is not returned.
Library Example: required services CheckOutCopy ReturnCopy AddCopy DeleteCopy AddBorrower DeleteBorrower FindCopy
CheckOutCopy UseCase (draft form) UseCase: CheckOutCopy Main flow • Clerk enters borrower and copy identifiers • If borrower is registered, does not have fines, and copy is a general copy then system indicates that checkout is successful; else system indicates that checkout is not successful
Architectural Static Model Use cases grouped into borrower services and administrative services; two subsystems for each of these groupings is created – one responsible for borrower services, the other for administrative services Both administrative and borrower services need copy and borrower information. This observation results in a decision to include two subsystems for managing copies and borrowers.