uml

XSD for XMI 2.1.1

余生颓废 提交于 2020-01-04 05:13:45
问题 I have to parse a XMI file (xmi version 2.1.1) using JAXB. For that, I have to generate Java classes corresponding to a XMI file. So I need a shema definition of a xmi file to do that with the jxc tool. I hope anyone know where I can find this file. Thanks in advance for help ! Edit : for more informations, there is an exemple of a xmi file (generated using modelio) : <?xml version="1.0" encoding="UTF-8"?> <uml:Model xmlns:uml="http://schema.omg.org/spec/UML/2.1.1" xmlns:xmi="http://schema

Template method in uml

此生再无相见时 提交于 2020-01-04 03:12:07
问题 Is there any way to display template method in UML (I mean a c++ template method, not pattern)? I've found template classes only. Suppose i have class A { public: template <typename T> std::vector<T> func(T& var); }; So, the only way I can display it in uml now is +func(in var : T&) : std::vector<T> . Is there any way to say it's template, and T is not a usual type? 回答1: I'm not entirely sure here, but I think the answer is no. If I understand it correctly, UML can only deal with templates on

Visual Studio generate code from UML diagrams?

*爱你&永不变心* 提交于 2020-01-04 02:06:57
问题 I'm doing research on producing code from UML diagram using Visual Studio 2015. From what I have done, I have created Use case, Activity, Sequence and Class diagram before generating the code. When I generate the code, I see that Visual Studio only takes my class diagram to be referred to when it generates the code. So my question, is it true that Visual Studio will only refer to the class diagram when generating the code? If not, which means that the way I'm doing the other diagram is wrong

UML类之间的关系

て烟熏妆下的殇ゞ 提交于 2020-01-03 18:18:29
UML 简介 统一建模语言(Unified Modeling Language,UML) 作用:对软件系统进行说明 如果说软件系统是一本小说的话,那么 UML 就是将小说动漫化。 也许你看过这本小说,但是时间一长,你会忘记一些东西,但是动漫化的故事你不会轻易忘记。 类之间的关系 用一张类图说明 类之间的关系通常有6中: 泛化(Generalization) 实现(Realization) 关联(Association) 聚合(Aggregation) 组合(Composition) 依赖(Dependency) 泛化 泛化 = 继承 比如鸟类是动物的泛化,酵母菌是真菌的泛化,网络小说是小说的泛化 … 子类具有父类的特征,但又具有父类所没有的特征。 实现 对接口的具体实现,是由抽象到具体的过程 关联 比如价格和商品销量是有关联关系的,天气和航班是有关联关系的,企鹅和气候是有关联关系的 … 聚合 指一堆对象聚在一起,但这些对象单独又是一个整体 组合 是包含关系,比如鸟类包含翅膀、躯干、脑袋、尾巴等,但不能说翅膀就是鸟类 依赖 人离了氧气就会死,这就是依赖。 来源: CSDN 作者: 归否 链接: https://blog.csdn.net/LHAT_7/article/details/103821430

How to represent an if condition1 else if contion2 on a sequence diagram?

雨燕双飞 提交于 2020-01-03 09:44:14
问题 I was wondering, how can one represent "if cond1 else if cond2" statement on a sequence diagram? if (condition1) { // Do something } else if(condition2) { // Do something else if } Im not sure if is it with two independent "Opt" clause If possible create an image representation of a solution. 回答1: In the sequence diagram, you can use a combined fragment with an alt operator. This allows you to show alternative behaviors: Graphically, the alternatives are in tiled regions separated by dashed

Conversion of Association,Aggregation and composition into code in java?

偶尔善良 提交于 2020-01-03 09:03:31
问题 I know There are different way of reprentation for Conversion of Association,Aggregation and composition in java. But when we convert them into code(java classes) they are all represented in same manner. Like Student taught by teacher which is association will be represented with Student class having instance variable of Class Teacher. Department has professors which is aggregation will be also be represented with Department class having instance variable (array )of Class Professors.

Conversion of Association,Aggregation and composition into code in java?

回眸只為那壹抹淺笑 提交于 2020-01-03 09:02:21
问题 I know There are different way of reprentation for Conversion of Association,Aggregation and composition in java. But when we convert them into code(java classes) they are all represented in same manner. Like Student taught by teacher which is association will be represented with Student class having instance variable of Class Teacher. Department has professors which is aggregation will be also be represented with Department class having instance variable (array )of Class Professors.

UML metamodel: derived, derived union and subsetting

随声附和 提交于 2020-01-03 08:29:09
问题 If you have ever worked with the metamodel of UML, you propably know the concepts of unions and subsets - As far as I understand it: Attributes and associations of an element/class marked as " derived union " cannot be used directly. In more specific sub-classes, you can possibly find subsets of them that can be used, as long as they are not marked as derived unions themselves. " derived " (without union) attributes and associations have also subsets in more specific classes, but unlike above

UML class diagram: is this how to write abstract method and property?

為{幸葍}努か 提交于 2020-01-03 07:30:13
问题 When I was creating the first time an uml class diagram for a small C# project I had some trouble with the properties. At the end I just added the properties as a variable with <<property>> at the start. Now Im wondering how do I solve this with an abstract method? Should I just add <<abstract>> to the method an fine? Im doing something like this: ----------------------------------- | <<abstract>> | | MyClass | ----------------------------------- |<<property>> + a : int | |<<property>> + b :

How to draw a use case diagram when an actor can change the other actor's use cases?

自闭症网瘾萝莉.ら 提交于 2020-01-03 05:00:10
问题 Let's take a social group system as example; Actors are the Admin and the Moderator. Use Cases : ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ (Delete posts) ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎‏‏‎ / ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ moderator --- (Report Post) ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏⬆️ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ Admin --- (Manage roles) Moderator's posts can be changed by admin, for example