uml

How model statemachine, when state is dependent on a function?

混江龙づ霸主 提交于 2019-12-08 08:32:17
问题 I have a Contract class. The contract is valid 1 Jan 2010 - 31 Dec 2010. It can be in state Active or Passive, depending on which date I ask the instance for it's state. ex. if I ask 4 July 2010, it's in state Active, but if I ask 1 Jan 2011, it's in state Passive. Statemachine diagram: From Start state, which state should it go to next ? I'm thinking a pseudo state "default" with an entry function deciding which state to go to next, and then a substate machine with Active and Passive, and

Java API to create UML diagrams

ぐ巨炮叔叔 提交于 2019-12-08 07:57:54
问题 Is there any Java API (Opensource) that can be used in drawing/creating UML diagrams. JFreeChart is a Java API to draw charts/bars/graphs, similarly is there any tool to draw UML diagrams using Java ? 回答1: Perhaps not specifically for UML diagrams but I have been using JUNG to create hierarchical graphs and am very happy with it. Take a look at the examples they have and see if it's useful for you. 回答2: If you want to create class diagrams, this tutorial shows how to do it with eclipse draw2d

How to write typedef and alias in plantuml

感情迁移 提交于 2019-12-08 07:33:45
问题 For example my cpp implementation looks like: class B { int value; } typedef MyB B; class A { MyB b; } My plantuml code: class B { int value; } class A { MyB b; } A o-- B How to represent this alias in plantuml. How it should be done in right way. I can't find this in plantuml tutorial. 回答1: Aliases are merely referred to in the UML specs along with imports (though aliases may be used in namespaces as well). P. 30 gives an example which also addresses your 2nd issue with typedef : In Figure 7

Do pointer/reference data members indicate an association or aggregaation relationship in UML?

自作多情 提交于 2019-12-08 06:36:15
问题 I'm a bit confused about which one it is. You could say it 'uses' the object via the pointer - therefore association. But it also sounds like aggregation - 'has an' object but when this object dies that doesn't mean the referenced object dies. Which one makes most sense in UML? 回答1: It can indicate association, aggregation and event composition. The difference between the three is semantic and not static or implementation specific. If the pointed class has a lifecycle dependency with the

Showing the Dependency Relationship on a Visual Studio class diagram

南笙酒味 提交于 2019-12-08 06:19:27
问题 Say I have a class structure like this: public interface IFoo { } public class Foo : IFoo { } public class Bar { public void Test(IFoo foo) } Is it possible to show an association relationship between Foo and Bar (the weakest relationship). Should I even be doing this? 回答1: As @Thomas Kilian said your relationship (between Bar and IFoo ) is not any types of Association. It can be Dependency relationship . To have more explaination about Dependency Relationship : Dependency Relationship is one

UML modelling tool for php

时光总嘲笑我的痴心妄想 提交于 2019-12-08 06:11:47
问题 My question is what do you use when you create large scale php applications. I havent found so far a decent UML modelling tools which would have these features: nice GUI adding attributes and methods by click (no like big edit with raw text and new lines) generate php classes drag and drop classes for modelling databases I use MySQL workbench and it is really god for what I need to do. thanks. 回答1: You could give UML Lab (http://uml-lab.com) a try (Note: I'm biased as I'm working for Yatta

How to create UML diagram from loaded Java code?

烂漫一生 提交于 2019-12-08 05:57:25
问题 I have question about my program. My program should be to able create UML diagram from Java code, but I don't know, how design method, which will retrieves (load) Java keywords, objects etc. Notice: I can not use automated programs to create UML diagram. It is my thesis. My idea was create enum class with Java keywords, that are seen in UML diagram and check all loaded code with this enum. But there are several problems, which I am not able to solve, especially spaces. Next problem is

A proposal to add statemachine support to C++-like language

亡梦爱人 提交于 2019-12-08 05:40:41
问题 Lately as part of my day job I've been learning IBM Rhapsody and using it to generate code in C++ from the UML. Yesterday it struck me that it might be cool to think about adding state machine support to my C++ compiler, so I jotted a few notes here: http://ellcc.org/wiki/index.php/State_machines_and_Active_Classes My motivations for doing this are: It seems like a cool idea. The compiler could do much better semantic checking (with better error checking) than the current Rhapsody/normal C++

Use-case specification of included use-case

故事扮演 提交于 2019-12-08 04:00:34
问题 Does anyone know how to describe (specify) the use-case that includes another usecase in the use-case specification table? For example, I have a use-case "change password" that includes use-case "login" (this is just an example, i know that login should just be in the pre-condition of the use-case) May i specify it like this? Use-case identity: Change password Actor: User Pre-condition: ... Normal flow: Do use-case "Login" .... .... .... What is the proper way to specify the use-case that

XSD to UML command line tool

泪湿孤枕 提交于 2019-12-08 03:36:48
问题 I was wondering, does anyone come across any command line tool (free in preference) for translating an xml schema (xsd) to UML diagram? The .xsd is used to represent classes, thus a UML class diagram would fit the purpose. I would be more interested in a command line tool, as i would like to make it an automatic task, thus i would rather not have to open a UI to perform it. I have done some online research but most of the tools do require UI interaction. Thank you for any suggestions. 回答1: An