(翻譯)13.1 Summary

This clause specifies the core concepts underlying all behavioral modeling in UML. Structural models of Classifiers in UML define the allowable instances that may exist at any point in time, what values their StructuralFeatures may have and how those instances may be related to each other. Behavioral modeling, on the other hand, models how these instances may change over time.

本節定義UML中行為建模的核心概念。UML中類目的結構模型規定了可能存在於任何時刻的實例,它們的結構特徵會有什麼樣的值,這些實例彼此之間如何聯繫。

UML provides Behavior, Event, and Trigger constructs to model the corresponding fundamental concepts of behavioral modeling.

UML提供了行為,事件,觸發條件等結構來展示對應的行為建模的基本概念。

Behavior is the basic concept for modeling dynamic change. Behavior may be executed, either by direct invocation or through the creation of an active object that hosts the behavior. Behavior may also be emergent, resulting from the interaction of one or more participant objects that are themselves carrying out their own individual behaviors.

行為是對動態變化建模的基本概念。通過直接調用或者創建擁有行為的主動對象可以使行為被執行。作為一個或多個參與者對象執行它們自身擁有的獨立行為的結果,行為也有可能被意外(?)執行。

Dynamic behavior results in events of interest that occur at specific points in time. Such events may be implicit, occurring on the change of some value or the passage of some interval of time. They may also be explicit, occurring when an operation is called or an asynchronous signal is received.

動態行為導致它所關注的事件在特定時間發生。這些事件可能是暗示的,如果某些值的變化,或者是一段時間經過。它們也可以是明確的,一個操作被調用或者一個非同步信號被接收。

The occurrence of an event may then trigger new behavior, or change the course of already executing behavior. Explicit events thus provide the basic mechanism for communication between behaviors, in which an action carried out in one behavior, such as calling an operation or sending a signal, can trigger a response in another behavior.

一個事件的發生可能觸發新的行為,或者改變執行中的行為的進程。明確的事件提供了行為之間通信的基本機制,行為中動作的執行,例如調用一個操作或者發送一個信號,可以觸發其他行為的反應。

The remainder of this clause further details the fundamental UML modeling mechanisms of Behaviors, Events and Triggers. These mechanisms then provide the framework for the specification in the following clauses of various complete UML behavioral modeling constructs.

本節其餘的部分進一步詳細說明UML中有關行為,事件和出發條件基本的建模機制。這些機制提供了後續章節中各種完全的UML行為建模時利用的框架。

以上就是今天的文章,歡迎點贊,關注並推薦給您的朋友!

閱讀更多更新文章,請關注【面向對象思考】微信公眾號!

推薦閱讀:

OOD 高頻面試題 | 如何設計一個ATM
EA&UML日拱一卒--序列圖(Sequence Diagram)::並行和臨界區
(翻譯)14.1 Summary
設計模式剖析
活動圖::SendSignalAction

TAG:面向對象編程 | 面向對象分析與設計 | UML建模 |