uml

Difference between dependency and composition?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 12:00:23
问题 Definitions taken from here Dependency Change in structure or behaviour of a class affects the other related class, then there is a dependency between those two classes. It need not be the same vice-versa. When one class contains the other class it this happens. Composition Composition is a special case of aggregation. In a more specific manner, a restricted aggregation is called composition. When an object contains the other object, if the contained object cannot exist without the existence

UML for javascript?

╄→гoц情女王★ 提交于 2019-12-03 11:58:14
问题 I'm looking for a way of graphically representing javascript objects... I know there is UML, but for example, how to represent the chain between 2 objects, eg: var a, b; a = {}; b = Object.create(a); Intuitively, I'd draw something like this: +-----+ |b | |-----| | | +--+--+ | +-----+ +---->|a | |-----| | | +-----+ but is there a decent representation in UML? And what about mixins ? c = $.extend({}, a, b) +-----+ +-----+ |a | |b | |-----| |-----| | |<----------| | +-----+ +-----+ + +-----+ |

Active class versus passive class

匆匆过客 提交于 2019-12-03 11:45:12
In UML specification superstructure 2.5(still Beta, page 203) A Class may be designated by setting isActive to true as active (i.e., each of its instances is an active object). When isActive is false the Class is passive (i.e., each of its instances executes within the context of some other object). I wonder if there is a simple example illustrates the differences in applying each one of them? And elaborate this concept a bit? By definition, Active Objects In UML, active classes, and therefore active objects , exist in their own thread of operations and have their own address space. If

Is there an agreed UML diagram style for documenting or illustrating the role of (Docker) containers in a system architecture specification? [closed]

风流意气都作罢 提交于 2019-12-03 11:44:02
I'm planning to draw some UML structure diagrams that illustrate the place of Docker images (or containers, in deployment diagrams) in the overall structure of the software I am architecting. I'm interested in illustrating the contents of containers, the mapping of network ports and other interfaces and the way multiple containers inter-operate. My problem space is that of distributed, event-based systems (DEBS), so I expect that most of my containers will have message queues coming in and going out. Another part of my architecture involves the use of an in-memory data grid, which will span

Is there a convention for showing overridden methods in UML static class diagrams?

China☆狼群 提交于 2019-12-03 11:26:15
If class Human inherits some methods from superclass Mammal unchanged (such as laysEggs: () -> false ) and overrides other methods (such as postsToStackOverflow : () -> true ), is there any difference between how the different methods are indicated in portion of the UML static class diagram for Human ? For example, are only the overridden methods shown in the box for Human , or are both shown, with some annotation for the overridden methods? Now there is. Some anonymous got me to dig into the 2.5.1. specs . On p. 102 it says Members that are inherited by a Classifier may be shown on a diagram

Visual Studio - Generate UML from a c++ project

感情迁移 提交于 2019-12-03 11:19:31
问题 Currently I am reading though the cryengine gamecode. It is huge not very well documented. It would be really good if I could create an UML diagram from the project file. I already found some tools to generate an UML diagram from c++ code, the problem is that the cryengine project is really huge and it would take a lot of time to do this. Do you think this is possible? 回答1: Visual Studio has the build-in UML generator. On Visual Studio project, select Class View , right click on the namespace

generate Class diagram for iphone app

核能气质少年 提交于 2019-12-03 11:00:21
问题 i know how to generate class diagram in Xcode for iPhone app. but i am searching for alternate way to represent it, because my app is very much big and it will difficult to put diagram and explanation in my thesis report. any idea how to represent all classes or app in short manner so i can put into my thesis report. thank you very much 回答1: Just download OmniGraffle and then go to File->Open->Select your XcodeProject file and that's it you'll have a class diagram. 回答2: You can use

How to export Visual Studio 2010 UML Modeling Diagrams

落爺英雄遲暮 提交于 2019-12-03 10:21:16
I recently created a very nice UML Class diagram inside Visual Studio 2010 (b2). The tools worked like a charm and I was able to model a rather complex domain within minutes. However, I cannot find any way to export my diagram as an image (PNG/JPEG/etc.). Does the modelling features in VS2010 support exporting diagrams as images? If so - how do I do it? Print src is NOT the answer. Edit: Found one way to export... Go to File > Print and select Adobe PDF Edit 2: Found another, slightly more elegant, way to export. In the diagram editor: Select all ( Ctrl + A ), Copy ( Ctrl + C ), Go to your

UML association understanding problem

给你一囗甜甜゛ 提交于 2019-12-03 09:48:18
问题 I've been using UML for a while and I've read few articles, books, forums about it but I still don't REALLY understand when two classes should be connected with association line (a simple line or arrow (or are these not the same?)). I'll provide three examples - can you tell me which one will cause the two classes to be in this relationship? 1. //a field of OtherClass public class MainClass { private OtherClass other; } 2. //method argument public class MainClass { public void Action

Graphviz + Doxygen to generate UML class diagrams

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use Graphviz + Doxygen to generate a class diagram based on C++ code. This works already as Doxygen comes with a native DOT support; but is it possible, to produce a UML-like output with the corresponding access modificators (public, private etc.), return and parameter types of the class methods, similar to the diagram below? I'm aware of thread How to use doxygen to create UML class diagrams from C++ source , but it doesn't answer the question, though. 回答1: Create the following source file example.cpp : class Animal { public: void