Modeling shared variable

1. Creating shared variable

To add shared variable follow these steps:
  1. At first we must have a Class with applied stereotype like slotted_exemplar etc.
  2. Go to the palette, expand Property folder and select shared_variable.
  3. Drop shared variable in properties compartment.

2. Editing shared variable options

Any UML element (with Magik stereotype applied) contains tags, which allow to edit specific generation options. Slot contains Common tags and tags listed below.

Name Values Function
flavour public, private or read_only Used in generation for changes in shared variable visibility.

Related concepts
Modeling with stereotypes

Related tasks
Common tags