UML Diagrams for Gas Station Example

1 / 22
About This Presentation
Title:

UML Diagrams for Gas Station Example

Description:

personal check. Locating classes and objects: candidate classes (req #1) actor. actor ... personal check. gas ordering system. parts system. credit card system ... – PowerPoint PPT presentation

Number of Views:1491
Avg rating:3.0/5.0
Slides: 23
Provided by: GHT

less

Transcript and Presenter's Notes

Title: UML Diagrams for Gas Station Example


1
UML Diagrams for Gas Station Example
2
Use-Cases for the Gas Station Problem
Credit Card System
Billing services
Customer
Accounting services
Maintenance services
Gas services
Owner
Parking services
Gas ordering
system
Inventory management
Parts ordering
system
3
Use-Case Diagram for the Gas Station Problem
Credit Card System
Billing services
Customer
Parts ordering
Accounting services
system
Owner
Inventory management
Gas ordering
system
4
Context Diagram
Credit Card System
available spot
Customer
periodic message
credit approval
warning letter
bill
Parts ordering
order
system
control inventory
review records
order
offer discounts
Owner
message
Gas ordering
system
report
notify dormant accounts
5
Locating classes and objects candidate classes
(req 1)
paper bill
credit card
dup
personal check
att
att
gas station services
dup
customer
discounts
tax
actor
att
gas
prices
services
att
dup
gas station owner
actor
parking spots
price
dup
bill
att
parking spot
cash
car maintenance
att
purchase
6
Elminating classes (req 1)
actor
attribute
customer
personal check
gas station owner
tax
price
cash
discounts
credit card
good classes
car maintenance
redundant
services
parking spot
parking spots
prices
gas
bill
purchase
gas station services
paper bill
7
Locating classes and objects candidate classes
(reqs. 2 4)
system
imp
inventory
warning letters
report
gas station
imp
bill
late payers
dup
att
services
dup
credit history
att
8
Eliminating classes (reqs. 2 4)
implementation
attribute
system
gas station
late payers
credit history
good classes
inventory
report
redundant
warning letters
bill
services
9
Locating classes and objects candidate classes
(req. 5)
regular customer
name
dup
system
att
dup
birthday
PIN
customer
att
att
address
dup
att
gas station services
dup
10
Eliminating classes (req 5)
attribute
PIN
name
birthday
address
redundant
system
customer
gas station services
11
Locating classes and objects candidate classes
(req. 6)
credit card number
att
credit card
transaction
amount of purchase
dup
att
imp
credit card system
data requirements
actor
imp
parts order
gas order
delivery date
parts
imp
imp
att
gas station name
no. parts
part code
att
att
att
parts system
gas station code
gas ordering system
att
actor
actor
12
Eliminating classes (req 6)
attribute
actor
parts system
delivery date
gas ordering system
gas station code
no. parts
credit card system
gas station name
part code
credit card number
implementation
amount of purchase
parts order
transaction
data requirements
gas order
redundant
credit card
good classes
parts
13
Locating classes and objects candidate classes
(reqs. 7 9)
system
customers
periodic messages
dup
dup
car maintenance
tax information
dup
imp
accounting records
accounting information
imp
imp
tax records
imp
14
Eliminating classes (reqs. 7 9)
implementation
accounting records
accounting information
tax information
tax records
redundant
customers
system
good classes
car maintenance
periodic messages
15
Locating classes and objects candidate classes
(reqs. 10 15)
parking spot
monthly report
customers
dup
dup
owners
accounts DB
dup
imp
analysis report
account number
att
customer information
dormant account
att
att
services
dup
16
Eliminating classes (reqs. 10 15)
attribute
implementation
customer information
accounts DB
account number
dormant account
good classes
redundant
monthly report
customers
owners
analysis report
parking spot
services
17
Locating classes and objects candidate classes
(all requirements)
personal check
dormant accounts
paper bill
date of purchase
owner
periodic messages
account numbers
customer
purchase
gas station
results
accounting records
cash
credit card
discounts
gas
account
services
tax
maintenance
gas station owner
prices
warning letters
car
system
credit history
parking spots
bills
late-payers
inventory
regular customers
new parts
order
low inventory
accounts
PIN
name
gas ordering system
parts system
birthday
address
credit card system
18
Locating classes and objects good classes (all
requirements)
warning letters
parts
purchase
accounts
inventory
report
parking spot
services
bill
gas
periodic messages
car maintenance
19
Gas station classes
gas ordering system
Part
Customer
part_number
name
price
parts ordering system
address
discount rate
PIN
min_quantity 2
birthday
current_quantity
CC system
car maintenance
price
warning letters
account
bill
text
account_number
date
gas
price
inventory
discount rate
Purchase
min_quantity 100
date
parking spot
current_quantity
tax 5
place
periodic messages
text
gas station owner
20
Structuring Classes (first version)
periodic messages
text
Customer
name
address
PIN
warning letters
birthday
text
account
account_number
CC system
bill
gas station owner
issue date
Purchase
payment date
date
Part
tax 5
part_code
car maintenance
price
discount rate
price
gas
min_quantity 2
parking spot
current_quantity
price
place
discount rate
inventory
price
min_quantity 100
current_quantity
gas ordering system
parts ordering system
21
Structuring Classes (second version)
22
Structuring Classes (third version)
message
text
periodic messages
bill
issue date
Customer
payment date
warning letters
name
address
price()
SSN
taxes()
1..
0..
0..
1..
birthday
Purchase
1
1
account_number
CC system
date
tax 0.05
1
1
1..
1..
services
price()
0..
0..
taxes()
car maintenance
discount rate
price 150.00
parking spot
price()
parking
0..1
0..1
place
price()
price 5.00
1
1
is_available()
0..
0..
refuel
Part
gallons
gas
price 1.09
part_code
0..
0..
min_quantity 100
price
1
1
discount rate
current_quantity
price()
1
1
min_quantity 2
current_quantity
inventory
1
1
1
1
1..
1..
order_gas()
gas ordering system
order_part()
parts ordering system
Write a Comment
User Comments (0)