- Tool to express
Design Patternin UML 2.0 - Write
interactionof the roles that objects play in specific situations
Collaboration diagramused in UML 1. X was changed toCommunication diagramin 2.0. The diagram name is different depending on the version, so be careful not to get confused.
How to write
- Use dotted oval symbol
- Expresses the roles that require cooperation within the oval and the connections between them
- When you want to specify the class of the role, express it as
<role_name>:<class_name>
collaboration

- Collaboration showing collateral loan relationships
- The roles
borrower,borrower, andcollateralare required.- Connect these roles with connectors because cooperation between them is required.
- Collaboration is an abstraction of the interaction of roles.
- Can be reused in many system developments if applied in special situations
Collaboration Occurrence
Application to special situations for collaboration
Collaboration Occurence expresses the application of collaboration in a specific situation.

Collateral loancollaboration is applied when a bank borrows money using a house as collateral.- Borrower = Bank
- Collateral = house
- Borrower = person
- In this case,
bank home mortgage loanis an example ofmortgage loanand is a collaboration occurrence.