Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Visualizing
Concepts
with a
Domain
Model
www.craiglarman.com
Copyright 2002 Craig Larman. All rights reserved.
Overview
IntellAgile
use cases
domain models
operation contract
IntellAgile
important information.
domain models
operation contract
IntellAgile
R e n ts
C u s to m e r
a d d re s s
nam e
phoneN um ber
use cases
1 ..*
V id e o S to r e
R e n ts -fro m
a d d re s s
nam e
phoneN um ber
S to c k s
1
domain models
V id e o
ID
operation contract
IntellAgile
use cases
domain models
operation contract
UML: Associations
IntellAgile
VideoStore
Stocks
association name
use cases
Video
multiplicity
domain models
operation contract
UML: Multiplicity
IntellAgile
*
1..*
1..40
zero or more;
"many"
Customer
one or more
0..1
Rents
one to forty
*
5
3, 5, 8
exactly five
exactly three,
five or eight
use cases
One instance of a
Customer may be
renting zero or more
Videos.
One instance of a Video
may be being rented by
zero or one Customers.
Video
domain models
operation contract
GUIDELINES: Associations
IntellAgile
...
Rents
Important association.
Need to remember.
Influenced-by
1
...
Loan Policy
domain models
operation contract
IntellAgile
as attributes.
a ttr ib u te s
d a te : D a te
tim e : T im e
am ount : M oney
use cases
domain models
operation contract
GUIDELINES: Attributes
IntellAgile
Why??
Customer
Video
Worse
rentedVideos: List of Video
Customer
Better
renter : Customer
Rents
...
use cases
1..*
Video
...
domain models
operation contract
IntellAgile
Pays-for-overdue-charges
VideoRental
CashPayment
RentalTransaction
Pays-for
amount : Money
1
date
dueDate
returnDate
returnTime
1..*
Initiates
1
0..1
Records-rental-of
Rents
Customer
1..*
VideoStore
Rents-from
address
name
phoneNumber
1
Maintains
Has
1
ID
1
Owns-a
Membership
Video
Stocks
address
name
phoneNumber
Catalog
ID
startDate
1
Described-by
1
1..*
VideoDescription
LoanPolicy
perDayRentalCharge
perDayLateCharge
1..*
use cases
Defines
1..*
title
subjectCategory
Determines-rental-charge
domain models
operation contract
IntellAgile
use cases
domain models
operation contract
IntellAgile
Domain
Model
Business
Modeling
Partial artifacts,
refined in each
iteration.
*
Use-Case Model
:System
Requirements
text
use
cases
use
case
diagrams
system
sequence
diagrams
system
operations
system
operation
contracts
Design Model
Design
use cases
domain models
operation contract
Recommended Resources
IntellAgile
use cases
domain models
operation contract
IntellAgile
use cases
domain models
operation contract
IntellAgile
Apply guidelines
use cases
domain models
operation contract