UML的基础元件之行为元件.doc_第1页
UML的基础元件之行为元件.doc_第2页
UML的基础元件之行为元件.doc_第3页
UML的基础元件之行为元件.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Behavioral things are the dynamic parts of UML models. These are the verbs of a model, representing behavior over time and space. In all, there are three primary kinds of behavioral things.行为元件是UML模型的动态部分它们是模型的动词,代表在时间和空间的行为主要有三类行为元件First, an interaction is a behavior that comprises a set of messages exchanged among a set of objects or roles within a particular context to accomplish a specific purpose. The behavior of a society of objects or of an individual operation may be specified with an interaction. An interaction involves a number of other elements, including messages, actions, and connectors (the connection between objects). Graphically, a message is rendered as a directed line, almost always including the name of its operation.第一个交互行为,由一组消息构成,作用是为了达到某个目的,在对象集或角色之间交换指定文本通过交互来指定外部对象或是个别操作的行为交互包含大量的其它元素,其中包括消息,行动和连接器(连接两个对象)消息的图形表现为一个带有方向的直线,直线上方通常总是显示操作的名称Second, a state machine is a behavior that specifies the sequences of states an object or an interaction goes through during its lifetime in response to events, together with its responses to those events. The behavior of an individual class or a collaboration of classes may be specified with a state machine. A state machine involves a number of other elements, including states, transitions (the flow from state to state), events (things that trigger a transition), and activities (the response to a transition). Graphically, state is rendered as a rounded rectangle, usually including its name and its substates, if any.第二个状态机,这个行为用来说明对象或是交互响应某个事件期间的状态序列,同时也包含那些事件的应答个别的类或是协作的类,它们的行为可能需要状态机来描述状态机包含大量的其它元素,诸如状态,转换(从一个状态流转到另一状态),事件(触发一个转换的事物),活动(对一个转换的响应)图形表现上,用一个圆角矩形框来表示状态,通常包含有该状态的名称,如果它有子状态的话,也将包含在里面Third, an activity is a behavior that specifies the sequence of steps a computational process performs. In an interaction, the focus is on the set of objects that interact. In a state machine, the focus is on the life cycle of one object at a time. In an activity, the focus is on the flows among steps without regard to which object performs each step. A step of an activity is called an action. Graphically, an action is rendered as a rounded rectangle with a name indicating its purpose. States and actions are distinguished by their different contexts.第三个活动,这个行为用来描述执行计算过程时所需步骤的次序在交互中,关键点是对象们之间的相互作用;在状态机中,关键点是一个对象在一个时间点的生命周期在活动中,关键点是对象自动执行每一步的过程活动中的一个步骤被称为行动在图形表现上,行动同样是由一个圆角矩形框代表,里面的名称用来标识行动的目标状态和行动是通过它们的内容进行区分These three elements - interactions, state machines, and activities - are the basic behavioral things that you may include in a UML model. Semantically, these elements are usually connected to va

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论