260 likes | 590 Vues
IS0514 Lecture Week 10. Other UML Diagrams in Business Modelling. So far. Modelling Best Practice Development Use Case Diagrams Use Case Descriptions Class Diagrams CRC Cards This week Other UML Diagrams. Structure Diagrams Class Object Package Deployment Component
E N D
IS0514 Lecture Week 10 Other UML Diagrams in Business Modelling
So far • Modelling • Best Practice Development • Use Case Diagrams • Use Case Descriptions • Class Diagrams • CRC Cards • This week • Other UML Diagrams
Structure Diagrams Class Object Package Deployment Component Composite Structure Behavioural Diagrams Use Case Activity Sequence Communication Interaction Overview Timing Behavioural State Machine Protocol State Machine Available Diagrams Not All are used all the time for all purposes
In an iteration, you walk through all workflows Inception Elaboration Construction Transition Business Modeling Requirements Analysis & Design Implementation Test Deployment Configuration Mgmt Workflows group activities logically Management Environment Iter.#m+1 Preliminary Iteration(s) Iter.#1 Iter.#2 Iter.#n Iter.#n+1 Iter.#n+2 Iter.#m Iterative Approach for the Full Lifecycle Phases Process Workflows SupportingWorkflows Iterations
Business Modelling From Rational Unified Process
Within Business Modeling which Diagrams to use? • Use Cases • Each Use Case represents a Business Process • Class Diagram • Identify the business classes • Object Diagram • Example objects of business classes • Activity Diagram • Process flows within Business Processes • Communication Diagram • Communication of Objects to support a business process • Sequence Diagram • The sequence in which Objects perform operations to support a business process
A Simple Activity Diagram – Boiling a Kettle Initial Node Activity Decision Node Control Flow Final Node
Exercise 1 • Draw an activity diagram for getting out of bed in the morning. • Please try and make use of both • Decisions • Forks and Joins • This should take about 10 minutes
Exercise 1 One Solution
With Partitions / Swim Lanes Partition / Swim lane
Object Flows Object Flow Object Node
Essentially an object diagram that shows message passing instead of relationships Emphasize the flow of messages among objects Shows but does not emphasize ordering of messages Numbering shows ordering Sequence diagrams show ordering more clearly (next year) Does not show timing (e.g., how long things take) Communication Diagrams
Space Invaders • Remember Space Invaders • Consider the use case “Fire Laser”. Use Case description in notes. Read this. • What classes will this involve? Barrier, Base, Laser, Alien,
Fire Laser Communication Diagram Class Iteration * * message Link Guard Condition Object names Destroy and Disappear / Score Hitting Barriers Object What is missing?
Exercise 2 • The aliens drop bombs • Identify the classes • Draw Communication diagram for “Drop Bomb” • This should take you 5 – 10 minutes Alien , Bomb, Barrier, Game
Exercise 2 – One answer Have not included the base destroyed use case extension Repetition on moveDown() Whats missing?
Communication / Class Diagram consistency • Messages in Communication Diagrams are Operations in class diagrams • Links in Communications are relationships in class diagrams • The two “Views” are different but should be consistent in terms of • Class names • Operation Names • Cases used
Collaboration diagrams in Analysis • Analysts often draw initial diagrams very simply, then refine them. • UML as Sketch – Hand draw / Whiteboards / Discussion • UML as Blue Print – Use of a case tool
This weeks reading ESSENTIAL READING Dennis A, Wixom B, and Tegarden D (2005) System Analysis and Design with UML version 2 second edition, Wiley Chapter 8 ( especially 236-238, 243-249) Further reading Bennett, S., McRobb, S. and Farmer, R. (2002) Object-Oriented Systems Analysis and Design using UML, 2nd Edition, McGraw-Hill Chapter 9 John Halt (2006) A Pragmatic Guide to Process Modeling http://www.bcs.org/server.php?show=ConWebDoc.3385 Accessed 23/01/06 Michael Harvey (2005) What Is Business Process Modelinghttp://www.onjava.com/pub/a/onjava/2005/07/20/businessprocessmodeling.html Accessed 23/01/06
Summary • Brief Overview of the diagrams that are used within business modelling • Use case • Class • Object • Activity • Communication • Sequence