英文:
What are these in the UML Class Diagram?
问题
我正在学习企业架构师。
抽象意味着抽象
是根表示顶级父类
是叶表示没有更多的子类
但我仍然不知道是规范,是活动。
我找到的文档是这样定义的
我不知道这意味着什么。
是规范:选择复选框以标识元素为规范。
是活动:选择复选框以标识元素为活动类。
英文:
I'm studying Enterprise Architect.
Abstract means being abstract
Is Root means top-level parent class
Is Leaf means no more children
But I still don't know Is Specification, is Active.
The documentation I found defined it this way
I don't know what this means.
Is Specification : Select the checkbox to identify the element as being a specification.
is Active : Select the checkbox to identify the element as being an Active Class.
Who can answer me?
答案1
得分: 1
"Active classes" 涉及 "并发性"。这些类的实例各自拥有自己的执行/控制线程,并且可能同时运行。更准确地说,根据UML规范:
活动对象是一个对象,由于其创建的直接结果,开始执行其分类器行为,并且只有在执行完整行为或被某个外部对象终止之前才停止。 (有时这被称为“对象具有其自己的控制线程。”)
"Is Specification" 作为属性已过时。它可以追溯到UML 1.4,用于指示所拥有元素是否是所拥有元素的规范的一部分,或者是否不是规范的一部分,仅与实现相关。在当前版本的UML中,不再存在isSpecification属性。唯一剩下的«Specification»
是用于组件的附加性质,以便能够将其与«Realization»
组件区分开来,但应该在EA中使用附加性质进行建模,而不是使用此属性。
英文:
Active classes is about concurrency. The instances of these classes have each their own thread of execution/control, and run potentially at the same time. More precisely, according to the UML specification:
> An active object is an object that, as a direct consequence of its creation, commences to execute its classifierBehavior, and does not cease until either the complete Behavior is executed or the object is terminated by some external object. (This is sometimes referred to as “the object having its own thread of control.”)
The Is Specification as property is obsolete. It dates back to UML 1.4 and was used to indicate if an owned element was part of the specification of the owning element or if it was not part of the specification and only relevant for the realization (implementation). In the current version of UML, there is no longer the isSpecification property. The only «Specification»
left is a stereotype for components to be able to distinguish them from «Realization»
components, but this should be modelled in EA with stereotypes and not using this property.
答案2
得分: 0
它们都是元素属性。其中一些是遗留属性,命名与当前的 UML 2.5.1 规范不一致,在其中你可以找到这些属性:
- Abstract 匹配 isAbstract 属性。
- Is Leaf 匹配 isLeaf。
- Is Abstract 匹配 isAbstract。
来自 UML 1.5 的遗留属性(在 2.5.1 中不再存在):
- Is Root 匹配 isRoot。
- Is Specification 匹配 isSpecification。
英文:
All of them are element properties. Some of them are heritage and the naming is not consistent with the current UML 2.5.1 specs where you can find these:
- Abstract matches the isAbstract property.
- Is Leaf matches isLeaf
- Is Abstract matches isAbstract
Heritage from UML 1.5 (no longer in 2.5.1):
- Is Root matches isRoot
- Is Specification matches isSpecification
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论