Can Enterprise Architect reverse engineer state machine diagram from source code? - state-machine

I'm new to Enterprise Architect. I would like to generate state machine diagrams from C source code, but I can't find any tutorial on this. Does EA have such functionality? If not, what would be the best work around?

No, it doesn't.
And getting such a thing to work looks like a nice punishment for Sisyphus. Even more for that Oh So OO C ;-)
The "work around" is called brain...

Related

Add-on or extension for Dia - Diagram editor

No doubt Dia is a great tool in Linux. All linux users might have come across it. It is my best friend all the time when I want to design UML ERD or Database etc.
I wonder if it has any add on or extension that can help me in GUI/Web application prototyping. Any idea??
What exactly would you like this Plugin to do? Maybe it can be implemented with some lines of Python code.

How to draw application functional diagrams?

I'm trying to find some good reads to clarify this but I'm unable to find it (or maybe I just don't know how to search this properly).
What I'm trying to find is, considering that you have an application that:
interacts with a db;
interacts with Mainframe;
interacts with external providers;
etc...
What is the best approach to draw a diagram that represents this in a functional view rather then in a more techinical view? What kind of books, articles, websites can help me to get a clearer understanding of which approach should I follow?
Thanks in advance.
Well,
First thing that you should ask yourself:
Why I am drawing or want to draw a diagram about this?
Maybe you answer is :
To understand important/significiant communication between those elements.
Then we can say:
Oh maybe sequence diagram may help...
Buy may be you answer is:
Oh I am worry about topology of system components. How those things
will be deployed?
Then we can say that:
Oh, may be deployment diagram will help you...Draw one.
So depends on "context"...
UML diagrams will not solve your problems. They help you to understand tricky and hard part of your system and think about alternative solutions by visual modeling.
Modeling is not "self masturbating" activity. It is like "group sex". You will get most benefit when you do with others...
So the main problem is not to draw which diagram... The main problem is:
What kind of problem you have? With whom you wanto to find solution? What kind of benefit may you get from drawing a diagram?
For UML i definelty suggest Larman book: Applying UML and Patterns :Check at amazon
And lastly, if UML does not fit your purpose, be creative and pragmatic...Use textual desription or even create your "own" visual modeling :-) or do anthing which help you...

Program to create a UML diagram for C++

Was wondering what the easiest way to create a UML diagram for a c++ program would be? I saw some threads about a java plugin that would create the UML diagram for you, was wondering if there was one like it for C++ (using cygwin on windows).
If not any good freeware programs? I have visio I was just seeing if there were other alternatives (even used mspaint before :P)
Thanks :)
Pen and paper. Actually a pencil with an eraser might be better than a pen. No, seriously, it'll be much easier than using a program.
For anyone who is looking for something similar I recommend StarUML.
Simply install it, go to the tools tab, c++, reverse engineer and follow the options.
Worked better than expected :)
If its a project then Enterprise Architect can help. And Dox. UML Studio
But, you can just do it manually.

Advice software to create flow-charts of programm

Can you advice me software to create flow-charts for program logic.
My problem is that I've created complicated algorithm with lots of if...else and I need to create flow-chart for all of that to avoid mistakes.
The example of what I want to have is this http://www.fceditor.ru/files/pic1.gif
But I don't want it to create flow-chart from source code. I want to create it myself
or
(source: analog.com)
The classic answer to this is Microsoft Visio, but there also a number of free / open source options. The best of these is probably Dia.
You might tske a look at GraphViz if you are keen to draw the flowcharts yourself.
If you are creating your flowchart manually/prospectively, before you code, as opposed to automatically/retrospectively, after you code, it is hard to beat a plain old-fashioned mechanical pencil, Faber-Castell (R) Magic Rub (R) eraser, and a big sheet of paper. I've had to use a drafting table and H-size paper a couple of times in my life. An IBM flowchart template (if you can find one HEH HEH HEH) helps.
One of the things this exercise teaches you is not to paint yourself into that particular corner ever again, as in don't make your logic that complicated.
Microsoft Visio or Visual Paradigm Community Edition.

What is the best way to use UML 2.0 in Visio 2003?

Visio 2003 uses UML 1.4, which means that some stereotypes from UML 2.0 simply don't exist, and they need to be modeled by freehand drawing (I may as well be using Photoshop). Does anyone know of an update from Microsoft or an addon to include UML 2.0 (complete - not just class diagrams) in Visio 2003?
I found this package: http://www.sdl.sandrila.co.uk/ but judging by their "example" screenshots, I'm going to stay away. If they don't know how to use UML, I'd be surprised if they could implement it correctly ;)
This set of Visio stencils and templates for UML 2.0 is excellent:
http://softwarestencils.com/uml/index.html
In case it wasn't clear, Microsoft will never update Visio support of UML. For some time, they have not considered Visio to be a Software Engineering tool.
I don't blame them. It didn't even do a good job with the parts of UML it "supported".
I'm using the UML 2.0 symbols from Pavel Hruby. Maybe you'll find them useful as well.
The nice thing about Visio is that it is just a drawing program and not a modeling environment. So just make up your own lines. Visio can draw just about any line time you can think of. But the real answer is the one already checked. Now that Microsoft "supports" UML maybe they will provide better tooling.
Those screenshots are only example diagrams, Sandrila SDL doesn't enforce that level of rigour to the diagrams.
I found this package: http://www.sdl.sandrila.co.uk/ but judging by their "example" screenshots, I'm going to stay away. If they don't know how to use UML, I'd be surprised if they could implement it correctly ;)
That seems a bit harsh - of the handful of screen-shots which are UML2 (as opposed to being examples of the other notations the tool supports, such as SDL, MCL and TTCN), which do you think are incorrect? It's quite ugly as diagrams go, and uses aliased fonts and lines, but that's a Visio feature rather than anything to do with the template.
In terms of what you can do with the UML, you are much better off using a real UML2 tool than Visio. Enterprise Architect is a cheap one which does have a real UML model behind it. (It would be nice to be able to say that the more expensive ones have fewer UI bugs and gotchas, but that isn't really the case, and most lag far behind the simpler graphical tools like OmniGraffle or Visio in polish and usability)

Resources