Using Enterprise Architect Elements
Creating an instance from a Class
UPDM has Classifier/Instance pairs where the classifier describes a class of elements and the instance represents a single member of that Class. The Classifier/Instance pairs in UPDM are:
If you have an element that is the classifier part of one of these Classifier/Instance pairs, you can choose between two main approaches for creating the instance:
- Set the classifier of an existing instance - Click on the instance element in a diagram and then either press or right-click and select 'Advanced | Instance Classifier'; the same command sets the type of a Port or Part.
- Create an instance from an existing classifier - Press Browser window onto a diagram. The 'Paste Element' dialog displays; select the 'Paste as Instance of Element' option. An anonymous instance is created with the appropriate stereotype; select the instance, press and give it a name. while dragging the classifier element from the
Set the run state of an object
Where a classifier can own a set of attributes, an instance of that classifier can own a Slot for each attribute. The set of assigned values for these Slots is known as the run state. To set the run state of an object on a diagram, right-click on it and select 'Features | Set Run State' or press.
Some stereotypes are defined by UPDM as extending the Slot metaclass. Each run state attribute represents a Slot, but it is not possible to stereotype Slots in Enterprise Architect, so UPDM's slot-extending stereotypes are not available in Enterprise Architect's implementation. UPDM stereotypes that extend Slot are:
- ActualMeasurement (ActualMeasurementSet)
- ActualOrganizationRole (ActualOrganization)
- MeasureOfPerformance (ActualMeasurementSet)
- ProjectStatus (ActualProjectMilestone)
Some stereotypes in UPDM are defined as extending the UML Property metaclass. This gives you the choice of a number of different representations for these elements in your model. If you drag one of the properties from the Toolbox onto a classifier element on a diagram, you are prompted to select to create an attribute, a Part, or a Port. These are all different representation of the UML Property metaclass; which one you choose depends on what rendering of the Property you want to see in your model.
Another representation of the UML Property metaclass is the Association End; to apply one of UPDM's Property stereotypes to an Association End:
- Double-click on the element to display the 'Properties' dialog.
- Select the 'Roles' tab.
- Click on the button next to the appropriate 'Stereotype' field.
- On the 'Stereotype for Association' dialog, select 'UPDM' from the 'Profile' field.
- Select every stereotype that applies.
Stereotypes that extend Property are: