uml

Uml / sequence / package / … diagram alternative for JavaScript and Electron application?

久未见 提交于 2021-01-27 23:45:22
问题 My question is if there are any kind of diagram I could draw in order to visualise and Electron / JavaScript application? I would need alternative for the different uml diagrams, like class or package diagram but since JS is prototype-based and it's not like Java or C# I don't know what I could do. The only one I might be able to make is a sequence diagram, but I should (probably must) make other diagrams as well. 回答1: First of all, you're not obliged to document everything in UML diagrams at

Translating SiDiF to Weaviate

折月煮酒 提交于 2021-01-27 12:53:12
问题 I have several ontology descriptions in Simple Data Interchange Format and would like to transform or import these to use them with Weaviate. An example can be found at: http://cr.bitplan.com/index.php/CrSchema#sidif (see source code below). I was able to create classes and properties manually but i am not sure how to do relations in Weaviates Schema description style. E.g. if i have a class "Event" and want to link the City for it how do i do this if at all? You'll find more details on the

Is this okay to use UML component diagram for a 3-tier Architecture?

会有一股神秘感。 提交于 2021-01-27 07:13:11
问题 There are so many types of diagrams in UML. I am little confused about which one to use for what. I designed a 3-tier architecture for my web application software using UML Component Diagram. Please see the attached image and tell me if I'm doing this right or wrong. Is this a good idea to use Component Diagram for this architecture? 回答1: Basically I agree with @KeizerHarm's answer. However, there's a flaw in your diagram. Rather than packages you should use components since you put ports on

UML class diagram - represent attribute with initial value

断了今生、忘了曾经 提交于 2021-01-27 05:19:15
问题 How is an attribute with initial value (such as a static constant) represented in UML? public class Foo { public static final int BAR = 17; } 回答1: The initial value of an attribute in a UML class diagram is represented just like variable assignment in a language like Java. Moreover, since the example attribute is static, it should be underlined. Capitalization is by language or other convention and is not a UML specification. 来源: https://stackoverflow.com/questions/36323833/uml-class-diagram

UML State Machines, Local vs. External Transition

∥☆過路亽.° 提交于 2020-12-30 06:37:04
问题 As already asked in http://www.eclipse.org/forums/index.php/t/452409/ I am not sure I correctly got the meaning of local transition and I'd like to know whether I am using them with the right semantics or not Are these two state machines equal? 回答1: Under UML 2.4.1, the first diagram shows a local transition from State1 on receipt of trigger where the second shows transitions between sub-states on receipt of trigger . An external transition from State1 would be shown by the arrow pointing out

How to show private inheritance relationship in a UML class diagram

霸气de小男生 提交于 2020-12-29 03:02:36
问题 In C++ since private inheritance is not considered as an is-a relationship, how is it supposed to be shown in a class diagram and if it is shown as a has-a relationship then how can it be differentiated between a composition and a private inheritance? 回答1: It should be a Composition relationship (solid black diamond on the subclass side), because: Private inheritance means "implemented in terms of" but in this regard it can be simply treated the same as "has a" relationship. An instance of

How to model parallel threads in a UML sequence diagram

流过昼夜 提交于 2020-11-26 19:39:06
问题 How can I model two parallel threads that perform operations on an object in a sequence diagram? 回答1: In a sequence diagram, a lifeline represents an individual participant in the interaction. So your object that is shared between the threads should appear once and only once in the diagram. You would also represent with a lifeline each threaded object that interact with your shared object. It could be thread instantiations directly, or it could be several objects that are created in the

UML类图几种关系的总结

落爺英雄遲暮 提交于 2020-11-02 16:04:12
在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency) 1. 泛化( Generalization ) 【泛化关系】:是一种继承关系,表示一般与特殊的关系,它指定了子类如何特化父类的所有特征和行为。例如:老虎是动物的一种,即有老虎的特性也有动物的共性。 【箭头指向】:带三角箭头的实线,箭头指向父类 2. 实现( Realization ) 【实现关系】:是一种类与接口的关系,表示类是接口所有特征和行为的实现. 【箭头指向】:带三角箭头的虚线,箭头指向接口 3. 关联( Association) 【关联关系】:是一种拥有的关系,它使一个类知道另一个类的属性和方法;如:老师与学生,丈夫与妻子关联可以是双向的,也可以是单向的。双向的关联可以有两个箭头或者没有箭头,单向的关联有一个箭头。 【代码体现】:成员变量 【箭头及指向】:带普通箭头的实心线,指向被拥有者 上图中,老师与学生是双向关联,老师有多名学生,学生也可能有多名老师。但学生与某课程间的关系为单向关联,一名学生可能要上多门课程,课程是个抽象的东西他不拥有学生。 下图为自身关联: 4. 聚合( Aggregation ) 【聚合关系】:是整体与部分的关系

UML类图关系总结

倾然丶 夕夏残阳落幕 提交于 2020-10-30 09:02:21
在UML类图中,常见的有以下几种关系:泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency) 1.泛化(Generalization) 【泛化关系】:是一种继承关系,它指定了子类如何特化父类的所有特征和行为例如:老虎是动物的一种. 【箭头指向】:带三角箭头的实线,箭头指向父类 2.实现(Realization) 【实现关系】:是一种类与接口的关系,表示类是接口所有特征和行为的实现 【箭头指向】:带三角箭头的虚线,箭头指向接口 3.关联(Association) 【 关联关系】:是一种拥有的关系,它使一个类知道另一个类的属性和方法;如:老师与学生,丈夫与妻子 关联可以是双向的,也可以是单向的。双向的关联可以有两个箭头或者没有箭头,单向的关联有一个箭头。 【代码体现】:成员变量 【箭头及指向】:带普通箭头的实心线,指向被拥有者 上图中,老师与学生是双向关联,老师有多名学生,学生也可能有多名老师。但学生与某课程间的关系为单向关联,一名学生可能要上多门课程,课程是个抽象的东西他不拥有学生。 上图为自身关联。 4. 聚合(Aggregation) 【聚合关系】:是整体与部分的关系.如车和轮胎是整体和部分的关系. 聚合关系是关联关系的一种,是强的关联关系