问题标签 [class-diagram]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
889 浏览

visual-studio-2008 - 创建类图 vs2008

我目前正在使用 Visual Studio 2008 VC++ 开发一个项目。我想查看我的代码的类图,但是当我单击添加新项目时我没有看到任何“类图”选项,请帮帮我.. 谢谢..

0 投票
1 回答
1762 浏览

class - 类图聚合

我遇到了这个定义

聚合有两个性质:反对称、传递性

这是什么意思?

谢谢

0 投票
3 回答
3092 浏览

associations - 关联多重性在类图中的重要性是什么?

关联多重性在类图中的重要性是什么?为什么以及何时应该指出它们?谢谢。

0 投票
2 回答
2003 浏览

uml - 类图:如何写下属于某个库的类?

我正在将一些 Java 代码逆向工程到类图中。现在我想知道如何对来自我没有设计的库的类进行建模。如果我将它们写成类,我可能还应该知道它们实现了哪些接口等,并将其放在图表中。我能走多远?将它们写成我自己的类的属性会更好吗?

0 投票
1 回答
1281 浏览

visual-studio - VS 2010:带有xml摘要描述的类图?

使用 Visual Studio 2010 Ultimate 我创建了一个 C#/WPF 项目的类图。该项目有据可查,这意味着每个属性都有一个 xml 摘要。现在在类图中,可以将鼠标悬停在属性上并阅读此摘要 - 很好。但是印刷呢?Visual Studio 只是打印图表!有什么方法可以让 Visual Studio 2010 添加属性摘要?有没有工具可以做到这一点?感谢您的任何提示!

0 投票
1 回答
174 浏览

visual-studio-2010 - VS 2010 类图错误“无法编辑类型...”

VS 2010 类图中的一些类以红色标题显示。Class Details 窗口显示所有方法、属性、字段并且正确显示没有事件。但是,在每个方法、属性、字段和事件下都有一个条目,说明名称应该在哪里:

“无法编辑类型,因为源代码文件包含错误。”

但是,源文件构建时没有错误或警告。

有人见过这个吗?知道如何解决吗?

0 投票
1 回答
4186 浏览

database - UML class diagram vs ER database diagram

I'm a little confused, I'm developing a program, the program consist in two parts, the server and the clients, there are groups, places, messages... stored in the server, and the clients has to connect with it. I've design the use cases diagram, the activity diagrams, and I have design the class diagram too.

The thing is that I want to implement the server in a mysql tables for storing the users, groups, places... users in groups... so I've designed a E-R diagram consisting in 6 tables, but the problem is that I think that my class diagram and my ER diagram looks too similar, I mean, I think I'm not doing things right because I have a class for each table practically, and when I have to extract all the users on my system, do I have to convert all the rows into objects at first and write in the database for each object modified?

The easy choice for me would be to base my whole application only in the database, and making a class to extract and insert data in it, but I have to follow the UML specification and I'm a little confused what to do with the class diagram, because the books I have read say that I have to create a class for each "entity" of my program.

Sorry for my bad English.

Thank you.

0 投票
3 回答
1723 浏览

eclipse - 我可以在 UML2 的视图中隐藏 getter 和 setter 方法吗?

UML2 是 eclipse 的一个插件,在这里http://www.eclipse.org/modeling/mdt/?project=uml2

现在,我想隐藏 getter 和 setter,但我不知道如何获取它。

有什么建议么?

0 投票
2 回答
2329 浏览

iphone - 为 iPhone 应用程序生成类图

我正在尝试为 iphone/objective-C 找到一个很好的工具来生成代码的类图。我希望它能够灵活地更改和修改图表,以便我可以将该图表分成许多较小的图表。

这意味着,我可以展示与模型类交互的视图控制器的某些部分。这将更容易理解和获得更改。

我尝试使用 XCode:

自己画一些线来容纳 XCode 无法生成的部分并不容易。

0 投票
2 回答
552 浏览

class - 如果程序中没有类,我们可以绘制序列图吗?

我有一个用 C++ 编写的程序,它不使用类,只是简单地使用函数和main(). 我想知道我可以为它画什么样的图表。这是我想到的几件事。

  1. 活动图
  2. 序列图
  3. 类图 - 显然不能画这个,因为我没有使用类
  4. 系统架构
  5. 状态图
  6. 用例图

从这些中我能画出什么?