Is there a "description" language of UML?

Asked

Viewed 132 times

3

This may be a really silly question, but I did my research and I didn’t find anything in the sense that I was thinking. I’m studying UML in college, and although it’s just dragging the components to form the diagrams, this procedure can be kind of boring (mainly having to organize everything).

There are hardware description languages (such as VHDL and Verilog), in which you describe the circuit to be generated, similar to a programming language. So I was thinking that maybe it would be easier for analysts to create UML diagrams in a similar way...

There’s already something like this for UML?

  • 1

    It would still kind of be the same job you’d have to drag, you’d have to create the code.... What can be most useful in this case, is to know if the tool you use has a button to organize UML automatically

  • https://stackoverflow.com/questions/7616126/auto-arrange-uml-diagrams-in-visual-studio-2010

  • 1

    Leila years ago when I was in college I used an online tool that you sent a metadata xml and it would assemble the class diagram for you. I don’t remember well but it wasn’t just the class diagram rode others too. It was pretty cool!

  • Take a look at this post looks like it’s exactly what you want: https://stackoverflow.com/questions/29302239/free-plugin-to-generate-a-class-diagram-from-a-xml-file

3 answers

5


yUML

I’ve used this tool that serves for some types of diagrams and has the advantage that you can share and have plugins for various platforms.

An example:

Code for Class Diagram:

[Customer|-forname:string;surname:string|doShiz()]<>-orders*>[Order]
[Order]++-0..*>[LineItem]
[Order]-[note:Aggregate root{bg:wheat}]

Upshot:

inserir a descrição da imagem aqui


Code for Use Case:

[Customer]-(Sign In)
[Customer]-(Buy Products)
(Buy Products)>(Browse Products)
(Buy Products)>(Checkout)

Upshot:

inserir a descrição da imagem aqui


Another one I discovered when I was using this was Umlgraph, but I never used.

1

Visual Studio Ultimate, Enterprise Architect, Staruml, Argouml, Umodel even Msvisio has functionality to convert code into UML.

Generally there are limitations, both of these and other options, regarding the supported programming language. In practical terms, they work very well if you need a class and sequence diagram, since this notation is very close to the object-oriented source code in conceptual terms.

However, it should be noted that UML has several diagrams that are very useful and are not designed for bottom-top modaling. Its power lies in the capacity of abstraction it offers and therefore in top-bottom modeling.

Use at will, but keep in mind that a good practice of programming is to start with the conceptual model/architecture of the software and not the source code.

:)

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.