Title: Object%20flows
1(No Transcript)
2Campaign
Active
- Object flows
- open arrow
- Objects
- rectangle
- optionally shows the state of the object in
square brackets
Record completion of a campaign
Campaign
Completed
3Stereotypes 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)
5A link is a logical connection between two objects
6Association role
Association
Client
StaffMember
companyAddress
staffContact
staffName
companyEmail
staffNo
liaises with
companyFax
staffStartDate
companyName
companyTelephone
Association name
Direction in which name should be read
7Multiplicities
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
9There 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.
3
2
4
10Example 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.
11Aggregation (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)
14A 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