Skip to content
| Marketplace
Sign in
Visual Studio>Tools>StateMachineEditor2019
StateMachineEditor2019

StateMachineEditor2019

Saul Scudder

|
677 installs
| (0) | Free
From an XML state machine skeleton code for an event driven state machine is generated, This package contains the generator and a tool to design the xml skeleton
Download

This is the first async-package version of the StateMachineEditorTool otherwise its mostly the same. Previous versions were for visual studio 2013, 2015, and 2017. The command to start the tool is now under the View menu in the Other Windows list.

The generated code pattern Wpf projects had an example name used instead of the name of the local instance of the state machine in one method. That has been corrected.

The State Machine Editor is a tool that converts an XML description of a 'state machine' to source code in c# or other languages. A tool to convert user input to the XML is included. An example xml script is loaded from a button under the help selection, it shows the format and can be used to test the different kinds of code generation. A state machine is a set of Transitions where a starting 'State' receives an 'Event', performs an 'Action' and arrives at a final 'State'. A set of these transitions can model complex processes. The State Machine Editor can translate xml state machine models into c#, c++ or vb code, some work is needed to integrate the code into c++ or vb project however complete projects are generated for c#.

Features:

  • UI tools to create xml models of State Machines from user selections.
  • States, Actions and Events are added by pressing an add button and naming them.
  • Transitions from one state to another are added by selecting an 'Initial State', an 'Event', an 'Action' to be performed and a 'Final State', then pressing Add Transition
  • An expander displays a list of all transitions in a state machine. Selecting in the list re-selects the individual parts of the transition chosen. To be viewed or deleted. _- A button in the tool's help expander generates an example state machine.
  • Unused states or dead ends can be traced using the Analyze tool on the menu.
  • Edit sessions are persisted by saving and loading the xml.
  • A button press converts the xml models into source code. Either:
  • A complete state machine in c#.
  • State machine code in c++ or vb (it will need edits to use.)
  • Complete c# Windows Console projects with the state machine source and test events
  • Complete c# WPF projects with the state machine source and test events
  • Complete c# WPF projects with a different class design in a State Machine Pattern.
  • Parts for a very simple MVC project._

StateMachineEditToolWindow.PNG

To learn how to use the State Machine editor press the 'help' when it is showing and then press ' load example', look over the example, then press 'generate a WPF project' open the generated project and examine, compile and debug it. Try generating other output types,

Thank you for using the State Machine Editor Tool 2019

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft