uml

How to describe a contained map in UML class diagram?

落爺英雄遲暮 提交于 2019-11-27 15:27:33
I have a MyServer class that contains a Map whose keys are MyClientType objects and whose values are MyClient objects. I'd like to depict this relationship in a class diagram but I can't figure out a clean way to do that. Kru You can use a qualified association: ┌──────────┐ 1 ┌───────┐ │ MyServer │Key│───────────│ Value │ └──────────┘ └───────┘ See: http://etutorials.org/Programming/UML/Chapter+6.+Class+Diagrams+Advanced+Concepts/Qualified+Associations/ (cause it is hard to draw using ASCII) Note also that a qualified association changes the multiplicity: ┌──────────┐ 0..* ┌───────┐ │

Code stubbing with Visual Studio 2010 UML modeling

前提是你 提交于 2019-11-27 15:23:13
问题 Currently I'm exploring my way through all the new features added to the Visual Studio 2010 Beta 1 IDE and I found a feature that will hopefully be of great help to me. The UML Modeling tool in the Architecture Edition. I wanted to create a new test project, nothing special. I started out with creating just a standard UML Logical Class Diagram. Then after I had finished I wanted to export my diagram to C# code with class stubs but I couldn't figure out how to do it. So naturally I consulted

Recommended NetBeans UML plugins [closed]

我们两清 提交于 2019-11-27 12:00:11
问题 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 6 years ago . It appears that the NetBeans UML plugin has been discontinued, as per a discussion on the NetBeans forums. This was a great, free tool with nice model->code and code->model generation. There are a number of other UML NetBeans plugins out there. However, I've never used any of them. Any suggestions? 回答1: I had

Code understanding, reverse engineering, best concepts and tools. Java

牧云@^-^@ 提交于 2019-11-27 11:48:53
问题 One of most demanding tasks for any programmer, architect is understanding other's code. For example, I am contractor, hired to rescue some project very quickly. Fix bugs, plan global refactoring and therefore I need most efficient way to understand the code. What is the list of concepts, their priority and best tools for this? Of what I know: reverse code engineering to create object models (creating of diagram per package is not so convenient), create sequence diagrams (the tool connects in

UML作业第四次作业

a 夏天 提交于 2019-11-27 10:33:50
一、学习小结: 1.开始和结束:使用关键字 start 和 stop 表示图示的开始和结束。 @startuml start :Hello world; :This is on defined on several **lines**; stop @enduml 也可以使用 end 关键字。 @startuml start :Hello world; :This is on defined on several **lines**; end @enduml 2.条件语句 :在图示中可以使用关键字 if , then 和 else 设置分支测试。标注文字则放在括号中。 @startuml start if (Graphviz installed?) then (yes) :process all\ndiagrams; else (no) :process only __sequence__ and __activity__ diagrams; endif stop @enduml 也可以使用关键字 elseif 设置多个分支测试。 @startuml start if (condition A) then (yes) :Text 1; elseif (condition B) then (yes) :Text 2; stop elseif (condition C) then

Difference between association and dependency?

拟墨画扇 提交于 2019-11-27 10:19:17
In a UML class diagram, what is the difference between an association relationship and a dependency relationship? From what I know, an association is a stronger relationship than a dependency, but I'm not sure how it is stronger. Any example would be more than welcome :) What is the difference between dependency and association? : In general, you use an association to represent something like a field in a class. The link is always there, in that you can always ask an order for its customer. It need not actually be a field, if you are modeling from a more interface perspective, it can just

How to show “if” condition on a sequence diagram?

99封情书 提交于 2019-11-27 10:12:54
I was wondering, how can one represent " if " statement on a sequence diagram? if (somethingShouldBeDone) { // Do it } else { // Do something else } Can it be represented at all? The thing is ... in my code, fair amount of conditions are checked to determine a variety of actions. If i am going to show the actions, I'd like to explicitly state that actions are caused by particular events. If possible create an image representation of a solution. GETah If else condition, also called alternatives in UML terms can indeed be represented in sequence diagrams. Here is a link where you can find some

Association vs. Aggregation [duplicate]

笑着哭i 提交于 2019-11-27 10:12:46
This question already has an answer here: Aggregation versus Composition [closed] 12 answers I have reviewed a lot of information about these things, but can't understand what is the difference between them? In Fowler's UML Distilled says that Aggreagation is strictly meaningless, so author recommends not to use it in diagrams. Explain, please, when I should use each of them and how it will influence on java code. This is a very arguable question. As Martin explains in the answer , the Order aggregates the Product. And this can be considered true. Grady Booch in his "Object-Oriented Analysis

Draggable rectangles in Java 2D [duplicate]

ε祈祈猫儿з 提交于 2019-11-27 09:52:49
Possible Duplicate: how to drag object I need to draw some UML components (classes, packages etc) using Java 2D and then be able to drag them around. Is there a way to do this? I mean, to make a shape "draggable"? JHotDraw was designed as "a Java GUI framework for technical and structured Graphics." The linked JHotDraw Pattern Language: JHotDraw Domain Overview illustrates how to customize drawing editors. The sample org.jhotdraw.samples.draw.Main is a reasonable starting point, and JModeller is a simple UML editor built using the framework. Are you forced to swing? If not you might have look

Can UML be used to model a Functional program? [closed]

谁说胖子不能爱 提交于 2019-11-27 09:50:16
问题 More specifically, how do you model a functional program, or one developed using the Functional Style (without classes) using a diagram, and not textual representation, is it at all possible and could someone please direct me towards the nearest application that would do this (open source, of free as in beer, if you please) 回答1: Functional programmers generally don't have a lot of use for diagrams. Many functional programmers (but not all) find that writing down types is a good way to