UML 2 Profiles Package:如何扩展操作?
我在 uml 配置文件实现方面遇到了大麻烦。 问题是我不知道如何使用 Profile 从 Infrastructure::Core::Constructs 扩展 uml Operation 类?
根据 uml 元模型,Profiles 包中的扩展关联仅允许元类为 Core::Constructs::Class 类型。
操作是元类吗? 如果是的话我怎样才能把它作为 Core::Consructs::Class ? 据我所知,没有一个 uml 元模型操作专门化或实现 Core::Constructs::Class。
请帮我。
我正在尝试使用 C# 中的第三方 uml 2.* 元模型实现在 C# 中实现我的 uml 配置文件。
I'm in a big trouble with uml profile implementation. The problem is I can't get how can I extend uml Operation class from Infrastructure::Core::Constructs using Profile?
The Extension association from Profiles package allow metaclass only to be of type Core::Constructs::Class according to uml metamodel.
Is Operation a metaclass? If it is how can I put it as a Core::Consructs::Class? As far as I see non of the uml metamodel Operation does specialize or implement Core::Constructs::Class.
Please help me.
I'm trying to make my uml profile implementation in C# using third party uml 2.* metamodel implementation in C#.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有些工具可能不支持操作扩展,但如果支持,这里是如何支持的。 如果您不是在谈论模型的简单构造型扩展,例如尝试创建与操作一起使用的数据类型,请澄清您的问题。 Stereotype 只是扩展了 Metaclass 操作,然后您可以在模型中使用该构造型。 这些示例来自 IBM RSM,并且运行良好。
个人资料:
< strong>应用:
Some tools might not support operation extension, but if it does here is how. If you not talking about simple stereotype extension of the model, such as trying to create a data type to use with operations please clarify your question. The Stereotype just extends the Metaclass operation and then you use the stereotype in the model. These examples are from IBM RSM and it works well.
Profile:
Applying:
已经找到答案了。 这可以通过泛化组合 Profiles::Class 和 Kernel::Operation 来实现。
Already found the answer. The thing can be achieved by combining Profiles::Class and Kernel::Operation via generalization.