Create UML Diagrams (Sequence Diagrams) from Text

Create UML Diagram (Sequence Diagram) from text using Trace2UML. This is a free open source tool to quickly create sequence diagrams from text files.

Trace2UML is a free program to convert “trace files” in text format to UML diagrams. It has the following functionality.

  • The software can read and convert special trace files into UML sequence diagrams.
  • It actually draws graphical UML diagrams.
  • It is easy to quickly create the trace files by hand using a few notations.
  • The software also makes it easy to modify the sequence diagrams.
  • You can also use the trace file as a debug trace
  • the freeware also makes it easy to compare the planned sequences and the recorded ones by using a text diff tool

How to create a trace file to generate UML Sequence Diagram with Trace2UML?

The following are a few notations to be used for generating the trace file from which UML can be generated.

  • ; – lines starting with the notation ‘;’ are comments. They are not drawn.
  • # – lines starting with the notation ‘#’ are visible comments. They are drawn with a horizontal line.
  • ! – This notation is used to notify the existence of an object (the creation is not in the scope of the trace). This is automatically inserted when you use an object name not mentioned before.
  • (!) – This notation is used to notify an object creation.
  • (X) – This notation is used to notify an object deletion.
  • >– – This notation is used to notify an asynchronous message send.
  • –> – This notation is used to notify an asynchronous message receive.
  • >-> – This notation is a shortcut when typing traces by hand. Creates both an asynchronous message send and a corresponding message receive.
  • ==> – This notation is used to notify a synchronous function call.
  • <== – This notation is used to notify a synchronous function return.
  • >>> – This notation is used to notify a state change.
  • […] – Everything set into square brackets is treated as user data. It stays in the trace line without having any effect on the graphics. This notation can be used for timestamps or remarks.

Free download Trace2UML from here and quickly create UML Sequence Diagrams.

You can also try Dia, a more complete tool to create flow chart and other network diagrams.

Leave a Reply

Your email address will not be published. Required fields are marked *

*