SYST39409 - Sheridan College
Download
Report
Transcript SYST39409 - Sheridan College
State Diagrams
Weekly Schedule-SLATE
Assignment No 2
Solutions to ICE’s posted on SLATE
Today
State charts – continued...
I-C-E-06
▪ Two ways of modelling
Summarize Requirements Gathering Process
▪ Car Rental System – Case Study
Introduce System Sequence Diagrams (SSDs)
ICE-07
Jerry Kotuba
Object Oriented Methodologies
2
Jerry Kotuba
Object Oriented Methodologies
3
Typical Amazon Package Tracking Status Report
Jerry Kotuba
Object Oriented Methodologies
4
Two Versions
Jerry Kotuba
Object Oriented Methodologies
5
Car Rental System – Posted on SLATE
Week09
Jerry Kotuba
Object Oriented Methodologies
6
[1] Select the classes that will require statecharts
[2] List all the status conditions for each group
[3] Specify transitions that cause object to leave the
identified state
[4] Sequence state-transition combinations in correct
order
Jerry Kotuba
Object Oriented Methodologies
7
[5] Identify concurrent paths.
[6] Look for additional transitions
[7] Expand each transition as appropriate
[8] Review and test each statechart
Jerry Kotuba
Object Oriented Methodologies
8
See SLATE for a posted exercise
Jerry Kotuba
Object Oriented Methodologies
9
Jerry Kotuba
SYST39409 - Object Oriented Methodologies
10
System sequence diagram (SSD)
Describes flow of information
Identifies interaction between actors and system
Message oriented
Jerry Kotuba
SYST39409 - Object Oriented Methodologies
11
Actor “interacts” with the system via input/output
SSDs use object notation
Box (rectangle) refers to individual object
Name of the object underlined
Messages sent/received by objects, not classes
Lifeline
Extension of object or actor for duration of the SSD
Indicates sequence of the messages sent/received
Jerry Kotuba
SYST39409 - Object Oriented Methodologies
12
Sample System Sequence Diagram
Message syntax can take several forms
Depends on send/return direction
Message semantics: actions (like commands)
invoked on destination object
Jerry Kotuba
SYST39409 - Object Oriented Methodologies
14
Begin with detailed description of use case
Fully developed form
Activity diagrams
(4) step process for turning activity diagram into SSD
[1] Identify the input messages
[2] Describe messages from external actor to system
[3] Identify/apply special conditions to input messages
[4] Identify and add the output return messages
Jerry Kotuba
SYST39409 - Object Oriented Methodologies
15
A Simplified Diagram of the Telephone Order Scenario
An SSD of the Simplified Telephone Order Scenario for the Create New
Order Use Case
Names of messages reflect services performed
Important principle for identifying data parameters
Base the list on the class diagram
Attributes from the classes listed as parameters
Iteratively define input/output parameters around
workflows
Objective: discovery and understanding
Jerry Kotuba
SYST39409 - Object Oriented Methodologies
18
Read & Study Chapter 6 Pages 237 -246
What comes next?
Sequence Diagrams
Jerry Kotuba
Object Oriented Methodologies
19