Object%20flows - PowerPoint PPT Presentation

About This Presentation
Title:

Object%20flows

Description:

University of Toronto at Scarborough Bennett, McRobb ... Yellow Partridge:Client. Soong Motor Co:Client. Grace Chia:StaffMember. Carlos Moncada:StaffMember ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 15
Provided by: kerstiwa
Category:

less

Transcript and Presenter's Notes

Title: Object%20flows


1
(No Transcript)
2
Campaign
Active
  • Object flows
  • open arrow
  • Objects
  • rectangle
  • optionally shows the state of the object in
    square brackets

Record completion of a campaign
Campaign
Completed
3
Stereotypes Boundary objects model interaction
between the system and actors (and other
systems) Entity objects represent
information and behaviour in the application
domain Control objects co-ordinate and
control other objects
4
(No Transcript)
5
A link is a logical connection between two objects
6
Association role
Association
Client
StaffMember
companyAddress
staffContact
staffName
companyEmail
staffNo
liaises with
companyFax
staffStartDate
companyName
companyTelephone
Association name
Direction in which name should be read
7
Multiplicities
Client
StaffMember
companyAddress
1
0..
companyEmail
staffName
companyFax
staffNo
liaises with
companyName
staffStartDate
companyTelephone
Exactly one staff member liaises with each
client A staff member may liaise with zero, one
or more clients
8
  • Operations describe what instances of a class
    can do
  • Set or reveal attribute values
  • Perform calculations
  • Send messages to other objects
  • Create or destroy links

9
There is a clear development path in realizing a
use case First, as a collaboration of possible
classes that together could deliver the necessary
functionality. Second, as a communication
diagram that shows how those classes might
interact. Finally, as a class diagram that shows
how the classes could be specified and associated
with each other.
  • 1

3
2
4
10
Example CRC cards
Class Name
Client
Responsibilities
Collaborations
Provide client information.
Campaign provides campaign details.
Provide list of campaigns.
Class Name
Campaign
Responsibilities
Collaborations
Provide campaign information.
Provide list of adverts.
Advert provides advert details.
Add a new advert.
Advert constructs new object.
Class Name
Advert
Responsibilities
Collaborations
Provide advert details.
Construct adverts.
11
Aggregation (clearly not composition)
12
  • Add generalisation structures when
  • Two classes are similar in most details, but
    differ in some respects
  • May differ
  • In behaviour (operations or methods)
  • In data (attributes)
  • In associations with other classes

13
  • Components replaceable part of a system (e.g.
    executable software module with well-defined
    interface and identity )

interface
Allocate Seats
realize
component
Flight Management
GetFreeSeats(seatType)
AllocateSeat(seatRef)
DeallocateSeat(seatRef)
14
A pattern describes a problem which occurs over
and over again in our environment, and then
describes the core of a solution to that problem,
in such a way that you can use this solution a
million times over, without ever doing it the
same way twice. Alexander et al. (1977)
Simple Analysis Pattern
Write a Comment
User Comments (0)
About PowerShow.com