ict117 week09 behavioural modelling
TRANSCRIPT
-
8/6/2019 ICT117 Week09 Behavioural Modelling
1/22
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd EditionCopyright 2009 John Wiley & Sons, Inc. All rights reserved.
Behavioural ModelingChapter 7: Dennis, Wixom and
Tegarden
-
8/6/2019 ICT117 Week09 Behavioural Modelling
2/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
2
ObjectivesUnderstand the rules and style guidelines forsequence and communication diagrams andbehavioural state machines.Understand the processes used to createsequence and communication diagrams andbehavioural state machines.Be able to create sequence and communicationdiagrams and behavioural state machines.Understand the relationship between thebehavioural models and the structural andfunctional models.
-
8/6/2019 ICT117 Week09 Behavioural Modelling
3/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
3
Key IdeasBehavioural models describe the internaldynamic aspects of an information systemthat supports business processes in anorganisationKey UML behavioural models are:
Sequence diagramsCollaboration diagramsStatechart diagrams
-
8/6/2019 ICT117 Week09 Behavioural Modelling
4/22
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd EditionCopyright 2009 John Wiley & Sons, Inc. All rights reserved.
BEHAVIOURAL MODELS
-
8/6/2019 ICT117 Week09 Behavioural Modelling
5/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
5
Behavioural ModelsSystems have both static and dynamiccharacteristicsStructural models describe the static aspects of the
systemBehavioural models describe the dynamics and
interactions of the system and its components
Behavioural models describe how the classesin the structural models interact in supportof the use cases.
-
8/6/2019 ICT117 Week09 Behavioural Modelling
6/22
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd EditionCopyright 2009 John Wiley & Sons, Inc. All rights reserved.
INTERACTION DIAGRAMS
-
8/6/2019 ICT117 Week09 Behavioural Modelling
7/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
7
Interaction DiagramComponentsObjects
an instantiation of a class
Operationsthe behaviours of an instance of a class
Messagesinformation sent to objects to tell them to execute
one of their behaviours
-
8/6/2019 ICT117 Week09 Behavioural Modelling
8/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
8
Sequence DiagramsShow the objects that participate in a use-caseShow the messages that pass between thoseobjects for a particular use-case
-
8/6/2019 ICT117 Week09 Behavioural Modelling
9/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
9
Sequence Diagram Syntax
-
8/6/2019 ICT117 Week09 Behavioural Modelling
10/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
10
More Sequence DiagramSyntax
-
8/6/2019 ICT117 Week09 Behavioural Modelling
11/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
11
Sample Sequence Diagram
-
8/6/2019 ICT117 Week09 Behavioural Modelling
12/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
12
Steps to Build SequenceDiagramsSet the contextIdentify which objects will participateSet the lifeline for each objectLay out the messages from top to bottom of thediagram based on the order in which theyare sentAdd execution occurrence to each objects
lifelineValidate the sequence diagram
-
8/6/2019 ICT117 Week09 Behavioural Modelling
13/22
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd EditionCopyright 2009 John Wiley & Sons, Inc. All rights reserved.
BEHAVIOURAL STATE
MACHINES
-
8/6/2019 ICT117 Week09 Behavioural Modelling
14/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
14
Behavioural State MachinesA dynamic modelShows the different states through which asingle object passes during its lifeState transitions are responses to eventsThe model shows the objects actionsTypically used just for complex objects withmultiple possible states
-
8/6/2019 ICT117 Week09 Behavioural Modelling
15/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
15
Components of State MachinesStates (or Status)values of an objects attributes at a point in time
Eventschange the values of the objects attributesTransitionsmovement of an object from one state to another if
a (optional) guard condition is satisfied
Actionsatomic, non-decomposable processes
-
8/6/2019 ICT117 Week09 Behavioural Modelling
16/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
16
State Machine Syntax
-
8/6/2019 ICT117 Week09 Behavioural Modelling
17/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
17
Sample State Machine
-
8/6/2019 ICT117 Week09 Behavioural Modelling
18/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
18
Steps to Build a State MachineSet the contextIdentify the initial, final, and stable states ofthe objectDetermine the order in which the object willpass through the stable statesIdentify the events, actions, and guardconditions associated with the transitionsValidate the behavioural state machine
-
8/6/2019 ICT117 Week09 Behavioural Modelling
19/22
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd EditionCopyright 2009 John Wiley & Sons, Inc. All rights reserved.
CRUD ANALYSIS
-
8/6/2019 ICT117 Week09 Behavioural Modelling
20/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
20
CRUD AnalysisLabels object interaction in 4 possible waysCreate
Read
Update
Delete
Matrix representation of objects andinteractionsMost useful as a system-wide representation
-
8/6/2019 ICT117 Week09 Behavioural Modelling
21/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
21
Sample CRUD Matrix
Each interaction between objects is labelled
according to its type, or is left blank if no
interaction occurs
-
8/6/2019 ICT117 Week09 Behavioural Modelling
22/22
17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010
Includes John Wiley & Sons Inc material
22
Next lectureDesign Modelsverify analysis modelsevolve them into design modelsPackagesdesign strategies