A Borrower Has Many Books
Suppose we need to navigate from a borrower to the books checked out,
and also from a book back to the borrower.
This is modelled with a bidirectional association in Rose,
equivalent to an inverse reference in JADE.
Instructions- Select the
Association tool in the toolbox.
To add the tool if it is not available,
right-click the tool box and select Customise... from the popup menu.
- Click and drag from the Borrower class symbol to the Book class symbol.
An association arrow appears.
- Double-click the arrow.
The Inverse Specification dialog is displayed.
- Complete the dialog as shown and click the OK button.
|