Description of some special properties StarUML nine, starUML of

UML 's extensibility mechanisms allow you to expand in a controlled manner UML language.

This type of mechanism includes: stereotype , tag values, constraints.

Stereotype expanded UML vocabulary that allows you to create new building blocks, these building blocks from existing inherited, but especially for your question.

Tag value extends the UML property building blocks that allow you to create new information in the specification element.

Constraints expanded UML semantic building blocks that allow you to add new rules or modify existing.

1, the Stereotype (version type, structure type, extended ......) - with the "" tag is a way to expand UML offers, UML is a common unified language, but for different fields of application and the actual situation, the user You can customize the extension to get more targeted modeling language. If UML is the official language, Mandarin Chinese, then use the resulting stereotype is defined dialect. Sometimes villagers and communication, dialect may be better to make.

It is used to mark to the design, conduct classified use, in short, its function is to add some marks on the existing type, similar to make a stamp to generate something new.

FIG stereotype view of the elements of class1 class2, stereotype default representation is critical
around the sharp double words plus bracket;

 

2: Tag- tag (the value in {} using UML element later with name)

<<subsystem>>stereotype{version = 3.2}是tag

 

In the right-view elements and model elements can be selected Tag

 

 

 

 

 3: Common relations Description Comments

0..1 0 or a 
1 only 1 
0 0 .. * or more 
* zero or more 
one or more 1 .. * 
3 only three 
0..5 0-5 a 
5..15 5-15 

Guess you like

Origin www.cnblogs.com/sun-null/p/12244025.html