Dia2fsm is a software that converts DIA diagram files to Finite State Machine skeleton code. It reads the prescribed format to generate the code.
With the -o option, an additional output file suitable for use with the AT&T Graphviz application, "DOT" is generated. The created file contains a graphical representation of the call hierarchy in the FSM and related push-down automata. Users can take full advantage of the facility to describe transitions from state to state with dia2fsm, allowing for the generation of member functions and associated logical flow and control. These elements are implemented directly and explicitly into the logic described by the FSM in the output skeleton code. The developers intend to provide their users with additional features and code generation options using this model.
Dia2fsm is limited by the nature of the XML generated by DIA, and therefore, it is necessary to observe specific conventions when using DIA and dia2fsm. The conventions do not require a significant or unsurmountable philosophical paradigm shift.
The first version of the software is implemented in C++, on Windows 2000 Professional with the MinGW tool-set via Eclipse V 3.1.0. To handle platform-dependent operations like file I/O, process control, and XML handling, the software uses Trolltech's Qt toolkit. The reference version of the software only supports code generation in C and C++. Still, developers can expect a Java implementation to follow soon, highlighting the developer's commitment to delivering a comprehensive tool for its users.
Overall, dia2fsm's features and functionalities make it a vital tool in any developer's arsenal. Its ability to convert diagrams to finite state machines and automate functions will likely become an essential tool for developers, and future updates will increase its functionality and sophistication.
Version 2.0.0: N/A