uml

JavaScript code to Class Diagram

流过昼夜 提交于 2019-12-29 20:00:01
问题 I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any? 回答1: http://jsuml.org/ 回答2: If you are using node.js, i made a module that generate a class diagram for javascript/node/html/css. Its called wavi. For javascript, function and variable are recognized. https://www.npmjs.org/package/wavi 来源: https://stackoverflow.com/questions/943212/javascript-code-to-class-diagram

2017-2018-1 Java演绎法 第八周 作业

自古美人都是妖i 提交于 2019-12-29 17:50:08
团队任务:UML设计 团队组长: 袁逸灏 本次编辑: 刘伟康 团队分工 第一次使用泳道图,感觉非常方便,从图中的箭头和各个活动框中可以清晰地看出分工流程: 不过既然是博客园,分工就不能只贴图,markdown还是要用的,于是我用markdown表格统计了本次组员用时、完成度和贡献比例: 成员   完成度 用时 贡献比例  袁逸灏   【100%】   3.0   18%   刘伟康   【100%】   6.0   22%   刘先润   【100%】   4.0   18%   马军   【100%】   2.0   16%   刘诚昊   【100%】   2.0   14%   莫礼钟   【100%】   2.0   12%  【UMLの用例图】 面临什么问题: 无。 解决什么问题: 用例图可以展现用户在使用过程中有什么需求,需求之间的层次和板块关系。而设计者可以根据用例图中的每个功能板块来有层次和顺序性的实现相应的需求。 大图 【用例说明】 项目 内容 用例名称 选择车辆 用例编号 001 主要参与者 用户A 风险承担者 游戏设计者 简要说明 在正式进入游戏界面前有一个选车功能,在通过某些关卡后会解锁新的车辆 前置条件 用户A已下载游戏,并已通过多个关卡解锁了新的 基本事件流 1.用户A进入“选车界面”。2.游戏系统显示出已解锁的车辆和文字索引栏。3

Is there an inituitive UML approach to depict threads

限于喜欢 提交于 2019-12-29 10:16:07
问题 I'm fond of using UML diagrams to describe my software. In the majority of cases the diagrams are for my own use and I use them for more involved pieces of code, interactions etc. where I'll benefit from being able to look back over them in the future. One thing I've found myself doing a few different ways is diagramming threads. Threads by their nature tend to pop up in the more involved pieces of code and keeping track of them is often a primary purpose of my design documents. In the past I

UML Notation - Aggregations/Compositions vs “Vanilla” Associations

泪湿孤枕 提交于 2019-12-29 04:58:09
问题 I've recently spent a good deal of time performing detailed UML designs of various SW components that I have since written. Looking back on what I have recently finished and comparing that to when I first learned UML, I see that I now almost strictly use Aggregation and Composition relationships, and have virtually abandoned "vanilla" non-directed/directed relationships. I still of course use Generalizations and Realizations, but these are distinctly different than those above and are not

How can I model this class in a database?

家住魔仙堡 提交于 2019-12-29 01:52:50
问题 I need a little of help. This is my design to organize several categories. Category 1 Sub Category 1.1 Sub Category 1.1.1 Sub Category 1.2 Sub Category 1.3 It would be a collection. I want to store it in a database, but I don't know how can I model it in a database table. I'm using SQL Server CE. UPDATE : I forgot put the objective number in the class (1.1, 1.1.1). 回答1: You'd have a table something like this: category id (primary key, not null) name (text, not null) parent_category_id

Representing a C# Generic Method in a UML Class Diagram

二次信任 提交于 2019-12-28 17:42:52
问题 I have the following interface: public interface IRegisterable { T Register<T>(string username, string passw) where T : User, ICanLogin, new(); } User is an abstract class, and ICanLogin is another interface. Now, I want to represent the above interface with its method in a UML Class Diagram, in Visio. How can I represent the above generic method with its constraints in a Class Diagram ? 回答1: UML does not support type parametric methods directly. About the closest you'll get is to define a

How should I visualize the structure of my code? [closed]

风流意气都作罢 提交于 2019-12-28 08:00:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have an application written in Java. In is stored in several files. It uses different classes with different methods. The code is big and complicated. I think it would be easier to understand the code if I have a graphical model of the code (some kind of directed graph). Are there some standard methods for

泛化(Generalization) 聚合(aggregation)组合(composition)依赖(Dependency)

萝らか妹 提交于 2019-12-27 14:53:24
泛化( Generalization ) 图表 1 泛化 在上图中,空心的三角表示继承关系(类继承),在 UML 的术语中,这种关系被称为泛化( Generalization )。 Person( 人 ) 是基类, Teacher( 教师 ) 、 Student( 学生 ) 、 Guest( 来宾 ) 是子类。 若在逻辑上 B 是 A 的“一种”,并且 A 的所有功能和属性对 B 而言都有意义,则允许 B 继承 A 的功能和属性。 例如, 教师是人, Teacher 是 Person 的“一种”( a kind of )。 那么类 Teacher 可以从类 Person 派生(继承)。 如果 A 是基类, B 是 A 的派生类,那么 B 将继承 A 的数据和函数。 如果类 A 和类 B 毫不相关,不可以为了使 B 的功能更多些而让 B 继承 A 的功能和属性。 若在逻辑上 B 是 A 的“一种”( a kind of ),则允许 B 继承 A 的功能和属性。 聚合(组合) 图表 2 组合 若在逻辑上 A 是 B 的“一部分”( a part of ),则不允许 B 从 A 派生,而是要用 A 和其它东西组合出 B 。 例如,眼( Eye )、鼻( Nose )、口( Mouth )、耳( Ear )是头( Head )的一部分,所以类 Head 应该由类 Eye 、 Nose 、

Python设计模式 - UML - 部署图(Deployment Diagram)

拥有回忆 提交于 2019-12-27 14:49:39
简介 部署图也称配置图,用来显示系统中硬件和软件的物理架构。从中可以了解到软件和硬件组件之间的物理拓扑、连接关系以及处理节点的分布情况。 部署图建模步骤     - 找出需要进行部署的各类节点,如网络硬件设备、服务器硬件设备、及部署在硬件设备上的软件系统等     - 确定各类节点之间的连接关系及通信方式     - 从性能、可扩展性、可维护性、可移植性角度确定各类节点的数目和部署方式     - 绘制部署图,将artifact分配给各个节点 部署图主要元素 部署图中的主要元素有节点、物件和连接。其中节点根据其状态不同又有节点实例、节点容器等区别于节点的拓扑方式。 节点(Node) :硬件设备或运行在硬件设备上的软件系统。      - UML表示            - 节点实例:节点的实例形式。格式为 instance name: Node ,与类实例格式相似,冒号前面可以有实例名称也可以没有实例名称                 - 节点类型 :根据节点是否能够进行         - 处理器:本身具有计算、执行等软件运行处理能力的节点         - 设备:本身不具有软件运行处理能力的节点        - 节点容器(Node as Container) :一个节点可以包括其他的物件或节点,比如Artifact类型的库文件、可执行文件等。          物件

笔记 UML基础

放肆的年华 提交于 2019-12-26 14:07:25
UMl:unified modeling language。为面向对象软件设计提供统一的、标准的、可视化的建模语言。适用于描述以用例为驱动,以体系结构为中心的软件设计的全过程。 UML的定义包括UML语义和UML表示法。 UML模型图的由事物、关系、图构成。事物是UML模型图中最基本的构成元素,是具有代表性的成分的抽象;关系把事物紧密联系在一起;图是事物和关系的可视化表示。 UML事物包括构建事物、分组事物、行为事物、注释事物。   构建事物:UML模型的静态部分,描述概念或物理元素。   行为事物:UML模型的动态部分,描述跨越空间和时间的行为。     交互:实现某功能的一组构件事物之间的消息的集合,涉及消息、动作序列、链接     状态机:描述事物或交互在生命周期内响应事件所经历的状态序列。   分组事物:UML模型图的组织部分,描述事物的组织结构。     包:把元素组织成组的机制。   注释事物:UML模型的解释部分,用来对模型中的元素进行说明、解释。     注解:对元素进行约束或解释的简单符号。   UML关系:   依赖关系:两个事物之间的语义关系,其中一个事物(独立事物)发生变化,会影响到另一个事物(依赖事物)的语义。   关联关系:是一种结构关系,它指明一个事物的对象与另一个事物的对象间的联系。   泛化关系:是一种特殊/一般的关系。可以看做是继承关系