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

lwd2k 2001-10-09 07:58:21
麻烦讨论一下在UML中使用:边界类,控制类,实体类 的心得?
...全文
2573 33 打赏 收藏 举报
写回复
用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)
代码下载链接: https://pan.quark.cn/s/a4b39357ea24 用户账户控制(UAC)白名单的配置 Windows7环境中 UAC(User Account Control,用户帐户控制)是由微软在Windows Vista版本中推出的一项旨在增强系统安全性的创新技术,该技术强制要求用户在执行可能干扰计算机正常运作的操作或进行更改会波及其他用户设置的变动前,必须提供相应的权限或管理员密码进行验证。通过对这些操作启动前进行授权确认,UAC能够有效阻止恶意软件及间谍软件在未获授权的状态下于计算机内进行安装或实施修改。 自从Vista版本问世以来,微软便开始推行这一全新的安全机制,可视为对系统安全防护的显著提升。尽管UAC确实能够在一定程度上对某些非法程序起到防御作用,但与此同时,这一功能也给众多用户带来了诸多不便。 因此,许多用户开始探寻是否存在类似于白名单的功能,以便将那些值得信赖的程序直接赋予运行权限。事实上,这类功能确实存在,不过微软并未将其作为标准配置提供。 网络上关于此问题的绝大多数建议都是建议禁用UAC,这种说法显然缺乏针对性,因为若用户希望禁用此功能,本就不会提出相关疑问。 通过运用微软官方发布的Microsoft Application Compatibility Toolkit 5.6版本,可以将信任的程序纳入系统白名单范畴。 获取Application Compatibility Toolkit 安装程序成功后会出现三个可执行文件 以管理员身份启动Compatibility Administrator 在Custom DataBases部分创建新的数据库,并添加一个Application Fix(在下方空白处点击右键,选择...

1,268

社区成员

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

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