uml

How to represent Javascript object creation with an UML class diagram?

 ̄綄美尐妖づ 提交于 2021-02-17 22:00:27
问题 I'm having some trouble drawing an accurate UML Class diagram for my JavaScript APP. I've read several UML reference resources, but still didn't find an answer for my situation, since all the examples are based on the classical inheritance and class model of C++/Java. I want to represent the creation of a custom JavaScript object with a constructor function and extension of it's prototype object, which is quite different from C++/Java class instantiation. How would you represent this

UML Class Diagram - Modelling with Enumeration

落花浮王杯 提交于 2021-02-16 14:53:06
问题 In a UML class diagram, how would I model a tutor can work multiple days of the week without knowing specifically? In my current solution: 1 or more tutors work on 1 or more days of the week . 回答1: Since the list of days when Tutor work is only an attribute and doesn't seem to have any specific structure to build a class around it, it should rather be an inline attribute with type DaysOfTheWeek and multiplicity 1..7 . Also since you can't work twice at the same day you should add unique

Explain SQL query using UML diagram? [closed]

让人想犯罪 __ 提交于 2021-02-16 13:38:29
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 days ago . Improve this question I have to present some complex queries and PL/SQL codes to people who don't know anything about my project. I need to explain how tables are connected, how conditions are affecting the outcome, joins, loops, etc. Is there a way to document this SQL and PL/SQL

UML relationship of class and object it creates inside the creation of another object?

僤鯓⒐⒋嵵緔 提交于 2021-02-10 17:49:25
问题 For example, in java: public class App { public void method() { Object1 o1 = new Object1(new Object2(parameters)); } } I know App and Object1 have a composition relationship. But what about App and Object2? Is it a composition as well? 回答1: Using a class in a method is not sufficient for an association Your class App has no fields of class Object1 or Object2 . It just uses Object1 and Object2 in the implementation of a method. This is not sufficient for making an association: there is no

Generating Python code from a diagram / UML / visual representation [closed]

老子叫甜甜 提交于 2021-02-08 10:20:26
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 months ago . Improve this question I have some Python classes that I pretend to manage with a visual tool of some sort. Each class has some methods that can perform operations (while also accepting arguments or returning values or other class instances). Let's say that the classes are "Person",

UML BPMN examples [closed]

陌路散爱 提交于 2021-02-07 20:29:28
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question I am looking for a basic business process (a ordering service or something similar) modeled using UML and/or BPMN for learning purposes. Are there any examples I can get my hand on? 回答1: You can find some examples here: BPMN examples: https://repository.genmymodel

UML BPMN examples [closed]

陌路散爱 提交于 2021-02-07 20:26:01
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question I am looking for a basic business process (a ordering service or something similar) modeled using UML and/or BPMN for learning purposes. Are there any examples I can get my hand on? 回答1: You can find some examples here: BPMN examples: https://repository.genmymodel

How to generate sequence diagrams automatically on executing junit

点点圈 提交于 2021-02-07 19:53:36
问题 I have been given a task of "generate sequence diagrams automatically on execution of junit/test case" in eclipse. I am learning UML. I found tools that can generate a sequence, and I am aware of junit, but how do I club this both. The tools that I found good were UMLet,ModelGoon UML, Object Aid. But I zeroed in on ModelGoon. I found that simple and easy to use. How do I automate this task, if so please guide me. If there are any-other tools that are available then guide me. 回答1: First: This

Is there a way to “map” the program execution order in Visual Studio or MATLAB?

有些话、适合烂在心里 提交于 2021-02-07 10:43:04
问题 What I mean by "map" is that I have a "main" function which calls many other programs inside, and I want to be able to see which file runs first, second, third, etc. Basically, I want to be able to see the list and order of dependencies in this large OOP design program (which the creator did not make a UML class diagram for) to help decipher the code. Surely such a functionality must exist in popular IDE's? I'm mostly dealing with C++ and MATLAB so I'm more concerned with these two

how do I add a final variable to class diagram

限于喜欢 提交于 2021-02-06 15:27:44
问题 I am designing a class diagram for scrabble game. In one of the classes, I have final variable declared. Can anybody tell me, how can I indicate a variable as final in the UML class diagram? 回答1: Constant (i.e. final) fields are indicated via naming convention: constants should be in ALL_CAPS Source 回答2: There are different notions of final that are all represented in different ways: final definition , i.e. it cannot be overridden in sub-classes - this corresponds to the isLeaf property of