當(dāng)前位置:首頁(yè) > 芯聞號(hào) > 充電吧
[導(dǎo)讀] 9.4.3.1 Features(特征) Each Feature is associated with a Classifier called its featuringClassifier

9.4.3.1 Features(特征)


Each Feature is associated with a Classifier called its featuringClassifier. The Feature represents some structural or behavioral characteristic for its featuringClassifier, except for Properties acting as qualifiers (see 9.5.3).

每個(gè)特征都和一個(gè)叫做特征化類目的類目相關(guān)聯(lián)。特征表現(xiàn)類目的某些結(jié)構(gòu)方面的或者是行為方面的特性。作為限定子的屬性除外。


The isStatic property specifies whether the characteristic relates to the Classifier’s instances considered individually (isStatic=false), or to the Classifier itself (isStatic=true). All semantics relating to Features that do not explicitly state whether the feature is static shall be assumed to refer to non-static Features. Where semantics are not explicitly specified for static Features, those semantics are undefined.

isStatic屬性定義特性是和類目的獨(dú)立的實(shí)例相有關(guān)(isStatic=false),還是和類目本身有關(guān)。所有和沒(méi)有明確說(shuō)明是否為靜態(tài)的特征有關(guān)的語(yǔ)義都應(yīng)該認(rèn)為涉及的是非靜態(tài)特征。當(dāng)語(yǔ)義沒(méi)有明確地為靜態(tài)特征定義,那些語(yǔ)義是無(wú)定義的(?)。


9.4.3.2 Structural Features(結(jié)構(gòu)特征)
A StructuralFeature is a typed Feature of a Classifier that specifies the structure of instances of the Classifier.The StructuralFeatures of a Classifier that are Properties are called the attributes of the Classifier (see 9.2.3). In UML,
Property is the only kind of StructuralFeature so all of the StructuralFeatures of a Classifier are Properties, and hence attributes.

結(jié)構(gòu)特征是類目的特征的一個(gè)種類,它定義了類目實(shí)例的結(jié)構(gòu)。類目的結(jié)構(gòu)特征是被稱為類目屬性的性質(zhì)。在UML中,性質(zhì)是結(jié)構(gòu)特征唯一的一種類型,即類目的結(jié)構(gòu)特征就是性質(zhì),也就是屬性。


For each instance of a Classifier there is a value or collection of values for each direct or inherited non-static attribute of the Classifier, as follows:

對(duì)于類目的每個(gè)實(shí)例的直接或繼承的非靜態(tài)屬性,存在值或值的聚合,規(guī)則如下:


· If the attribute’s multiplicity is 0..1, there shall either be no value or a single value whose Type conforms to the Type of the attribute

如果屬性的多重度是0..1,則不存在或存在一個(gè)單值,值的類型符合屬性的類型。


· If the attribute’s multiplicity is 1..1, there shall be a single value whose Type conforms to the Type of the attribute.

如果屬性的多重度是1..1,應(yīng)給存在一個(gè)單值,值的類型符合屬性的類型。


· If the attribute’s multiplicity is j..k where k is not 1, there shall be a collection of values whose size is not less than j and not greater than k, each of whose Types conforms to the Type of the attribute.

如果屬性的多重都是j..k,這里k不為1,則存在一個(gè)值的聚合,聚合的大小不小于j而且不大于k,每一個(gè)類型都應(yīng)該符合屬性的類型。


· If the attribute’s multiplicity is 0..0, there shall be no value or values.

如果屬性的多重都為0..0,那么不存在值或值的聚合。


If a StructuralFeature is marked with isStatic = true, then the bullet points above are relative to the Classifier itself considered as an identifiable individual within some execution scope, rather than to individual instances. (See sub
clause 6.3.1 for a discussion of execution scope.)

如果結(jié)構(gòu)特征被標(biāo)記為isStatic=true,那么上面的要點(diǎn)就是關(guān)于類目自身的,它在某些執(zhí)行域中被被識(shí)別,而不是一個(gè)獨(dú)立的實(shí)例被識(shí)別。


In a semantically conforming tool, each inherited static StructuralFeature shall have one of two alternative semantics:

在一個(gè)語(yǔ)義一致的工具中,每一個(gè)繼承的靜態(tài)結(jié)構(gòu)特征應(yīng)該具有兩個(gè)可選語(yǔ)義

中的一個(gè):


1.Within an execution scope, the value or collection of values of the StructuralFeature is always the same for any inheriting Classifier as its value or collection of values for the owning Classifier. These semantics correspond
to those for static members in Java and C#.

?在執(zhí)行領(lǐng)域中,結(jié)構(gòu)特征在繼承 類目中和在結(jié)構(gòu)特征的擁有者類目中的的值或者值聚合都是一樣的。這樣的語(yǔ)義符合Java和C#對(duì)于靜態(tài)成員的定義。


2. Within an execution scope, the StructuralFeature has a separate and in??? dependent value or collection of values for its owning Classifier and for each Classifier that inherits it. These semantics correspond to those for class
instance variables in Ruby and Smalltalk.

在執(zhí)行領(lǐng)域中,結(jié)構(gòu)特征在它的所有者類目中和繼承類目中有分離的,獨(dú)立的值或值聚合。這樣的語(yǔ)義符合Ruby和Smarttalk。


If a StructuralFeature is marked with isReadOnly true, then it may not be updated once it has been assigned an initial value. Conversely, when isReadOnly is false (the default), the value may be modified.

如果結(jié)構(gòu)特征被標(biāo)記為isReadOnly為真,那么一旦它被賦初值以后,就不應(yīng)該再被更新。相反地,當(dāng)isReadOnly為假(缺省值),值可以被更改。


參考資料:

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

? URL:http://www.omg.org/spec/UML/2.5


以上就是今天的文章,歡迎點(diǎn)贊,關(guān)注并推薦給您的朋友! 閱讀更多更新文章,請(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)系本站刪除。
換一批
延伸閱讀

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

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

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

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

北京2024年8月28日 /美通社/ -- 越來(lái)越多用戶希望企業(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ì)開幕式在貴陽(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ā)表演講稱,數(shù)字世界的話語(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)稱"軟通動(dòng)力")與長(zhǎng)三角投資(上海)有限...

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