


















































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!



















































The Unified Analysis Process & UML ♦^ Use Case - What are the domain processes?^ −^ Use Case Diagram^ ♦^
high-level/expanded, essential/real ♦^ Conceptual Model - What are the domain concepts, terms?^ −^ Class Diagram (conceptual)^ ♦^
classes, associations, attributes ♦^ System Sequence Diagram - What are the system eventsand operations?^ −^ Interaction Diagram - Sequence Diagram ♦^ Contracts - What do the system operations do?^ −^ Contract Specs.
From Analysis to Design^ ♦^ Use Cases^ −^ What are the domain processes?^ ♦^ Conceptual Model^ −^ What are the concepts, terms?^ ♦^ System sequence diagrams^ −^ What are the system events and operations?^ ♦^ Contracts^ −^ What do the system operations do?
System Sequence Diagrams^ ♦^ Determine system events and operations^ ♦^ Derived from Use Cases – Typical course ofevents^ ♦^ Identify system functionality (operations) tobe designed^ ♦^ System boundary is critical
System Sequence Diagrams^ ♦^ Draw a line representing the system as a blackbox.^ ♦^ Identify each actor that directly operates onthe system. Draw a line for each such actor.^ ♦^ From expanded use case identify systemevents that each actor generates. Ilustratethem.^ ♦^ Optionally include use case text on left.
A System Sequence Diagram
system as black box enterItem(UPC, quantity)
:System
Cashier
endSale() Repeat until nomore items
makePayment(amount) Actor^ Text which clarifiescontrol, logic, iteration,etc. May be taken from theuse case.
Buy Items-version 1 system eventit triggers a system operation
System Sequence Diagrams from Use Cases
: Cashier^
:System
Simple cash-only
Process Sale^ scenario:
makeNewSale() enterItem(itemID,quantity)^ description,total^ * [more items]^ endSale()^ total withtaxes makePayment(amount)^ change due,receipt
Naming System Events and Operations
: Cashier^ enterItem(itemID, quantity)^ scan(itemID, quantity) better name worse name
:System
System Behavior - Contracts ♦^ Contracts help define system behavior ♦^ Contracts are defined in part by preconditionsand postconditions ♦^ Examples in this chapter document systemoperations such as^ −^ enterItem^ −^ endSale^ −^ makePayment ♦^ However, contracts also apply to low-level methods
The Conceptual Model- Introduction^ ♦^ Conceptual Model^ −^ illustrates meaningful concepts^ −^ most important artifact in OO analysis^ −^ need use cases as input^ ♦
but can develop uses cases as you do conceptual model ♦^ Question:^ −^ Provide names for the uses cases you found^ ♦
let's share this information now (use whiteboard)
Domain Analysis^ ♦^ Define domain to be investigated^ ♦^ Categorize the items extracted from thedomain^ ♦^ Collect a representative sample of applicationsin the domain^ ♦^ Analyze each application in the sample^ ♦^ Develop an analysis model for the objects^ ♦^ Define reuse guidelines
Conceptual Models^ ♦^ Conceptual Model^ −^ created for the use cases of the current cycle in thelanguage of the problem domain^ ♦^ Must identify^ −^ concepts - objects in our system^ −^ associations between concepts^ ♦
is part of, contains, manages, is-a, ... − attributes of concepts ♦ instance variables needed to hold state
Conceptual Modeling^ ♦^ Associations^ −^ less important than identifying concepts^ −^ show only “need-to-know” association (avoidredundant or derivable associations)^ −^ name, multiplicity, navigability^ −^ multiple associations
Conceptual Model^ ♦^ Attributes^ −^ Attributes Vs. Concepts^ ♦
keep attributes simple ♦ if in doubt define it as a concept ♦ no attributes as foreign keys (use associations)