StarUML 在界面图标中定义界面方法和属性?
我只是使用 StarUML 来创建我的 UML 类图,但有些事情困扰着我。我创建了一个接口表示,它是一个圆圈,但是没有空间添加接口定义的方法和属性。这是正常的 UML 实践吗?
如果不是,你怎么知道(假设一个类实现了这个接口并定义了 4 个方法)这 4 个方法中哪些来自该接口,哪些不是?
已解决:
好的,以防万一其他人遇到这个问题 - 有两种表示法,两种表示法都可以在 StarUML 中使用,但只有一种是明确的(点表示法)。创建<>符号,输入名称为 <> IInterface_Name,然后在实现类之间画一条实现线。请务必通过右键单击类、集合编辑器和关系来手动删除旧的(错误的)关系。
I'm just using StarUML to create my UML Class diagram and something is bothering me. I create an interface representation, which is a circle, however, there is no room to add which methods and attributes the interface defines. Is this normal UML practice?
If not, how do you know (say a class implements this interface and has 4 methods defined) which of the 4 methods came from the interface and which didnt?
Solved:
Ok just incase someone else has this problem- there are two notations, both are possible in StarUML but only one explicitly (the dot notation). To create the <> notation, enter the name as <> IInterface_Name and then draw a realisation line between the implementing classes. Be sure to manually delete the old (wrong) relationship you had by right clicking the class, collection editor and then relations.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很简单:
It is very simple: