UML for multi-stream data stream

I want to draw a diagram where you can see the data stream in a java program, and if there is one or more threads that process the data.

Sequential charts do not show multithreading and are very confused when you have more than 5 different objects.

Class diagrams are good for displaying relationships, but there is no data flow.

I would like to color the boxes (e.g. class / package diagram) and put them together. It is possible for the box to double and ...be between them to show that there can be more than one thread.

What diagram does UML have for this type of data flow diagram?

Which editor is suitable for this chart? If possible, free or open source.

+3
source share
4 answers

I would look at a UML activity diagram to display multiple threads and execute them in parallel. In connection diagrams, you also sometimes see thread letters (e.g. A, B, C) to try to indicate parallel threads, but I almost always find this confusing. There are fragments in UML 2 that can show concurrency in sequence diagrams, but I always find it cumbersome, and diagrams are hard to refactor (which means they are quickly out of date).

If the threads perform the same tasks but work in parallel, you can simply add a note to the diagram to explain this. This way you can focus on modeling a single thread accurately and cleanly.

, IDE UML, , EMF, Eclipse.

+5

.

enter image description here

enter image description here

+4

To show multithreading, you can use different colors for display.

For ex red, to show one thread and blue to display another topic

0
source

All Articles