WXGC6102: Object-Oriented Techniques - PowerPoint PPT Presentation

About This Presentation
Title:

WXGC6102: Object-Oriented Techniques

Description:

WXGC6102: Object-Oriented Techniques Object Interaction Interaction Overview Diagrams Timing Diagrams References: Chapter 9 of Bennett, McRobb and Farmer: Object ... – PowerPoint PPT presentation

Number of Views:187
Avg rating:3.0/5.0
Slides: 14
Provided by: edum104
Category:

less

Transcript and Presenter's Notes

Title: WXGC6102: Object-Oriented Techniques


1
WXGC6102 Object-Oriented Techniques
  • Object Interaction Interaction Overview
    DiagramsTiming Diagrams

References Chapter 9 of Bennett, McRobb and
Farmer Object Oriented Systems Analysis and
Design Using UML, (3rd Edition), McGraw Hill,
2006. Object-Oriented Technology - From Diagram
to Code with Visual Paradigm for UML, Curtis H.K.
Tsang, Clarence S.W. Lau and Y.K. Leung,
McGraw-Hill Education (Asia), 2005
2
Interaction Overview Diagrams
  • Variants of activity diagrams (see Ch 5)
  • Focuses on the flow of control in an interaction
  • Nodes in the diagram may be interactions or
    interaction occurrences
  • Interaction needs to be broken down into its key
    elements.

3
Interaction Overview Diagrams
  • An alternative version of the sequence diagram
    Add a new advert to a campaign if within budget
    is shown on the next slide and is used to develop
    an interaction overview diagram

4
(No Transcript)
5
Interaction Fragment Used
6
Interaction Fragment Used
7
Interaction Fragment Used
8
sd Add a new advert to a campaign if within
budget
sd List Campaigns for Client
CampaignManager
Client
Campaign
getName
listCampaigns
loop
For all clients campaigns
getCampaignDetails
Initial node
ref
Get campaign budget
Interaction occurrence
In-line sequence diagram
sd Add costed advert
Campaign
CampaignManager
addCostedAdvert
Decision
totalCost gt budget
totalCost lt budget
ref
ref
Create advert
Create request
Final node
9
Timing Diagrams
  • A new feature in UML 2.0
  • Show how time constraints affect interactions
    between lifelines
  • The sequence diagram Car enters car park is the
    basis for the subsequent timing diagram

10
Timing Diagrams
11
Timing Diagrams
Sloped line represents duration of state change
Diagram has two instances, one for each lifeline
Message from one lifeline to another
12
Model Consistency
  • Timing diagrams must be consistent with the
    relevant sequence diagrams and state machines.

13
References
  • UML Reference Manual (OMG, 2004)
  • Bennett, Skelton and Lunn (2005)
  • (For full bibliographic details, see Bennett,
    McRobb and Farmer)
  • Object-Oriented Technology - From Diagram to Code
    with Visual Paradigm for UML, Curtis H.K. Tsang,
    Clarence S.W. Lau and Y.K. Leung, McGraw-Hill
    Education (Asia), 2005
Write a Comment
User Comments (0)
About PowerShow.com