UML基本架构建模--给通用机制建模时的注意事项

When you adorn a model with notes,

lUse notes only for those requirements, observations, reviews, and explanations that you can

lUse notes as a kind of electronic sticky note, to keep track of your work in progress.

当你在用备注修饰模型时,

When you draw notes,

t clutter your models with large blocks of comments. Rather, if you really need a long comment, use notes as a placeholder to link to or embed a document that contains the full comment.

当你在画备注时,,

When you extend a model with stereotypes, tagged values, or constraints,

lStandardize on a small set of stereotypes, tagged values, and constraints to use on your project, and avoid letting individual developers create lots of new extensions.

lChose short, meaningful names for your stereotypes and tagged values.

lWhere precision can be relaxed, use free-form text for specifying constraints. If you need rigor, use the OCL to write constraint expressions.

When you draw a stereotype, tagged value, or constraints,

lUse graphical stereotypes sparingly. You can totally change the basic notation of the UML with stereotypes, but in so doing you’ll make it impossible for anyone else to understand your models.

lConsider using simple color or shading for graphical stereotypes, as well as more complicated icons. Simple notations are generally the best, and even the most subtle visual cues can go a long way in communicating meaning.

往往教导我们大家要好好学习天天向上,

UML基本架构建模--给通用机制建模时的注意事项

相关文章:

你感兴趣的文章:

标签云: