日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當(dāng)前位置:首頁(yè) > > 充電吧
[導(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ī)的入口和離開子狀態(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)意味著離開子狀態(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)種類)


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)的遷移和一組離開該分叉?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ǔ)義依賴于偽狀態(tài)的種類,這是通過(guò)狀態(tài)的類型為PsudostateKind的種類屬性來(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ū)域的開始點(diǎn);也就是說(shuō),當(dāng)以默認(rèn)激活的方式進(jìn)入?yún)^(qū)域時(shí),它是區(qū)域中包含的活動(dòng)開始執(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ù)到與最近離開時(shí)相同的狀 態(tài)構(gòu)成,伴隨著所有進(jìn)入狀態(tài)的語(yǔ)義(參見狀態(tài)進(jìn)入的小節(jié))。被恢復(fù)狀態(tài)的所有進(jìn)入行為被從最外層狀態(tà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.

淺歷史-如前面所講,這類偽狀態(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離開該偽狀態(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.?

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


? 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ū)域。離開分叉?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)-這種類型的偽狀態(tài)用于將狀態(tài)之間的多個(gè)遷移連接成復(fù)合路徑。例如,合并偽狀態(tài)可以用來(lái)將多個(gè)進(jìn)入遷移合并成一個(gè)離開遷移,通過(guò)這種方式表現(xiàn)后續(xù)路徑分享。也可以用于將一個(gè)進(jìn)入遷移分成多個(gè)離開遷移,這些離開遷移通過(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)行的,這就是為什么它被稱為靜態(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è)離開遷移關(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.

選擇-這種類型的偽狀態(tài)和連接點(diǎn)偽狀態(tài)(參見前面)相似,而且具有類似的用途。有一點(diǎn) 不同就是離開遷移上的監(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ú)定義。如果沒有監(jiān)護(hù)條件的演算結(jié)果為真,那么這個(gè)模型被認(rèn)為是病態(tài)。為了避免這種情況,推薦為所有的選擇偽狀態(tài)設(shè)置一個(gè)預(yù)先定義的 “else”離開遷移。


? 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è)行為在離開遷移的任何關(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ā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請(qǐng)聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請(qǐng)及時(shí)聯(lián)系本站刪除。
換一批
延伸閱讀

LED驅(qū)動(dòng)電源的輸入包括高壓工頻交流(即市電)、低壓直流、高壓直流、低壓高頻交流(如電子變壓器的輸出)等。

關(guān)鍵字: 驅(qū)動(dòng)電源

在工業(yè)自動(dòng)化蓬勃發(fā)展的當(dāng)下,工業(yè)電機(jī)作為核心動(dòng)力設(shè)備,其驅(qū)動(dòng)電源的性能直接關(guān)系到整個(gè)系統(tǒng)的穩(wěn)定性和可靠性。其中,反電動(dòng)勢(shì)抑制與過(guò)流保護(hù)是驅(qū)動(dòng)電源設(shè)計(jì)中至關(guān)重要的兩個(gè)環(huán)節(jié),集成化方案的設(shè)計(jì)成為提升電機(jī)驅(qū)動(dòng)性能的關(guān)鍵。

關(guān)鍵字: 工業(yè)電機(jī) 驅(qū)動(dòng)電源

LED 驅(qū)動(dòng)電源作為 LED 照明系統(tǒng)的 “心臟”,其穩(wěn)定性直接決定了整個(gè)照明設(shè)備的使用壽命。然而,在實(shí)際應(yīng)用中,LED 驅(qū)動(dòng)電源易損壞的問(wèn)題卻十分常見,不僅增加了維護(hù)成本,還影響了用戶體驗(yàn)。要解決這一問(wèn)題,需從設(shè)計(jì)、生...

關(guān)鍵字: 驅(qū)動(dòng)電源 照明系統(tǒng) 散熱

根據(jù)LED驅(qū)動(dòng)電源的公式,電感內(nèi)電流波動(dòng)大小和電感值成反比,輸出紋波和輸出電容值成反比。所以加大電感值和輸出電容值可以減小紋波。

關(guān)鍵字: LED 設(shè)計(jì) 驅(qū)動(dòng)電源

電動(dòng)汽車(EV)作為新能源汽車的重要代表,正逐漸成為全球汽車產(chǎn)業(yè)的重要發(fā)展方向。電動(dòng)汽車的核心技術(shù)之一是電機(jī)驅(qū)動(dòng)控制系統(tǒng),而絕緣柵雙極型晶體管(IGBT)作為電機(jī)驅(qū)動(dòng)系統(tǒng)中的關(guān)鍵元件,其性能直接影響到電動(dòng)汽車的動(dòng)力性能和...

關(guān)鍵字: 電動(dòng)汽車 新能源 驅(qū)動(dòng)電源

在現(xiàn)代城市建設(shè)中,街道及停車場(chǎng)照明作為基礎(chǔ)設(shè)施的重要組成部分,其質(zhì)量和效率直接關(guān)系到城市的公共安全、居民生活質(zhì)量和能源利用效率。隨著科技的進(jìn)步,高亮度白光發(fā)光二極管(LED)因其獨(dú)特的優(yōu)勢(shì)逐漸取代傳統(tǒng)光源,成為大功率區(qū)域...

關(guān)鍵字: 發(fā)光二極管 驅(qū)動(dòng)電源 LED

LED通用照明設(shè)計(jì)工程師會(huì)遇到許多挑戰(zhàn),如功率密度、功率因數(shù)校正(PFC)、空間受限和可靠性等。

關(guān)鍵字: LED 驅(qū)動(dòng)電源 功率因數(shù)校正

在LED照明技術(shù)日益普及的今天,LED驅(qū)動(dòng)電源的電磁干擾(EMI)問(wèn)題成為了一個(gè)不可忽視的挑戰(zhàn)。電磁干擾不僅會(huì)影響LED燈具的正常工作,還可能對(duì)周圍電子設(shè)備造成不利影響,甚至引發(fā)系統(tǒng)故障。因此,采取有效的硬件措施來(lái)解決L...

關(guān)鍵字: LED照明技術(shù) 電磁干擾 驅(qū)動(dòng)電源

開關(guān)電源具有效率高的特性,而且開關(guān)電源的變壓器體積比串聯(lián)穩(wěn)壓型電源的要小得多,電源電路比較整潔,整機(jī)重量也有所下降,所以,現(xiàn)在的LED驅(qū)動(dòng)電源

關(guān)鍵字: LED 驅(qū)動(dòng)電源 開關(guān)電源

LED驅(qū)動(dòng)電源是把電源供應(yīng)轉(zhuǎn)換為特定的電壓電流以驅(qū)動(dòng)LED發(fā)光的電壓轉(zhuǎn)換器,通常情況下:LED驅(qū)動(dòng)電源的輸入包括高壓工頻交流(即市電)、低壓直流、高壓直流、低壓高頻交流(如電子變壓器的輸出)等。

關(guān)鍵字: LED 隧道燈 驅(qū)動(dòng)電源
關(guān)閉