UP4-COM-enterItem.txt
1 |
@startuml |
---|---|
2 |
|
3 |
scale 3.0 |
4 |
|
5 |
Object "<u>:Cashier" as C |
6 |
Object "<u>:Register" as R |
7 |
Object "<u>:Sale" as S |
8 |
Object "<u>:SalesLineItem" as SLI <<collection>> |
9 |
Object "<u>sl:SalesLineItem" as slSLI |
10 |
Object "<u>:ProductCatalog" as PC |
11 |
Object "<u>:ProductSpecification" as PS <<collection>> |
12 |
|
13 |
C -r- R : > enterItem(itemID, qty) |
14 |
R -d- PC : > 1: spec := getSpecification(itemID) |
15 |
PC -d- PS : > 1.1: spec := find(itemID) |
16 |
|
17 |
R -r- S : > 2: makeLineItem(spec, qty) |
18 |
S -d- slSLI : > 2.1: create(spec, qty) |
19 |
S -d- SLI : > 2.2 add(sl) |
20 |
|
21 |
|
22 |
@enduml |