UML基本架构建模--给类建模时的注意事项


 

When you model classes in the UML, remember that every class should map to some tangible or conceptual abstraction in the domain of the end user or the implementer. A well-structured class

1.Provides a crisp abstraction of something drawn from the vocabulary of the problem domain or the solution domain.

2..Embodies a small, well-defined set of responsibilities and carries them all out very well

3.Provides a clear separation of the abstractions specification and its implementation.

4.Is understandable and simple, yet extensible and adaptable.

When you draw a class in the UML, 

1.Show only those properties of the class that are important to understanding the abstraction in its context.

2.Organize long lists of attributes and operations by grouping them according to their category.

3.Show related classes in the same class diagrams,

 

当你在UML中构建类模型时,记住每个类都将映射到终端用户或实施者领域内的真实的或概念上的抽象事物.一个良好结构的类:

1.为来自问题领域或是解决方案领域的词汇表的某事物规定清晰的抽象.

2.体现一组短小并具有良好定义的职责,它们都能很好的执行.

3.在抽象事物的规范和实施之间规定清晰的分离.

4.是可以理解的,简单的,具有可扩展性和适应性.

当你在UML中画某个类时,

1.类的重要的,能理解这个抽象事物的上下文的属性才被显示.

2.在组织很长一列的属性和操作时,把它们按照类型进行分组.

3.在同一个类图中显示关联的类.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值