UML Designer User's Guide
For another Thing element, Catalog Entry, we defined several
responsibilities using the Value idiom. Let's see how
these responsibilities become protocol messages:
- Generate a protocol for Catalog Entry using the same procedure
you used for Catalog (select Transform>Generate
Protocol and accept the default options).
- After you generate the protocol, select Protocols from the list
of relationships and then select the new protocol,
<CatalogEntry>.
- Double-click on <CatalogEntry> to open a browser on the
protocol.
- In the middle pane of the new browser, select Messages.
You should see a list of messages defined in the protocol:
- accessionNumber
- accessionNumber:
- author
- author:
- title
- title:
These messages are the getters and setters for the values kept by the
catalog entry. UML Designer automatically generated these messages
based on the three responsibilities we specified for the
CatalogEntry Thing.
- In the middle pane of the browser, select Attributes.
You should see a list of attributes defined in the protocol:
- accessionNumber
- author
- title
These attributes represent the values kept by the catalog entry. UML
Designer also generated these attributes based on the three responsibilities
we specified for the CatalogEntry Thing.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]