![]() ![]() ![]() This is known as the halting problem and has been proven to be undecidable in computer science. This means that, given a method, you would have to analyze its algorithm and figure out if it loops forever or it returns. ![]() First, if you wanted to generate a sequence diagram through static analysis, one of the first questions you must answer is whether, given two objects and a message passed between them, a result is ever returned. There are tools that allow you to convert source code of Java, C++ and other languages into UML diagrams that show relationships between classes, like Enterprise Architect, Visual Paradigm and IBM Rational Software Architect.Ī sequence diagram, however, is a special kind of a UML diagram and it turns out that reverse engineering a sequence diagram is quite challenging. UML is considered a higher-level concept from source code that looks the same for all languages, and the process of converting source code to UML is called code reverse engineering. When it comes to C++, sequence diagrams are defined in the general sense by the UML specification, which is the same for all object oriented languages. As such, it does not make sense to talk about sequence diagrams in the context of a procedural language like C. It is meant to convey, at a glance, message passing between objects in an object oriented program in a sequential fashion, which is supposed to help understand time-considerate interaction between the objects. First of all, sequence diagram is an object oriented concept. ![]()
0 Comments
Leave a Reply. |