uml

How to present static class or function call in Sequence Diagram?

三世轮回 提交于 2019-12-04 10:52:40
问题 How is a static class or call to a static function presented in Sequence Diagram? As per my understanding, the lifeline belongs to an instance/object of a class. This article says metaclass stereotype can be used. 回答1: "In case of doubt, use comments, or stereotypes..." Sequence Diagram: ....................................................... ....+-------------+...........+-------------------+.... ....| <<class>> |...........| <<class>> |.... ....| Cat |...........| FastFoodTerminal |.... ...

Generating UML diagrams using NetBeans 7.2

梦想的初衷 提交于 2019-12-04 10:50:58
问题 I found this link: http://wiki.netbeans.org/NetbeansUML for generating UML diagrams from existing code; admitedly using NetBeans 5.5. I followed the outlined procedure but just get an empty -Model project. Does the "Reverse Engineer..." method not work in NetBeans 7.2? If not then why isn't it disabled? Thanks Graham 回答1: After successfully installing easyUML plugin, do the following steps in Netbeans IDE: File->New Project->UML->UML Diagrams Project Rightclick on your Java Project in the

Generation of Class Diagram from XMI

不想你离开。 提交于 2019-12-04 10:35:33
问题 Situation I have a PHP project with lots of classes with lots of relationships in lots of folders following the Zend Naming Convention. I use the NetBeans IDE 7.1. I work under Windows 7. Goal I need to see a graphical representation of the class relationships, possibly in varying depths and varying degrees of complexity. Also, it would be nice if the classes in the diagram are clickable. I do not necessarily need to generate documentation. Attempts 1. Within NetBeans NetBeans is an awesome

UML free reverse engineering tool for C++ (.h/.cpp ==> Class Diagram)

血红的双手。 提交于 2019-12-04 10:11:47
问题 What tools are available for creating UML Class Diagrams from a set of .h- or .cpp-files? I am looking for something that... is free runs out of the box on Windows does not require any particular IDE ideally provides a GUI 回答1: Dia is a very good open source drawing tool, and cpp2dia creates UML diagrams from .h/.cpp files. I use it under Linux, I don't know if it runs in other platforms. There is no GUI for cpp2dia, but its command line usage is very simple. 回答2: About Bouml it claims to

Eclipse UML plugin with Java Code Generation

谁说胖子不能爱 提交于 2019-12-04 09:32:53
问题 Does anyone know of a good (read: Free) Eclipse UML plugin that can also do code generation? If not, does anyone know of any good Eclipse UML plugins? EDIT : I'm running Eclipse IDE on Fedora Linux TIA Noob 回答1: eUML is free (read the license for restrictions): http://www.soyatec.com/euml2/features/ Also Jupe: http://jupe.binaervarianz.de/ 回答2: I've had some luck creating UML diagrams based on java code with ObjectAid: ObjectAid Download Page. It was made for Eclipse so it should work.

UML help C# Design Principles

霸气de小男生 提交于 2019-12-04 08:11:34
Could anyone please point out the meaning of the graph below: What is the relationship between PolicyLayer and PolicyServiceInterface What is the relationship between PolicyServiceInterface and MachanismLayer. C# code would be also appreciated! Please note that the UML is from Agile Principles, Patterns, and Practices in C# By Martin C. Robert, Martin Micah 2006. Added on 15 2011/6/2 Do the following have the same meaning: 1) A solid line with a triangle at one end 2) A dashed line with a triangle at one end Added on 2011/6/3 1st What is the difference between: 1) A solid line with an arrow at

Create class diagram from already existent iphone code

纵然是瞬间 提交于 2019-12-04 07:50:36
问题 does anybody know, how i could create automatically a UML class diagram from an already existent iphone project. Is it possible? Thanks in advance. 回答1: Yes, you can use Doxygen: Install Doxygen (with MacPorts: sudo port install doxygen ). Get a script like this and change the first lines to match your configuration. Download these files and edit the Doxygen file so it says HAVE_DOT=YES and UML_LOOK=YES . It will then generate and install a docset that you can read from the documentation

Generate class diagram using EA [reverse engineering]

早过忘川 提交于 2019-12-04 05:48:56
问题 I am trying to generate class diagrams using reverse engineering option of EA. I am successfully able to import my code using option 'import source directory'. How to generate class diagram from this imported files? 回答1: after the import the class diagrams are added to each package (I tested with Java): It only contains the classes of the package. So if you want to create a more complex class diagram you will have to create a new diagram and then add the classes manually. Andy 回答2: You have

Create inheritance graphs/trees for Django templates

拟墨画扇 提交于 2019-12-04 05:22:08
Is there any tool out there that would take a directory with a Django application, scan it for templates and draw/print/list a hierarchy of inheritance between templates? Seeing which blocks are being overridden at every level would be an especially helpful feature in such a tool. Old question but FWIW there is (or was) django-template-graph that should work with Django 1.7. It doesn't (yet) work with Django 1.8+ when the template logic changed a bit so it needs to be patched, I opened an issue for that and will probably release a fix soon. 来源: https://stackoverflow.com/questions/19495407

three use cases into one use case

你离开我真会死。 提交于 2019-12-04 05:19:47
问题 I have one actor (admin), he can perform some actions over other user accounts such as creating the account, editing the account and deleting the account account. Should I do something like this: -->UseCase:createAccount / o / -|- / | -----> UseCase:DeleteAccount / \ \ Admin \ \-->UseCase:EditAccount Or should I do a single case? o -|- | -----> UseCase:ManageAccounts / \ Admin I'm asking this question because I feel that is harder to explain the successful case in the use case description if