小寒的blog
Programming is a darned hard thing—but I am going to like it.

Domain Model

An object model of the domain that incorporates both behavior and data.

For a full description see P of EAA page 116

At its worst business logic can be very complex. Rules and logic describe many different cases and slants of behavior, and it's this complexity that objects were designed to work with. A Domain Model creates a web of interconnected objects, where each object represents some meaningful individual, whether as large as a corporation or as small as a single line on an order form.

领域模型

合并了行为和数据的领域对象模型

    在最糟的情况下,业务逻辑可能非常的复杂。规则和逻辑描述了行为上许多不同的条件和变化,而对象就是被设计用来解决的这些复杂性的。领域模型创建了一个互相交互对象组成的网,这里每个对象都扮演某个有意义的个体, 这些对象大可以到一个公司,小可以到订单中的一行。

posted on 2008-01-16 20:06  xhan  阅读(411)  评论(0编辑  收藏  举报