www.久久久久|狼友网站av天堂|精品国产无码a片|一级av色欲av|91在线播放视频|亚洲无码主播在线|国产精品草久在线|明星AV网站在线|污污内射久久一区|婷婷综合视频网站

當(dāng)前位置:首頁(yè) > 芯聞號(hào) > 充電吧
[導(dǎo)讀] 英文原文來(lái)自UML2.5,作者提供中文翻譯。 14.2.3.5 ConnectionPointReference(連接點(diǎn)引用) As noted above, a connection

英文原文來(lái)自UML2.5,作者提供中文翻譯。


14.2.3.5 ConnectionPointReference(連接點(diǎn)引用)


As noted above, a connection point reference represents a usage (as part of a submachine State) of an entry/exit point defined in the StateMachine referenced by the submachine State. Connection point references of a submachine State can be used as sources/targets of Transitions. They represent entries into or exits out of the submachine StateMachine referenced by the submachine State.

就像前面提到的那樣,連接點(diǎn)引用表現(xiàn)的是子狀態(tài)機(jī)狀態(tài)對(duì)于定義在狀態(tài)機(jī)中的進(jìn)入/退出點(diǎn)的引用。子狀態(tài)機(jī)狀態(tài)的連接點(diǎn)引用可以用作遷移源和遷移目標(biāo)。連接點(diǎn)引用表現(xiàn)的是被子狀態(tài)機(jī)狀態(tài)引用的進(jìn)入子狀態(tài)機(jī)的入口和離開(kāi)子狀態(tài)機(jī)的出口。


Connection point references are sources/targets of Transitions implying exits out of/entries into the submachine StateMachine referenced by a submachine State.

連接點(diǎn)引用是遷移源或遷移目標(biāo)意味著離開(kāi)子狀態(tài)機(jī)的出口的和進(jìn)入子狀態(tài)機(jī)的入口被子狀態(tài)機(jī)狀態(tài)引用。


An entry point connection point reference as the target of a Transition implies that the target of the Transition is the entryPoint Pseudostate as defined in the submachine of the submachine State. As a result, the Regions of the submachine StateMachine are entered through the corresponding entryPoint Pseudostates.

進(jìn)入點(diǎn)連接點(diǎn)引用作為遷移的目標(biāo)意味著遷移目標(biāo)是定義在子狀態(tài)機(jī)狀態(tài)中的狀態(tài)機(jī)的進(jìn)入點(diǎn)偽狀態(tài)。作為結(jié)果,子狀態(tài)機(jī)的區(qū)域通過(guò)對(duì)應(yīng)的進(jìn)入點(diǎn)偽狀態(tài)被進(jìn)入。


An exit point connection point reference as the source of a Transition implies that the source of the Transition is the exit point Pseudostate as defined in the submachine of the submachine State that has the exit point connection point defined. When a Region of the submachine StateMachine reaches the corresponding exit point, the submachine state is exited via this exit point.

退出點(diǎn)連接點(diǎn)引用作為遷移的源意味著遷移的源是定義在子狀態(tài)機(jī)狀態(tài)中里的狀態(tài)機(jī)中的退出點(diǎn)偽狀態(tài)。當(dāng)子狀態(tài)機(jī)到達(dá)了對(duì)應(yīng)的退出點(diǎn),子狀態(tài)機(jī)狀態(tài)也從退出點(diǎn)退出。


14.2.3.6 FinalState(完了狀態(tài))


FinalState is a special kind of State signifying that the enclosing Region has completed. Thus, a Transition to a FinalState represents the completion of the behaviors of the Region containing the FinalState.

完了狀態(tài)是一種特殊的狀態(tài),表明包含它的區(qū)域已經(jīng)結(jié)束。就是說(shuō),遷移到完了狀態(tài)表示包含完了狀態(tài)的區(qū)域的行為已經(jīng)結(jié)束。


14.2.3.7 Pseudostate and PseudostateKind(偽狀態(tài)和偽狀態(tài)種類(lèi))


A Pseudostate is an abstraction that encompasses different types of transient Vertices in the StateMachine graph. Pseudostates are generally used to chain multiple Transitions into more complex compound transitions (see below). For
example, by combining a Transition entering a fork Pseudostate with a set of Transitions exiting that Pseudostate, we get a compound Transition that can enter a set of orthogonal Regions.


偽狀態(tài)是一種抽象,它包括了狀態(tài)機(jī)圖中各種瞬間通過(guò)的頂點(diǎn)。偽頂點(diǎn)通常被用于將多個(gè)遷移連接成更加復(fù)雜的復(fù)合遷移(參考下面的說(shuō)明)。例如,利用將一個(gè)進(jìn)入分叉?zhèn)螤顟B(tài)的遷移和一組離開(kāi)該分叉?zhèn)螤顟B(tài)的遷移組合起來(lái),可以得到用來(lái)進(jìn)入正交區(qū)域的復(fù)合遷移。


The specific semantics of a Pseudostate depend on the kind of Pseudostate, which is defined by its kind attribute of type PseudostateKind. The following describes the different kinds and their semantics:

偽狀態(tài)的具體語(yǔ)義依賴(lài)于偽狀態(tài)的種類(lèi),這是通過(guò)狀態(tài)的類(lèi)型為PsudostateKind的種類(lèi)屬性來(lái)定義的。


? initial - An initial Pseudostate represents a starting point for a Region; that is, it is the point from which execution of its contained behavior commences when the Region is entered via default activation. It is the source for at most one Transition, which may have an associated effect Behavior, but not an associated trigger or guard. There can be at most one initial Vertex in a Region.

初始-初始偽狀態(tài)表現(xiàn)了區(qū)域的開(kāi)始點(diǎn);也就是說(shuō),當(dāng)以默認(rèn)激活的方式進(jìn)入?yún)^(qū)域時(shí),它是區(qū)域中包含的活動(dòng)開(kāi)始執(zhí)行的位置。它最多是一個(gè)遷移的源,這個(gè)遷移可以有效果行為,但不能有關(guān)聯(lián)的觸發(fā)條件或監(jiān)護(hù)條件。一個(gè)區(qū)域中最多只能有一個(gè)初始頂點(diǎn)。


? deepHistory – This type of Pseudostate is a kind of variable that represents the most recent active state configuration of its owning Region. As explained above, a Transition terminating on this Pseudostate implies restoring the Region to that same state configuration, but with all the semantics of entering a State (see the sub clause describing State entry). The entry Behaviors of all States in the restored state configuration are performed in the appropriate order starting with the outermost State. A deepHistory Pseudostate can only be
defined for composite States and, at most one such Pseudostate can be contained in a Region of a composite State.

深 歷史-這種偽狀態(tài)是一種變量,保存的是包含它的區(qū)域在最近被激活時(shí)的狀態(tài)構(gòu)成。如前面所講,遷移進(jìn)入這個(gè)偽狀態(tài)就意味著將區(qū)域恢復(fù)到與最近離開(kāi)時(shí)相同的狀 態(tài)構(gòu)成,伴隨著所有進(jìn)入狀態(tài)的語(yǔ)義(參見(jiàn)狀態(tài)進(jìn)入的小節(jié))。被恢復(fù)狀態(tài)的所有進(jìn)入行為被從最外層狀態(tài)開(kāi)始按照恰當(dāng)?shù)捻樞驁?zhí)行。深歷史偽狀態(tài)只能在組合狀態(tài) 中被定義,而且組合狀態(tài)的一個(gè)區(qū)域中最多只能定義一個(gè)。


? shallowHistory – As explained above, this type of Pseudostate is a kind of variable that represents the most recent active substate of its containing Region, but not the substates of that substate. A Transition terminating on this Pseudostate implies restoring the Region to that substate with all the semantics of entering a State. A single outgoing Transition from this Pseudostate may be defined terminating on a substate of the composite State. This substate is the default shallow history state of the composite State. A shallowHistory Pseudostate can only be defined for composite States and, at most one such Pseudostate can be included in a Region of a composite State.

淺歷史-如前面所講,這類(lèi)偽狀態(tài)是一個(gè)變量,保存了包含它的區(qū)域的最近的活動(dòng)子 狀態(tài)。但不包含這個(gè)子狀態(tài)的(下級(jí))子狀態(tài)。遷移到這個(gè)偽狀態(tài)意味著將區(qū)域恢復(fù)到該子狀態(tài),同時(shí)伴隨著進(jìn)入狀態(tài)的語(yǔ)義??梢杂幸粭l離開(kāi)該偽狀態(tài)指向組合狀 態(tài)里的某個(gè)子狀態(tài)的遷移。這個(gè)子狀態(tài)是組合狀態(tài)的默認(rèn)淺歷史狀態(tài)。淺歷史偽狀態(tài)只能在組合狀態(tài)中被定義,而且組合狀態(tài)的一個(gè)區(qū)域中最多只能定義一個(gè)。


? join – This type of Pseudostate serves as a common target Vertex for two or more Transitions originating from Vertices in different orthogonal Regions. Transitions terminating on a join Pseudostate cannot have a guard or a?
trigger. Similar to junction points in Petri nets, join Pseudostates perform a synchronization function, whereby all incoming Transitions have to complete before execution can continue through an outgoing Transition.?

匯合-這種類(lèi)型的偽狀態(tài)為兩個(gè)或多個(gè)來(lái)自不同頂點(diǎn)的遷移提供目 標(biāo)頂點(diǎn),而這些源頂點(diǎn)處于不同的正交區(qū)域中。終止于匯合偽狀態(tài)的遷移不允許有監(jiān)護(hù)條件和觸發(fā)條件。類(lèi)似于Petri網(wǎng)絡(luò)中的接合點(diǎn),匯合偽節(jié)點(diǎn)實(shí)現(xiàn)同步功 能,只有在所有的進(jìn)入遷移都完成以后,才能繼續(xù)進(jìn)行離開(kāi)遷移。


? fork – fork Pseudostates serve to split an incoming Transition into two or more Transitions terminating on Vertices in orthogonal Regions of a composite State. The Transitions outgoing from a fork Pseudostate cannot have a guard or a trigger.

分叉-分叉?zhèn)螤顟B(tài)將一個(gè)進(jìn)入遷移分成兩個(gè)或多個(gè)遷移,它們終止于組合狀態(tài)的(不同的)正交區(qū)域。離開(kāi)分叉?zhèn)螤顟B(tài)的遷移不可以有監(jiān)護(hù)條件和觸發(fā)條件。


? junction – This type of Pseudostate is used to connect multiple Transitions into compound paths between States. For example, a junction Pseudostate can be used to merge multiple incoming Transitions into a single outgoing Transition representing a shared continuation path. Or, it can be used to split an incoming Transition into multiple outgoing Transition segments with different guard Constraints.

連接點(diǎn)-這種類(lèi)型的偽狀態(tài)用于將狀態(tài)之間的多個(gè)遷移連接成復(fù)合路徑。例如,合并偽狀態(tài)可以用來(lái)將多個(gè)進(jìn)入遷移合并成一個(gè)離開(kāi)遷移,通過(guò)這種方式表現(xiàn)后續(xù)路徑分享。也可以用于將一個(gè)進(jìn)入遷移分成多個(gè)離開(kāi)遷移,這些離開(kāi)遷移通過(guò)不同的監(jiān)護(hù)約束選擇。


NOTE. Such guard Constraints are evaluated before any compound transition containing this Pseudostate is executed, which is why this is referred to as a static conditional branch.?

注意:這樣的監(jiān)護(hù)約束的演算是在包含這個(gè)偽狀態(tài)的復(fù)合遷移執(zhí)行之前進(jìn)行的,這就是為什么它被稱(chēng)為靜態(tài)條件路徑。


It may happen that, for a particular compound transition, the configuration of Transition paths and guard values is such that the compound transition is prevented from reaching a valid state configuration. In those cases, the entire compound transition is disabled even though its Triggers are enabled. (As a way of avoiding this situation in some cases, it is possible to associate a predefined guard denoted as “else” with at most one outgoing Transition. This Transition is enabled if all the guards attached to the other Transitions evaluate to false). If more than one guard evaluates to true, one of these is chosen. The algorithm for making this selection is not defined.

可能發(fā)生這樣的事情,對(duì)于一個(gè)具體的復(fù)合遷移,遷移路徑和監(jiān)護(hù)條件的構(gòu)成導(dǎo)致無(wú)法到達(dá)某個(gè)有效的狀態(tài)構(gòu)成。在這 種情況下,即使觸發(fā)條件的是有效的,整個(gè)復(fù)合遷移也是無(wú)效的。(作為避免某種情況下出現(xiàn)這種局面的方法,可以為最多一個(gè)離開(kāi)遷移關(guān)聯(lián)事先定義的表示為 “else”的監(jiān)護(hù)條件,這個(gè)遷移在所有其他遷移的監(jiān)護(hù)條件的結(jié)果為假時(shí)有效)。如果多于一個(gè)監(jiān)護(hù)條件的結(jié)果為真,其中一個(gè)會(huì)被選中,但做出這種選擇的算 法無(wú)定義。


? choice – This type of Pseudostate is similar to a junction Pseudostate (see above) and serves similar purposes, with the difference that the guard Constraints on all outgoing Transitions are evaluated dynamically, when the compound transition traversal reaches this Pseudostate. Consequently, choice is used to realize a dynamic conditional branch. It allows splitting of compound transitions into multiple alternative paths such that the decision on which path to take may depend on the results of Behavior executions performed in the same compound transition prior to reaching the choice point. If more than one guard evaluates to true, one of the corresponding Transitions is selected. The algorithm for making this selection is not defined. If none of the guards evaluates to true, then the model is considered ill formed. To avoid this, it is recommended to define one outgoing Transition with the predefined “else” guard for every choice Pseudostate.

選擇-這種類(lèi)型的偽狀態(tài)和連接點(diǎn)偽狀態(tài)(參見(jiàn)前面)相似,而且具有類(lèi)似的用途。有一點(diǎn) 不同就是離開(kāi)遷移上的監(jiān)護(hù)約束是當(dāng)復(fù)合遷移到達(dá)這個(gè)偽狀態(tài)時(shí)動(dòng)態(tài)演算的。因此,選擇用于識(shí)別動(dòng)態(tài)條件分支。它允許將復(fù)合遷移分成多個(gè)可選的分支,判斷采用 那條路徑時(shí)可以根據(jù)處于同一個(gè)復(fù)合遷移中的行為在遷移到達(dá)該選擇點(diǎn)之前的執(zhí)行結(jié)果。如果多于一個(gè)監(jiān)護(hù)條件的演算結(jié)果為真,其中的一個(gè)遷移會(huì)被選中,但是進(jìn) 行這個(gè)選擇的算法無(wú)定義。如果沒(méi)有監(jiān)護(hù)條件的演算結(jié)果為真,那么這個(gè)模型被認(rèn)為是病態(tài)。為了避免這種情況,推薦為所有的選擇偽狀態(tài)設(shè)置一個(gè)預(yù)先定義的 “else”離開(kāi)遷移。


? entryPoint – An entryPoint Pseudostate represents an entry point for a StateMachine or a composite State that provides encapsulation of the insides of the State or StateMachine. In each Region of the StateMachine or
composite State owning the entryPoint, there is at most a single Transition from the entry point to a Vertex within that Region.

進(jìn)入點(diǎn)-進(jìn)入點(diǎn)偽狀態(tài)表示的是狀態(tài)機(jī)或者封裝了內(nèi)部狀態(tài)/狀態(tài)機(jī)的組合狀態(tài)的入口點(diǎn)。在包含入口點(diǎn)的狀態(tài)機(jī)或者組合狀態(tài)的每個(gè)區(qū)域中,最多可以有一個(gè)從入口點(diǎn)到區(qū)域內(nèi)頂點(diǎn)的遷移。


NOTE. If the owning State has an associated entry Behavior, this Behavior is executed before any behavior associated with the outgoing Transition. If multiple Regions are involved, the entry point acts as a fork Pseudostate.

注意:如果擁有入口點(diǎn)的狀態(tài)關(guān)聯(lián)了入口行為,這個(gè)行為在離開(kāi)遷移的任何關(guān)聯(lián)行為之前執(zhí)行。如果多個(gè)區(qū)域被調(diào)用,入口點(diǎn)的行為和分叉?zhèn)螤顟B(tài)一樣。


? exitPoint – An exitPoint Pseudostate is an exit point of a StateMachine or composite State that provides encapsulation of the insides of the State or StateMachine. Transitions terminating on an exit point within any Region of the composite State or a StateMachine referenced by a submachine State implies exiting of this composite State or submachine State (with execution of its associated exit Behavior). If multiple Transitions from orthogonal Regions within the State terminate on this Pseudostate, then it acts like a join Pseudostate.

退出點(diǎn)-退出點(diǎn)偽狀態(tài)表示的是狀 態(tài)機(jī)或者封裝了內(nèi)部狀態(tài)/狀態(tài)機(jī)的組合狀態(tài)的退出點(diǎn)。遷移到組合狀態(tài)或者是被子狀態(tài)機(jī)狀態(tài)引用的狀態(tài)機(jī)中的區(qū)域中的退出點(diǎn)意味著組合狀態(tài)或者是子狀態(tài)機(jī)狀 態(tài)的退出(伴隨著關(guān)聯(lián)退出行為的執(zhí)行)。如果存在多個(gè)從狀態(tài)機(jī)中的正交區(qū)域到這個(gè)偽狀態(tài)的遷移,那么它的行為像匯合點(diǎn)偽狀態(tài)一樣。


? terminate – Entering a terminate Pseudostate implies that the execution of the StateMachine is terminated immediately. The StateMachine does not exit any States nor does it perform any exit Behaviors. Any executing doActivity Behaviors are automatically aborted. Entering a terminate Pseudostate is equivalent to invoking a DestroyObjectAction.

終止-進(jìn)入終止偽狀態(tài)意味著狀態(tài)機(jī)的執(zhí)行立即終止。狀態(tài)機(jī)不會(huì)退出任何狀態(tài),也不會(huì)執(zhí)行任何退出行為。任何執(zhí)行中的doActivity行為被自動(dòng)地中止。進(jìn)入終止偽狀態(tài)等同于調(diào)用刪除對(duì)象動(dòng)作。


參考資料:

《OMG Unified Modeling Language TM (OMG UML) Version 2.5》

? URL:http://www.omg.org/spec/UML/2.5
閱讀更多更新文章,請(qǐng)掃描下面二維碼,關(guān)注微信公眾號(hào)【面向?qū)ο笏伎肌?


本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀(guān)點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請(qǐng)聯(lián)系該專(zhuān)欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請(qǐng)及時(shí)聯(lián)系本站刪除。
換一批
延伸閱讀

9月2日消息,不造車(chē)的華為或?qū)⒋呱龈蟮莫?dú)角獸公司,隨著阿維塔和賽力斯的入局,華為引望愈發(fā)顯得引人矚目。

關(guān)鍵字: 阿維塔 塞力斯 華為

倫敦2024年8月29日 /美通社/ -- 英國(guó)汽車(chē)技術(shù)公司SODA.Auto推出其旗艦產(chǎn)品SODA V,這是全球首款涵蓋汽車(chē)工程師從創(chuàng)意到認(rèn)證的所有需求的工具,可用于創(chuàng)建軟件定義汽車(chē)。 SODA V工具的開(kāi)發(fā)耗時(shí)1.5...

關(guān)鍵字: 汽車(chē) 人工智能 智能驅(qū)動(dòng) BSP

北京2024年8月28日 /美通社/ -- 越來(lái)越多用戶(hù)希望企業(yè)業(yè)務(wù)能7×24不間斷運(yùn)行,同時(shí)企業(yè)卻面臨越來(lái)越多業(yè)務(wù)中斷的風(fēng)險(xiǎn),如企業(yè)系統(tǒng)復(fù)雜性的增加,頻繁的功能更新和發(fā)布等。如何確保業(yè)務(wù)連續(xù)性,提升韌性,成...

關(guān)鍵字: 亞馬遜 解密 控制平面 BSP

8月30日消息,據(jù)媒體報(bào)道,騰訊和網(wǎng)易近期正在縮減他們對(duì)日本游戲市場(chǎng)的投資。

關(guān)鍵字: 騰訊 編碼器 CPU

8月28日消息,今天上午,2024中國(guó)國(guó)際大數(shù)據(jù)產(chǎn)業(yè)博覽會(huì)開(kāi)幕式在貴陽(yáng)舉行,華為董事、質(zhì)量流程IT總裁陶景文發(fā)表了演講。

關(guān)鍵字: 華為 12nm EDA 半導(dǎo)體

8月28日消息,在2024中國(guó)國(guó)際大數(shù)據(jù)產(chǎn)業(yè)博覽會(huì)上,華為常務(wù)董事、華為云CEO張平安發(fā)表演講稱(chēng),數(shù)字世界的話(huà)語(yǔ)權(quán)最終是由生態(tài)的繁榮決定的。

關(guān)鍵字: 華為 12nm 手機(jī) 衛(wèi)星通信

要點(diǎn): 有效應(yīng)對(duì)環(huán)境變化,經(jīng)營(yíng)業(yè)績(jī)穩(wěn)中有升 落實(shí)提質(zhì)增效舉措,毛利潤(rùn)率延續(xù)升勢(shì) 戰(zhàn)略布局成效顯著,戰(zhàn)新業(yè)務(wù)引領(lǐng)增長(zhǎng) 以科技創(chuàng)新為引領(lǐng),提升企業(yè)核心競(jìng)爭(zhēng)力 堅(jiān)持高質(zhì)量發(fā)展策略,塑強(qiáng)核心競(jìng)爭(zhēng)優(yōu)勢(shì)...

關(guān)鍵字: 通信 BSP 電信運(yùn)營(yíng)商 數(shù)字經(jīng)濟(jì)

北京2024年8月27日 /美通社/ -- 8月21日,由中央廣播電視總臺(tái)與中國(guó)電影電視技術(shù)學(xué)會(huì)聯(lián)合牽頭組建的NVI技術(shù)創(chuàng)新聯(lián)盟在BIRTV2024超高清全產(chǎn)業(yè)鏈發(fā)展研討會(huì)上宣布正式成立。 活動(dòng)現(xiàn)場(chǎng) NVI技術(shù)創(chuàng)新聯(lián)...

關(guān)鍵字: VI 傳輸協(xié)議 音頻 BSP

北京2024年8月27日 /美通社/ -- 在8月23日舉辦的2024年長(zhǎng)三角生態(tài)綠色一體化發(fā)展示范區(qū)聯(lián)合招商會(huì)上,軟通動(dòng)力信息技術(shù)(集團(tuán))股份有限公司(以下簡(jiǎn)稱(chēng)"軟通動(dòng)力")與長(zhǎng)三角投資(上海)有限...

關(guān)鍵字: BSP 信息技術(shù)
關(guān)閉
關(guān)閉