Docsity

Object Oriented Architecture - Lecture Slides | CS 361, Study notes of Software Engineering

Partial preview of the text

Download Object Oriented Architecture - Lecture Slides | CS 361 and more Study notes Software Engineering in PDF only on Docsity!

Architecture

Object-Oriented

Architecture

subsystems are defined around dataand its associated functions

subsystems can interrelate any way theyneed to accomplish the work of thesystem.

emphasizes the dependencies betweenthe pieces

shows each piece to be self-contained

Subsystems

with relationships

Manage Orders <> Ship Orders <> Money Handling <> <> Data Management

Testing the Architecture

First, apply the following module tests:• Single functionality? - Strong cohesion?• Do the parts of this subsystem have a strongrelationship to each other? - Loose coupling?• Does this subsystem depend too much on othersubsystems? - Minimal communications to othersubsystems?• Do the subsystems talk a lot to each other?

selects Place Order

What about log in and security?•

another subsystem?

call it System Access

enter name and address

Manage Orders - called from System Access

enter product codes

Manage Orders

product description and price

Inventory System (an Actor) - Ship Orders interfaces with Inventory - but product description is not a shippingfunction - Create the Product Info subsystem• can be called by both Manage Ordersand Ship Orders

running total

Manage Orders

credit card info

Manage Orders - not Money Handling because we’re justcollecting information

verify Info

Manage Orders - info saved by Data Management - payment info goes to Money Handling - those relationships already exist

order marked confirmed

payment confirmation is Money Handling - the rest is Manage Orders - Data management needs to update thestatus

Define Interfaces

we found operations that one subsystemcalled in another subsystem - we know about the subsystemrelationships - we need to record what the actualoperations are

Subsystems

with interfaces

Manage Orders <> Ship Orders <> Money Handling <> <>Data Management System Access <> Product Info <> PlaceOrder()CancelOrder()ReturnProduct() ChargeAccount()CreditAccount()ProcessPayments() GetProductDescription()GetProductPrice()GetProductQuantity() SaveOrder()UpdateOrderStatus()