我们如何在UML图中表示概念? [英] How can we express Concept in UML diagram?
问题描述
UML类图支持表达概念吗?
另外,有没有其他图表来表达概念?
只是在误解的情况下,我的意思是概念 。
Does UML Class Diagram support expressing Concept?
Also, is there any other diagrams that expresses Concept?
Just in case of misunderstanding, I mean the "Concept" in C++ and generic programming.
推荐答案
稍后阅读 C ++概念的维基百科解释它看起来像我的工具,具有相同的目标为 C中的泛型类和类型约束
After reading shortly Wikipedia explanation of C++ "concepts" it looks to me like tool with same goals as generic classes and type constraints in C#
然后按照以前的Stack Overflow问题表示C#通用方法在UML类图中,结果是,您应该检查 http:// www。 uml-diagrams.org/template.html 已经由@Aleks建议
If I understood it correctly then by following older Stack Overflow question Representing a C# Generic Method in a UML Class Diagram it turns out that you should check the http://www.uml-diagrams.org/template.html as already suggested by @Aleks
基本上,我的意思是模拟你的接口和类,就像你通常做的。只需使用模板注释,您还可以使用虚拟依赖关系,在模板中使用的形式参数之间的继承关系来图表某些类型限制
Basically I mean to model your interfaces and classes as you'd normally do it. Just use the templating annotation and you can also chart some type restrictions using a virtual dependency, inheritance associations between the formal parameters used in the template
这篇关于我们如何在UML图中表示概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!