In UML class diagrams, what are Boundary Classes, Control Classes, and Entity Classes?

前端 未结 5 1244
萌比男神i
萌比男神i 2020-12-07 07:15

I\'m now using NetBeans as my IDE-of-choice, and it has a plugin for UML modeling. In the class diagram, there are model elements known as Boundary Class,

5条回答
  •  误落风尘
    2020-12-07 07:46

    Boundary Control Entity pattern have two versions:
    - old structural, described at 127 (entity as an data model elements, control as an functions, boundary as an application interface)
    - new object pattern


    As an object pattern:
    - Boundary is an interface for "other world"
    - Control in an any internal logic (like a service in DDD pattern)
    - Entity is an an persistence serwis for objects (like a repository in DDD pattern).
    All classes have operations (see Fowler anemic domain model anti-pattern)
    All of them is an Model component in MVC pattern. The rules:
    - Only Boundary provide services for the "other world"
    - Boundary can call only to Controll
    - Control can call anybody
    - Entity can't call anybody (!), only be called.

    jz

提交回复
热议问题