天生我才必有用,会须一饮三百杯。(UML,系统分析,设计)

lwd2k 2001-10-09 07:58:21
麻烦讨论一下在UML中使用:边界类,控制类,实体类 的心得?
...全文
2531 33 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
33 条回复
切换为时间正序
请发表友善的回复…
发表回复
dearxiaobao 2001-10-16
  • 打赏
  • 举报
回复
不知这与mvc有什么相似之处?
Againstwind 2001-10-15
  • 打赏
  • 举报
回复
真是一个睡觉的好地方!!!
可以看到折磨多评论,真是不错!!!
oocoolie 2001-10-13
  • 打赏
  • 举报
回复
我把边界类理解为每个form(当然还有与其它的外界对象有交流的,但我的程序只有form)

把实体类理解为数据库的表

控制类是中间的协调对象

redswordsite 2001-10-12
  • 打赏
  • 举报
回复
Control classes provide coordinating behavior in the system. The system can perform some use cases without control classes (just using entity and boundary classes) - particularly use cases that involve only the simple manipulation of stored information. More complex use cases generally require one or more control classes to coordinate the behavior of other objects in the system. Examples of control classes include transaction managers, resource coordinators and error handlers.
Control classes effectively de-couple boundary and entity objects from one another, making the system more tolerant of changes in the system boundary. They also de-couple the use-case specific behavior from the entity objects, making them more reusable across use cases and systems.
Control classes provide behavior that:
Is surroundings-independent (does not change when the surroundings change).
Defines control logic (order between events) and transactions within a use case. Changes little if the internal structure or behavior of the entity classes changes.
Uses or sets the contents of several entity classes, and therefore needs to coordinate the behavior of these entity classes.
Is not performed in the same way every time it is activated (flow of events features several states).
redswordsite 2001-10-12
  • 打赏
  • 举报
回复
Entity objects represent the key concepts of the system being developed. Entity classes provide another point of view from which to understand the system because they show the logical data structure, which can help you understand what the system is supposed to offer its users.
A frequent source of inspiration for entity classes are the Glossary (developed during requirements) and a business-domain model (developed during business modeling, if business modeling has been performed).
Sometimes there is a need to model information about an actor within the system. This is not the same as modeling the actor (actors are external, by definition). Thus, a naming convention should be employed for naming the system classes that hold actor information (e.g., class StudentActor for the actor and Student for the entity class, or Student for the actor and StudentInfo, for the entity class).
redswordsite 2001-10-12
  • 打赏
  • 举报
回复
A boundary class intermediates the interface to something outside the system. Boundary class insulate the system from changes in the surroundings (changes in interfaces to other systems, changes in user requirements, etc.), keeping these changes from affecting the rest of the system.
A system may have several types of boundary classes:
User interface classes - classes which intermediate communication with human users of the system.
System interface classes - classes which intermediate communication with other systems.
Device interface classes - classes which provide the interface to devices which detect external events.
Boundary classes may be used as “holding places” for GUI classes. The objective is not to do GUI design in analysis, but to isolate all environment-dependent behavior. The expansion, refinement and replacement of these boundary classes with actual user interface classes (probably derived from purchased UI libraries) is a very important activity of Class Design, and will be discussed in the Class Design module.
fltwt 2001-10-12
  • 打赏
  • 举报
回复
SUN的j2ee-petstore的例子,结合他的PATTERN的文挡,对于边界,控制,实体有比较详细的描述。结合,源代码分析,就更清晰了。
hellon1 2001-10-12
  • 打赏
  • 举报
回复
太多了
控制类:一般一个USE CASE 有一个控制类(太简单的没有,如登陆),
实体类:描述数据实体的,如:学生类,雇员类等
边界类:和USE CASE 打交道的类
可能说的不具体,UML中有介绍
new_life 2001-10-11
  • 打赏
  • 举报
回复
gz
cen 2001-10-11
  • 打赏
  • 举报
回复
Java源码
fpgzs 2001-10-11
  • 打赏
  • 举报
回复
gz
Jeffery__Chen 2001-10-11
  • 打赏
  • 举报
回复
gz
青润 2001-10-10
  • 打赏
  • 举报
回复
当然有,如果要例子,最好还是去看RUP中给的实例,已经比较全面了,公司里的不方便拿给别人。
lwd2k 2001-10-10
  • 打赏
  • 举报
回复
有没有用这种模式进行系统分析的?能否举例?
bbm 2001-10-10
  • 打赏
  • 举报
回复
同意qingrun(青润) 
青润 2001-10-10
  • 打赏
  • 举报
回复
这在UML方面的书籍中就已经有了他们功能和划分界定方式的详细描述。
我觉得那些描述已经基本上够用了。只是不知道您还想问哪些方面的?
lwd2k 2001-10-10
  • 打赏
  • 举报
回复
哪有MVC的分析例子?
programlover 2001-10-10
  • 打赏
  • 举报
回复
去找点MVC的资料看看吧!
lwd2k 2001-10-10
  • 打赏
  • 举报
回复
我先看看RUP。看来问的太抽象了。
稍晚结帖。
lwd2k 2001-10-10
  • 打赏
  • 举报
回复
谢谢。
加载更多回复(13)

1,268

社区成员

发帖
与我相关
我的任务
社区描述
软件工程/管理 管理版
社区管理员
  • 研发管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧