Common Mechanisms
通用機制
The UML is made simpler by the presence of four common mechanisms that apply throughout the language: specifications, adornments, common divisions, and extensibility mechanisms. This chapter explains the use of two of these common mechanisms: adornments and extensibility mechanisms.
通過4個通用機制使得UML更簡單,它們將利用遍及這門語言:詳述,修飾,公共部份和擴大機制.這章講授其中兩個通用機制的用法:修飾和擴大機制.
Notes are the most important kind of adornment that stands alone. A note is a graphical symbol for rendering constraints or comments attached to an element or a collection of elements. You use notes to attach information to a model, such as requirements, observations, reviews, and explanations.
備注是最重要的1類修飾,需要單獨說明.1個備注是1個表達束縛或是為1個元件或是1個元件集合附加注釋的圖形符號.你使用備注為1個模型附加信息,如需求,資料,回顧和說明.
The UML’s extensibility mechanisms permit you to extend the language in controlled ways. These mechanisms include stereotypes, tagged values, and constraints. A stereotype extends the vocabulary of the UML, allowing you to create new kinds of building blocks that are derived from existing ones but that are specific to your problem. A tagged value extends the properties of a UML stereotype, allowing you to create new information in that element’s specification. A constraint extends the semantics of a UML building block, allowing you to add new rules or modify existing ones. You use these mechanisms to tailor the UML to the specific needs of your domain and your development culture.
UML的擴大機制允許你在可控的方式內擴大這門語言.這些機制包括模式化,標簽值和束縛.1個模式化是擴大UML的辭匯表,允許你從已存在的辭匯中提取,專門針對你的問題創建1個新的構建塊,1個標簽值擴大UML模式化的特性,允許你在那個元素的規則以內創建1個新的信息.1個束縛擴大UML構建塊的語義,允許你增加新的規則或是修改現有的規則.你使用這些機制來剪裁UML以適應你的領域和你的開發習慣的需要.