UML Designer User's Guide
Once you have defined a thing and its responsibilities, you can use them to
automatically generate a protocol. When generating a protocol, UML
Designer assumes the default mapping of one message specification for each
responsibility, and it uses the names of the responsibilities to generate a
default message name. You can change this afterward if the generated
message name is not satisfactory. You can also make other manual
changes, like adding message specifications, splitting a protocol into two, or
merging two protocols into one.
We've defined several responsibilities for the thing
Catalog, so we can now generate a protocol that
implements the thing. To generate a protocol for
Catalog, follow these steps:
- Select Things in the middle pane of the Relationships
Browser.
- Select Catalog from the list of things.
- Select Transforms>Generate Protocol from the pop-up menu
of Catalog.
- In the window that appears, select Catalog from the
Protocol Names list.
- You can specify several options that affect the generated protocol:
- If you select Delete Existing Messages, the messages in an
existing protocol will be deleted before the new messages are
generated. (This option is available only if you are regenerating an
existing protocol.)
- If you select Overwrite Existing Messages, the messages in an
existing protocol will be overwritten, but you can still reload them if you
want to get them back. (This option is available only if you are
regenerating an existing protocol.)
- If you select Generate Associations, UML Designer will create
associations between the generated messages and the responsibilities they
implement. (This option is selected by default.)
- If you select Generate Messages, UML Designer will generate
messages in the protocol. Otherwise, the generated protocol is
empty. (This option is selected by default.)
For our example, accept the default options and select OK to
generate the protocol.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]