按用例分组(实例:实现已知用例的类分为一组)。
Grouping by use case (example: the classes that implement a given use case are grouped).
uml模型(顺序图、用例、类图)。
当我们从用例图转入到序列图和类图时,马上就会注意到已知的参与者的影响。
As we move from use case diagrams into sequence and class diagrams, we will immediately notice the impact of known actors.
从用例到设计类的转化过程是缓慢的,需要进行多次的迭代。
The migration from use cases to design classes was slow, requiring a number of iterations.
在此例中,你将会在你的图表中为此前建模的每个工具类创建一个用例,以后它们就代表我们系统的主要功能。
In this example, you will create a use case in your diagram for each of the previously modeled utility classes, since they represent the main functionality of our system.
有什么方法比通过提供一个用例编码集来记录一个类效果更好呢?
What better way to document a class than to provide a coded set of use cases.
接下来的一步涉及到了从以上描述的各种模型(用例、类模型及显示信息流的交流图)中进行的计算。
The next steps involve computing from the different models described above - Use Case, Class model and Interaction diagram showing the flow of messages.
在分析阶段,我们的用例实现只包括分析类及分析对象,它们能组装成不同的UML图如类图和交互图。
In analysis, our use case realization contains only analysis classes and objects, which may populate various UML diagrams such as class diagrams and interaction diagrams.
用于类方法并返回函数的用例仅利用您的创造力进行限定。
The use cases for class methods that return functions is limited only by your creativity.
从用例和分析类到设计和设计类的转化是不可避免的模糊的。
The transition from use cases and analysis classes to design and design classes was unavoidably blurry.
这个类将通过用例情节串连板(看下一点)中的主屏幕被典型地反映出来。
This class will typically be mirrored by a main screen in the use case storyboard (see next point).
另外,你可以从用例中产生序列图,协作图和类图。
In addition, you can produce sequence diagrams, collaboration diagrams, and class diagrams from use cases.
它也包括了可选择输入的一些其他工作产品,像用例实现,分析类,术语表等等。
It has several other work products as optional inputs, such as use-case realization, analysis class, glossary, and so on.
增强的大纲视图——序列图的“大纲视图”会显示出用例中的所有类和调用。
Enhanced Outline View - the sequence diagram's 'Outline View' shows all the classes and calls in the use case.
设想如果每个用例中有数十个类,哪一种模型更容易阅读呢?
Imagine if there were dozen of classes in each case — which one would be the most readable?
两个特殊的原型类被使用:业务角色和业务用例。
Two special stereotyped classes were used: business actors and business use cases.
从用例和类表出发,我们从类里选择需要交互的对象,然后构造一张序列图表示这种交互。
Starting with our use case and list of classes, we choose objects from those classes to interact, and we construct a SQD to show that interaction.
在面向对象的编程用例中,这些模型清楚地展示了连接到用例地类和方法。
In the case of object-oriented programming, these models clearly lay out the classes and methods linked to a use case.
这个用例控制类表示的是一个尚未进一步定义的类,它的职责是从用户那里接收事件和消息。
This Use Case Controller class represents a generic placeholder to receive events and messages from the human actor.
让我们用一个普通样例类(如清单3所示)来建模用户。
Let's take a sample trivial class for modeling users, as shown in Listing 3.
例子是用例、用例模型、业务规则、类、类图、序列图、数据模型和补充规约。
Examples are use cases, use case models, business rules, classes, class diagrams, sequence diagrams, the data model, and supplementary specifications.
用例既不是类规范,也不是数据规范。
A use case is neither a class specification nor a data specification.
根据RUP过程,这一步的目的是找出分析类的候选范围,这些类合作起来,可以完成用例的所有行为。
According to RUP, the purpose of this step is to identify a candidate set of analysis classes which will be capable of performing the behavior described in our use cases.
这些是包含用例扩展功能集合的类。
These are the classes that contain the extended set of functions for the use case.
但是迄今为止,我们还没有任何对象和类,因此我们需要从用例中去发现这些对象和类。
But so far we don't have any classes or objects yet, so we have to discover the classes that we will need to carry out the process in our use cases.
那就是单元测试:一系列记录类所做工作的用例代码,提供输出控制。
That's what these unit tests are: a set of coded use cases that document what a class does, given a controlled set of inputs.
找出用例中的执行流程、事件的各个类。
To identify the classes that perform the various flows of events in a use case.
图22:分析用例之中具体的和公共的实现类。
Figure 22: Analyzing specific and common implementation classes among use cases.
UM l类图表示业务用例参与者—包括业务操作者和业务参与者—以及他们的关系的静态视图。
A UML class diagram representing the static view of the business use case participants — including business workers and business actors — together with their relationships.
在从用例向设计类转化的过程中,我们希望能够实现。
In moving from use cases to design classes, we hoped to achieve the following.
应用推荐