Sequence Diagram “Generated From Code”
problem_domain
This sequence diagram was generated automatically by Together based on existing source code. To do this, simply right-click on operation in class diagram and choose "Generate Sequence Diagram" speedmenu choice.
Diagram Node Summary
Object
Object
Sequence: 1
Sequence: 1.1
Sequence: 1.2
Object
Sequence: 1.2.1
Object
Sequence: 1.2.1.1
Sequence: 1.2.1.1.1
Sequence: 1.2.1.1.1.1
Sequence: 1.2.1.1.1.1.1
Sequence: 1.2.1.1.1.1.2
Sequence: 1.2.1.1.1.1.2.2
Sequence: 1.2.1.1.1.2
Sequence: 1.2.1.1.2
Object
Sequence: 1.2.1.1.1.1.2.1
Sequences
Number Type Description Node
1 Message Object1 initial
Activation1
1.1 Self Message initial
Operation:
getDetails():Enumeration
Return:
iter
Activation2
1.2 Statement Block initial
Statement Type:
while
Statement Expression:
iter.hasMoreElements()
StatementBlock1
1.2.1 Message initial detail
Activation3
1.2.1.1 Message detail product
Operation:
calcPriceForQty(int):BigDecimal
Arguments:
qty
Return:
price
return arrow
Activation4
1.2.1.1.1 Self Message product
Operation:
getPrice():BigDecimal
Return:
price
Activation5
1.2.1.1.1.1 Statement Block product
Statement Type:
if
Statement Expression:
priceObjects.size() != 0
StatementBlock2
1.2.1.1.1.1.1 Self Message product
Operation:
listPriceObjects():Enumeration
Return:
iter
Activation6
1.2.1.1.1.1.2 Statement Block product
Statement Type:
while
Statement Expression:
iter.hasMoreElements()
StatementBlock3
1.2.1.1.1.1.2.1 Message product prodPrice
Operation:
isValidOnDate(Date):boolean
Arguments:
today
Activation7
1.2.1.1.1.1.2.2 Statement Block product
Statement Type:
if
Statement Expression:
prodPrice.isValidOnDate(today)
StatementBlock4
1.2.1.1.1.1.2.2.1 Message product prodPrice
Operation:
getPrice():BigDecimal
Return:
price
Activation8
1.2.1.1.1.2 Statement Block product
Statement Type:
else
StatementBlock5
1.2.1.1.2 Statement Block product
Statement Type:
if
Statement Expression:
qty > 1
StatementBlock6
Diagram Node Detail
Object "Object1"
Stereotype:
actor
All Outgoing Links
Message
to Object initial
Sequence Number:
1

Object "initial"
All Outgoing Links
Message
to Object detail
Sequence Number:
1.2.1
Self Message
to Object initial
Sequence Number:
1.1
Dependency
to Class CashSale (in Package Diagram problem_domain)

Object "detail"
All Outgoing Links
Message
to Object product
Sequence Number:
1.2.1.1
Dependency
to Class CashSaleDetail (in Package Diagram problem_domain)

Object "product"
All Outgoing Links
Message
to Object prodPrice
Sequence Number:
1.2.1.1.1.1.2.1
Message
to Object prodPrice
Sequence Number:
1.2.1.1.1.1.2.2.1
Self Message
to Object product
Sequence Number:
1.2.1.1.1
Self Message
to Object product
Sequence Number:
1.2.1.1.1.1.1
Dependency
to Class ProductDesc (in Package Diagram problem_domain)

Object "prodPrice"
All Outgoing Links
Dependency
to Class ProductPrice (in Package Diagram problem_domain)