uml

Aggregation and navigability at the same end

只谈情不闲聊 提交于 2019-12-04 01:59:29
问题 In UML, is it possible to draw an aggregation where the component object can access the composite object? Like in this image, but with only one association line, so the association end touching A would have a diamond and an arrow. If that isn't possible, the diagram I drawn is valid? If not, why? 回答1: Another point of view, navigability is important to show how is it possible to navigate in the model and how to access to instances. Another point is about OCL, if navigability is not defined

How to represent Callback in UML Class Diagram

独自空忆成欢 提交于 2019-12-04 01:18:08
I have an Interface say Interface ICallback { public void informFunction(); } I have a Class say: Class Implementation implements ICallback { public Implementation() { new AnotherImplementation(this); } @override public void informFunction() { // do something } } Now consider a class where in the instance of Class Implementation is passed as a interface and is used to make a callback. Class AnotherImplementation { public ICallback mCallback; public AnotherImplementation(ICallback callback) { mCallback = callback; } public void testFunction() { mCallback.informFunction(); // Callback } } Now I

What is the difference between 'includes', 'extends' and 'uses'?

本小妞迷上赌 提交于 2019-12-03 22:36:54
In a use case diagram what is the difference between <<includes>> , <<extends>> and <<uses>> ? Are <<includes>> and <<uses>> are the same thing? includes and uses are the same. From http://www.agilemodeling.com/essays/useCaseReuse.htm above An include dependency, formerly known as a uses relationship in UML v1.2 and earlier Nice writeup here: http://www.agilemodeling.com/essays/useCaseReuse.htm Summary from that article: An extending use case continues the behavior of a base use case. An include dependency is a generalization relationship denoting the inclusion of the behavior described by

Learning how to analyse a project

廉价感情. 提交于 2019-12-03 22:13:09
I've just stumbled into the job of analysing a project for one of my company's clients (an SMB). I am a .Net developer (5 years) with little experience in analysing software (UML from school). We've just finished two weeks of talking with the users and got a nice big list of requirements. Obviously we've filtered out the most important requirements and had to mark a bunch as 'out of scope'. I have just started making some usecases, but feel I don't have the required expertise to bring this entire project to a good end. I'd like to know if someone has made the leap from developer to analyst and

UML

只愿长相守 提交于 2019-12-03 20:10:38
软件过程 分析,设计,编码,测试,维护 RUP 一开始要有好的设计 XP 极限编程 敏捷软件开发实战 用户素材 短周期交付 结对编程 测试驱动开发 重构 分析 是什么 what 设计 怎么做 how 编码,测试,维护 分析阶段 需求与初始分析 分析阶段的静态建模(强调软件的结构) 分析阶段的动态建模(强调软件的行为) 设计阶段 OO设计原则与模式 设计阶段的静态建模 设计阶段的动态建模 系统设计 图例 针对软件的静态 结构 来进行静态建模 类图(class diagram) 对象图(object diagram) 用例图(use case diagram) 组件图(component diagram) 部署图(deployment diagram) 组合结构图(composite diagram) 针对软件的动态 行为 来进行动态建模 序列图(sequence diagram) 协作图(collaboration diagram) 状态图(statechart diagram) 活动图(activity diagram) 类与类之间的关系 继承(泛化)   是一种继承关系,表示一般与特殊的关系,它指定了子类如何特化父类的所有特征和行为。例如:马是动物的一种,即有马的特性也有动物的共性。 箭头指向】:带三角箭头的实线,箭头指向父类 class Animal { public:

Best UML plugins for Eclipse [closed]

两盒软妹~` 提交于 2019-12-03 18:50:02
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I just inherited a J2SE project and will be working on it on Eclipse. I'd like to get some diagrams out of the existing code and I'm

How can I create a class diagram with NetBeans' 6.8 UML module?

孤者浪人 提交于 2019-12-03 16:34:29
问题 It seems to me the UML module of NetBeans is a bit too much hidden. In NetBeans 6.5 it was very easy to create an UML diagram. No plugin installation necessary or sth. like. Read my post where I found a zip file to install the UML module. And now, after this procedure, I got the UML module back, but it seems to me that I cannot create class diagram with it. Do you know how I can do this with NetBeans 6.8? Update1 : There seems to be no support Update2 : Nevertheless somebody seems to got it

State machine versus RTOS for microcontrollers

梦想与她 提交于 2019-12-03 16:27:48
I stumbled across a free state machine tool . This appears to be for programming embedded systems graphically. By doing so, the author claims that the resulting code is more maintainable than if an RTOS had been employed. This tool is based on UML, which is nice to know, but has a steep learning curve. I would like to know what some of the more experienced programmers here think of this tool. I am developing an embedded application for the LM3S5P36 microcontroller. TI has an IDE called Code Composer Studio (CCS). I have not got into CCS yet, but I doubt it has the cool feature of being able to

How to use pyreverse on Windows

。_饼干妹妹 提交于 2019-12-03 15:21:54
I would like to create diagram class using pyreverse. I download it, and when I use this command: pyreverse.bat -c PyreverseCommand -a1 -s1 -f ALL -o png test.py I get an error "The name 'dot' is not recognized....". What is "dot", how can I create diagram class? Thanks for answers. dot is part of Graphviz ( http://www.graphviz.org/About.php ). You need to install Graphviz and then modify your PATH so Windows (what I assume you are using) can find it. "the command pyreverse generates the diagrams in all formats that graphviz/dot knows." ( http://www.logilab.org/blogentry/6883 .) Once installed

Graphviz top to bottom AND left to right

别等时光非礼了梦想. 提交于 2019-12-03 14:45:57
Hi there I want to have a uml sequence diagram with dot language, now I have the following problem I want to have the layout as follows with a, b, c and d in a straight line at top but with the lines going straight to the bottom. How can I achieve that? a b c d | | | | | | | | perhaps can I achieve that the a, b, c and d with its belonging edges are clusters where I set a different rankdir for the clusters? EDIT Just found a solution by adding invisible edges between a, b, c and d but any other solutions? Dave Webb What you describe seems to be what dot does by default. For example, this graph