当前位置:首页 > 芯闻号 > 充电吧
[导读] 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).

每个特征都和一个叫做特征化类目的类目相关联。特征表现类目的某些结构方面的或者是行为方面的特性。作为限定子的属性除外。


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属性定义特性是和类目的独立的实例相有关(isStatic=false),还是和类目本身有关。所有和没有明确说明是否为静态的特征有关的语义都应该认为涉及的是非静态特征。当语义没有明确地为静态特征定义,那些语义是无定义的(?)。


9.4.3.2 Structural Features(结构特征)
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.

结构特征是类目的特征的一个种类,它定义了类目实例的结构。类目的结构特征是被称为类目属性的性质。在UML中,性质是结构特征唯一的一种类型,即类目的结构特征就是性质,也就是属性。


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:

对于类目的每个实例的直接或继承的非静态属性,存在值或值的聚合,规则如下:


· 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,则不存在或存在一个单值,值的类型符合属性的类型。


· 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,应给存在一个单值,值的类型符合属性的类型。


· 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,则存在一个值的聚合,聚合的大小不小于j而且不大于k,每一个类型都应该符合属性的类型。


· 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.)

如果结构特征被标记为isStatic=true,那么上面的要点就是关于类目自身的,它在某些执行域中被被识别,而不是一个独立的实例被识别。


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

在一个语义一致的工具中,每一个继承的静态结构特征应该具有两个可选语义

中的一个:


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#.

 在执行领域中,结构特征在继承 类目中和在结构特征的拥有者类目中的的值或者值聚合都是一样的。这样的语义符合Java和C#对于静态成员的定义。


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.

在执行领域中,结构特征在它的所有者类目中和继承类目中有分离的,独立的值或值聚合。这样的语义符合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.

如果结构特征被标记为isReadOnly为真,那么一旦它被赋初值以后,就不应该再被更新。相反地,当isReadOnly为假(缺省值),值可以被更改。


参考资料:

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

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


以上就是今天的文章,欢迎点赞,关注并推荐给您的朋友! 阅读更多更新文章,请扫描下面二维码,关注微信公众号【面向对象思考】


本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除。
换一批
延伸阅读

微软商店意外泄露游戏名称及封面,即代号“Maverick”的星战新作。开发工作由EA Motive领衔,预计年内发布。 EA随即承认游戏名及封面为真,相关预告片6月15号早八点(PT)公布。 该作

关键字: ea 星球大战 蜘蛛侠 insomniac

电子攻击是让指挥官可以掌控电磁,并支援军队作战期间的机动计划。

关键字: ea 电磁

据gamespot报道,EA公布了上一季度的收益,其业绩超出预期。特别是微交易方面,收入达到了近10亿美元。另外,《星球大战绝地 :陨落的武士团》的表现同样十分亮眼。 数据显示,EA本季度的收入为15

关键字: ea 游戏 财报 微交易 氪金

BioWare在社交平台突然的一波“Mass Relays”预热,让游戏圈炸锅。 有线人称,《质量效应5》已经进入早期开发阶段,还有一种说法是,《质量效应》三部曲将重制。 1分38秒的视频中甚至回顾了

关键字: ea pc游戏 质量效应

如今最近火爆的《庆余年》电视剧盗版一样,游戏中的加密与破解也是一场无尽的猫鼠游戏。自从D加密被黑客搞定之后,使用D加密的游戏被破解是早晚的,这不《极品飞车:热度》在发售49天后也被破解了。 根据Cr

关键字: ea 破解 黑客 《极品飞车:热度 d加密

在创建类图时,我们提到过增加新类时要保证Language选项为C++。这是因为EA上手时缺省状态的设定值都是Java。每次修改太麻烦,我们介绍一种简单的做法。说明只需一张图。 多少有些画蛇添足,

关键字: ea uml

俄罗斯方块、马里奥这样的游戏全球玩家都喜欢,但中国及美国的游戏玩家也有很大的不同,我个人不能理解的就是《模拟人生》这个游戏在美国会有这么多拥趸。日前EA表示该游戏总销售额已经达到了50亿美元。 在EA

关键字: ea 游戏 销售额 模拟人生

10月29日晚,美国EA公司宣布与Valve达成合作协议,EA旗下的游戏将登陆Steam平台,后者是全球最大的PC游戏数字发行平台,首款合作游戏产品就是即将在11月15日上市的《Star Wars J

关键字: ea steam 游戏平台

EA作为拥有众多游戏IP的大型发行商之一,拥有和育碧Uplay一样的EA Origin游戏平台。该公司的PC版游戏都会选择在该平台独占销售。不过从最近的一些证据来看,EA似乎正在准备通过STEAM平台

关键字: ea origin steam 橘子

EA社交媒体官方账号放出一张(欠烫)咖啡杯图片,另附一串省略号: 如果有人觉得这解释太牵强,可以看看早几天某人的测试,通过Steam启动Origin游戏必须启动Origin客户端,与当前育碧UPla

关键字: ea steam 怪物猎人 暗黑4
关闭
关闭