uml

state transition with different guard condition

寵の児 提交于 2019-12-04 16:50:43
In the state pattern how is this modeled ? state A to state B on trigger X and conditon C1 when current state is A state A to state C on trigger X and condition C2 when current state is A how is this usually accomplished ? I have a lot of guard conditions that I may need to implement. That's pretty standard see e.g. this example . [Edited on basis it's not homework!] Assuming I understand right: You have one event ( X ) which can trigger one of two possible transitions Selecting which transition to fire is made according to which condition holds true ( C1 or C2 ) If so that's a standard case

Reverse Engineering Code into a UML Class Diagram in VS 2010

亡梦爱人 提交于 2019-12-04 15:18:43
问题 Reverse engineering source code into a VS 2010 UML class model? I have a bad feeling that this is not supported in VS 2010 (I'm using the RC from Feb 2010). I've tried dragging classes from the "Architecture Explorer" to the "UML Model Explorer" but that doesn't work (won't let me drop on the UML Model). I've tried generating an old style class diagram (*.cd) and dragging the resulting diagram object to a blank UML Class diagram. No luck. Binging does show up anything other than some MS

How to export Visual Studio 2010 UML Modeling Diagrams

…衆ロ難τιáo~ 提交于 2019-12-04 14:57:52
问题 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

UML Questions about 'abstract' and stereotypes

强颜欢笑 提交于 2019-12-04 14:21:57
问题 hi every body i'm trying to understand UML but there are some questions about it In UML what is the significance of tagging a class with the stereotype <<abstract>> ? and how to express this constraint as an invariant, 回答1: A stereotype "abstract" does not exist - an abstract class should be depicted using italic font. Abstract means that a class cannot be instantiated. It needs a subclass to do so. So as a pseudo-code constraint this would mean for all instances i of MyAbstractClass holds: i

Online Job Portal System Use Case Diagrams

好久不见. 提交于 2019-12-04 13:21:46
问题 I want to have a correct use case diagram for an online job portal system. Here is my attemp: I have some doubts: I can't see where making "Login" use case witch is an important use case for this system. This use case diagram is not showing the difference between a simple visitor and a registered one. The former could view vacancies, view advice without the obligation for having an account. The latter could view vacancies, view advice, upload CV (after be logged), apply for a job (after be

Relationships in a UML class diagram

元气小坏坏 提交于 2019-12-04 12:55:37
I have an application that models a tree, with classes Tree, Node and Edge (I need the Edge class!), and I'm not sure how to represent the relationships in the class diagram for this. I've read other posts about this, but am still in doubt. The Tree object have a pointer to a Node (its root), which I believe defines an one-way association (Tree -> Node) with multiplicity 1..1 in both ends. Is it right? Each Node object have pointers to the edges that comes out of it (Edge objects). Since these edges only exist if the node exist, I believe it's a composition association. But then I have, in

How do you convert a document in UML 1.3 - XMI 1.1 format to UML 2.1 XMI?

拜拜、爱过 提交于 2019-12-04 12:29:05
I am trying to convert a file exported from PowerDesigner in the UML 1.3 - XMI 1.1 format to the UML 2.1 XMI Interchange Model from Rational Software Architect. How can I do this? chooselife It can be worth to give a try to the XMI file converter its web based using Php. If RSA won't import XMI 1.1 then you'll need to find another tool that will. Enterprise Architect by Sparx Systems can import XMI 1.1 and can write XMI 2.1. You can get a free 30 day trial from their website at http://www.sparxsystems.com . Be warned though that there are different dialects of XMI, so you may need to try a

The essense of usecase diagrams

三世轮回 提交于 2019-12-04 11:56:53
For a school assignment, we have to make a Usecase diagram. But the documentation that we have, is not very extended. It just describes what components a usecase consists of, and one example. We have to make a usecase about a library system. We have found 11 usecases, but I won't bother you with all of them. IIRC, a usecase describes a typical usage of a system, right? But what things belong on a usecase diagram, and how do they connect together? What we have now are four actors (member, employee, manager and accountant). The ones we have most problems with are member and employee. The

Are there good tools for C# reverse engineering? [closed]

本秂侑毒 提交于 2019-12-04 11:47:12
问题 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 5 years ago . can you say me if there are good tools for reverse-engineering my C# applications. I need UML-class-diagrams of my written software and i don't want to draw these diagrams by myself. I've already tested StarUML but it didn't work because I used generics an something. Would be great if there a some advices.

Swift code to class diagram

穿精又带淫゛_ 提交于 2019-12-04 11:06:22
Is there a way to generate UML Class diagram for swift programming language? I found that the Mac A&D tool claims to be able to scan the swift code and create a class diagram. And there is a video to introduce it. https://wn.com/swift_code_to_class_diagram Unfortunately, it is not free. I wonder if there is another free tool to generate class diagram automatically. Could you guys help me? Thanks in advance. UML class diagrams for Xcode (swift programming) I recently found a free tool, that gets you a decent start on this. Take a look at this tutorial https://martinmitrevski.com/2016/10/12