uml-modeling

UML: Modeling php includes? How to?

I have a php application where some Web Pages are used for different purposes. Depending on the value of one (or more) parameters being passed in the URL the page includes one or other php file with different functionality. Let's say I have clients.php with the following code fragment: <?php $do=$_GET["do"]; switch($do){ case "...

What's the UML syntax for multiplicity? ( inside the class box )

I know it is possible to specify the multiplicity within the same class box, without having to draw the link to another class. My question is, Where should the multiplicity go, after the name or after the type? Is it: visibility name multiplicity : type as + clients [0..n] : Client or visibility name : type multiplicity as + ...

UML for C programming language

UML is most commonly used for modelling system by using C++. In my projects C is the implementation language. I am looking for resources on UML strategies which are applicable for C. I want to use UML during design and represent the different aspects of the system. ...

What is the best Open Source, linux-compatible UML modeling tool?

I've been looking around at the different options, and it seems that even some of the most popular open source tools are Windows-only (StarUML, for example). What is the best open source alternative to programs like Visio and Rational Rose for linux? ...

UML diagram for function calls

Which UML diagram is best suited for depicting function calls? Also are there any diagrams where we can also mention the parameters that we pass to the called functions? ...

Mac OSX/Cross Platform UML Sketching Tools?

A similar question had been asked a year or two ago, but I wanted to see if anyone has any new answers. I'm looking for a lightweight UML sketching tool that runs on Mac OSX. I really only care for diagramming and do not need code generation, etc. I prefer free, but am open to purchasing something if it's good and reasonable. I absolute...

Looking for open-source, free alternatives to Rational Rose (UML Modeler)?

I am looking for a relatively bug-free, small learning curve data modeler that allows creation of UML diagrams. Prof recommended Rational Rose...but I don't want to pay for it. Could run on Linux or Windows... Any suggestions? ...

User Interface functionality modelling languages?

I am looking for a UI functionality modelling language (UML-alike "thing", but for user interfaces) that is already accepted and maybe has its design patterns and handles the problem better than state or activity diagram. (If there is no such thing I'm planning to develop that BTW :)) This question came to mind as a result of a discove...

How to get a IStereotype reference in a T4 Template?

Is there a way to get a reference to Microsoft.VisualStudio.Uml.Profiles.IStereotype interface in a t4 template? I mean IStereotype that stores the definition of the UML stereotype, and not IStereotypeInstance that holds the actual value. I tried something like this, but the ApplicableStereotypes enumereation is empty. void WriteClassAt...

Generating UML Class diagrams in VS 2010

I read that VS 2010 supports modelling projects in UML. Is it possible to generate UML diagrams from already existing code. If so how? ...

USE case to Class Diagram - How do I?

Hi, I would like your guidance on how to create classes and their relationships (generalization, association, aggregation and composition) accurately from my USE case diagram (please see below). I am trying to create this class diagram so I can use it to create a simple online PHP application that allows the user to register an accoun...

Dependency injection and aggregation/association

In both association and aggregation, one class maintains a reference to another class. Then, does constructor injection imply composition? Going by the same logic, is it safe to say that setter injection leads to an association, and not an aggregation? ...

UML Class Relationships

Hi, I would like to confirm whether I am on the right track when identifying common UML class relationships. For example, is the relationship between: 1 a stackoverflow member and his/her stackoverflow user account categorized as a composition relationship or an aggregation relationship? At first I thought it was an association because ...

UML Class Diagram for User Login

Hi, The diagram below is my very first attempt at creating a UML class diagram describing a user login into a website. I'm sure its a poor design and full of flaws, but I'm hoping to learn from you guys how you would design a simple login like this. I'm particularly interested in your use of design patterns and which patterns you woul...

Howto UML: sub methods / calls / operations / procedures

I'm not sure how to model sub-methods in UML sequence diagram. When in the execution of one method another method is called (from the same class). I tried to give an example below: How would you guys model this in UML (in a sequence diagram)? .. car1.drive(); .. ... in Car class: .. drive(){ this.startEngine(); } startEngine(){ ...

How to model "target day" in UML Classdiagrams

Hi there, I want to describe the following situation in an UML Classdiagram: A day, on which a newspaper is send to a customer. This day could be sth. like "every friday" or "every first day of a month". My idea to represent this in a UML Classdiagram: -targetDay:Integer -targetDayGrid:Enumeration targetDay would be sth. like "1" (...

How do I get Enterprise Architect to use correct class relationships when importing java source code?

I've just imported some java source into 'Enterprise Architect', e.g: class Truck { BumperSticker bumperSticker; Vector<Wheel> wheels; } It's added the first member as an association, and it hasn't added the second as a relationship at all. How do I get it to instead, add them both as aggregations, the second with a multiplicity ...

Cross-referencing UML models in VS 2010

I am just starting to explore/use the UML modeling support in Visual Studio 2010 Umltimate. I have created two model projects within a single solution. Let's call them Model A and Model B. I have some data types (classes) defined in Model B. I want to use them as return types for operations in Model A. However, I cannot figure out h...

using the starUml, the align problem

I am using the StarUml to draw some component dialog,however I found that it is to difficult to make a straight line straight enough. As shown in this image: the example image In visio, when I want to draw a Horizontal straight line,I can use the "Shift" key in my keybordl,how to do it in StarUml? ...

Generate UML from Flex Projects

Are there any good tools to generate UML class diagrams using the source code from a Flex Builder project? I have been trying IntelliJ but for some reason it generates the inherited class structure from the SDK and not everything below my main app. ...