标签:
Modeling Different Views of a System
建模系统的不同视图
When you model a system from different views, you are in effect constructing your system simultaneously from multiple dimensions. By choosing the right set of views, you set up a process that forces you to ask good questions about your system and to expose risks that need to be attacked. If you do a poor job of choosing these views or if you focus on one view at the expense of all others, you run the risk of hiding issues and deferring problems that will eventually destroy any chance of success.
当你从不同的视点为系统建模的时候,实际上是同时从多个维度上构建系统。通过选择正确的视图组建立一个过程,迫使你提出对系统有帮助的问题及免受不必要的攻击风险。如果你没有用心地选择这些视图或是在一张视图上花费太多的时间,隐藏问题和拖延问题产生的风险最终会破坏任何成功的机会。
To model a system from different views,
nDecide which views you need to best express the architecture of your system and to expose the technical risks to your project. The five views of an architecture described earlier are a good starting point.
nFor each of these views, decide which artifacts you need to create to capture the essential details of that view. For the most part, these artifacts will consist of various UML diagrams.
nAs part of your process planning, decide which of these diagrams you’ll want to put under some sort of formal or semi-formal control. These are the diagrams for which you’ll want to schedule reviews and to preserve as documentation for the project.
nAllow room for diagrams that are thrown away. Such transitory diagrams are still useful for exploring the implications of your decisions and for experimenting with changes.
从不同的视点建模系统要注意:
n决定哪个视图最适合表达你系统的架构,清楚项目中所使用技术存在的风险。想要有个良好的开端需要在早期对架构的五个视图进行描述。
n对于这些视图的每一个,你都需要决定创建哪个产品以捕获这些视图的基本细节。在大多数情况下,这五个产品将组合成各种UML图。
n决定使用正式的图还是非正式的图是你进程规划的一部分。那些正式的图将会保存成文档以便在今后的项目中回顾。
n允许会被丢弃的多余的图存在。这些临时性的图在探索决定和尝试改变时还是很有用的。
For example, if you are modeling a simple monolithic application that runs on a single machine, you might need only the following handful of diagrams.
nUse case view
Use case diagrams
nDesign view
Class diagrams (for structural modeling)
nInteraction view
Interaction diagrams (for behavioral modeling)
nImplementation view
Composite structure diagrams
nDeployment view
None required
举个例子,如果你正在建立一个运行在单个机器上的,简单且完整的应用模型,你只需要以下几个图:
n用例视图
用例图
n设计视图
类图(为结构建模)
n协作视图
协作图(为行为建模)
n实施视图
复合结构图
n部署视图
没有要求
If yours is a reactive system or if it focuses on process flow, you’ll probably want to include state diagrams and activity diagrams, respectively, to model your system’s behavior.
如果你构建的模型是反应系统或是侧重点是过程流,可能需要包含状态图和活动图来分别建模系统的行为。
Similarly, if yours is a client/server system, you’ll probably want to include component diagrams and deployment diagrams to model the physical details of your system.
同样地,如果构建的是客户/服务系统,就需要包含组件图和部署图以为系统的物理情况建模。
Finally, if you are modeling a complex, distributed system, you’ll need to employ the full range of the UML’s diagrams in order to express the architecture of your system and the technical risks to your project, as in the following.
nUse case view
Use case diagrams
Sequence diagrams
nDesign view
Class diagrams (for structural modeling)
Interaction diagrams (for behavioral modeling)
State diagrams (for behavioral modeling)
Activity diagrams
nInteraction view
Interaction diagrams (for behavioral modeling)
nImplementation view
Class diagrams
Composite structure diagrams
nDeployment view
Deployment diagrams
最后,如果构建的是复杂的分布式系统模型,你需要为了表达系统的架构而采用全方位的UML图,也会在项目中引进下面的技术风险:
n用例视图
用例图
序列图
n设计视图
类图(为结构建模)
协作图(为行为建模)
状态图(为行为建模)
活动图
n协作视图
协作图(为行为建模)
n实施视图
类图
复合结构图
n部署视图
部署图
标签:
原文地址:http://blog.csdn.net/listen_snow/article/details/45574513