UML该元素的行为为基础的元素
Behavioral thingsare 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, aninteraction 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, astate machineis 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 anaction. 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 various structural elements, primarily classes, collaborations, and objects.
?
另外,狀態機和活動是建立UML該模型的行為的基本元件的三種元素.語義,所有這些元件經常被用來連接各種結構元件的,大類,協作和對象.
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的UML该元素的行为为基础的元素的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 做梦梦到下体出血是什么征兆
- 下一篇: 解密阿里云七武器之高性能消息服务ONS