uml

showing interface dependencies in UML

﹥>﹥吖頭↗ 提交于 2019-12-25 06:46:26
问题 Say I have the following interface and class This has a association dependency on SomeObject like so Does the interface, IDoSomething, have a dependency on SomeClass? Should I show this in UML? Clearly the interface does have a dependency but this looks like noise to me: I was thinking that you could infer the interfaces dependency from DoSomethingImpl's dependencies, but this wouldn't work if it implemented multiple interfaces. If the interface implemented another interface then I would

many-to-many relation and relational model [closed]

拟墨画扇 提交于 2019-12-25 04:56:24
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I learn in Merise or UML if we have tow tables with many-to-many relation we have to create a new table in relational model (in Mysql) and this table will contain the tow id of the tow other tables. But we really must create a new one because with hibernate and mapping i think we don't need to.

how to write data attributes in UML with typedef unsigned

独自空忆成欢 提交于 2019-12-25 04:28:49
问题 this is my sample code my question is how am i going to write uint delay in UML Class Diagram, because it is typedef unsigned -----------------------------------------------------------------------------------------should i write it like this? - delay : int or this way? - delay : uint --------------------------------------- typedef unsigned int uint; class MyBreakoutGameType : ... { public: private: uint delay; }; 回答1: Your diagram for the mentioned code should look like 回答2: Version 13.5 of

Wrap conditional into a function or not represent it at all in a sequence diagram?

落爺英雄遲暮 提交于 2019-12-25 03:33:02
问题 I've this PHP controller class (belongs to Symfony2 bundle): class ReptoolController extends PageController { // ... private function _get($request, $action, $case) { $app_id = $this->getRequested('app_id'); if( ( $repappConfig = $this->getDoctrine()->getRepository('PDOneBundle:RepappConfig')->findOneBy(array("app_id"=>$app_id))) ) { $current_timestamp = new \DateTime(date('Y-m-d')); if($repappConfig->getExpireDate()) $expire_date = $repappConfig->getExpireDate()->getTimestamp(); else { $temp

Are my Uml diagrams correct?

余生颓废 提交于 2019-12-25 02:16:20
问题 I have these uml diagrams. They are diagrams of a game called Tictactoe. Just a simple tictactoe with scoring. So i would like you to check or give an opinion of my diagrams if it is correct or needs improvements. here are the diagrams: Acitivity diagram Class diagram Usecase diagram Statechart diagram 回答1: Simple answer: the diagrams are incorrect. Without even looking at the problem-domain aspects of the diagrams, there are glaring problems. 1) Your activity diagram cannot possibly work.

System.IDisposable interface realization for custom class in VS 2010 Ultimate UML Editor

孤街浪徒 提交于 2019-12-24 22:22:00
问题 I have designed a class (in UML) which should implement the System.IDisposable interface. How do I do it so that when generating code it get's recognized properly and withou having to draw my own "System" package with some "IDisposable" interface in it? Thanks for your help! Cheers, David 回答1: I discovered to do it as follows: The clean (slightly overkill) variant: Open Architecture -> Windows -> Architecture Explorer Browse thru to find the class/type you need. In this example Saved DGQL

看懂UML类图和时序图

佐手、 提交于 2019-12-24 20:57:23
原文: 看懂UML类图和时序图 这里不会将UML的各种元素都提到,我只想讲讲类图中各个类之间的关系; 能看懂类图中各个类之间的线条、箭头代表什么意思后,也就足够应对 日常的工作和交流; 同时,我们应该能将类图所表达的含义和最终的代码对应起来; 有了这些知识,看后面章节的设计模式结构图就没有什么问题了; 本章所有图形使用Enterprise Architect 9.2来画,所有示例详见根目录下的design_patterns.EAP 从一个示例开始 请看以下这个类图,类之间的关系是我们需要关注的: 车的类图结构为<<abstract>>,表示车是一个抽象类; 它有两个继承类:小汽车和自行车;它们之间的关系为实现关系,使用带空心箭头的虚线表示; 小汽车为与SUV之间也是继承关系,它们之间的关系为泛化关系,使用带空心箭头的实线表示; 小汽车与发动机之间是组合关系,使用带实心箭头的实线表示; 学生与班级之间是聚合关系,使用带空心箭头的实线表示; 学生与身份证之间为关联关系,使用一根实线表示; 学生上学需要用到自行车,与自行车是一种依赖关系,使用带箭头的虚线表示; 下面详细介绍这六种关系; 类之间的关系 泛化关系(generalization) 类的继承结构表现在UML中为:泛化(generalize)与实现(realize): 继承关系为 is-a的关系;两个对象之间如果可以用 is-a

How to create a abstract method in staruml 5

孤街浪徒 提交于 2019-12-24 19:35:03
问题 does anybody know how to create an abstract method in staruml 5.0? The UML standard says that such a method should be italic, but it seems that is not possible in staruml 5.0 for a single method? please help me :D 回答1: As depicted in the attached, you just have to select your method on the "model explorer" and then set it as "IsAbstract" on the properties tab. I just would to know why you use this modeler which have not been release since 2005? Regards, EBR 来源: https://stackoverflow.com

Optional activity and repeating activity for different actors in an activity diagram

邮差的信 提交于 2019-12-24 17:18:10
问题 I've got a game that I'm trying to create an activity diagram for but I run into some problems. My try so far looks like this: This shows the flow good, the GUI is created -> Player performs actions one -> Action Two -> Ends turn. But what I don't really like is how I could solve action 3. It is suppose to be optional and can be performed anytime from the "System creates GUI" action up until "Player ends turn". Though, performing action three still doesn't move the player back or forth in the

Object as data attribute of class in Class diagram UML

只谈情不闲聊 提交于 2019-12-24 12:17:42
问题 Is the following format wrong if I add a pointer to an object of a class, as data attribute of class in Class diagram in UML? 回答1: could not find anything about using objects in class diagram, is underlining the object correct within the class attributes? I think you may be mis-understanding classes, objects and attributes. Apologies if it's me doing the mis-understanding. So. Here's the short answer: it's absolutely fine and normal for the type of an attribute to be a Class. In other words,