Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does statemachine and statechart mean the same?

I have heard people using these terms.

I wonder if they refer to the same thing or is there a difference between these two?

like image 714
ajsie Avatar asked Nov 19 '11 07:11

ajsie


1 Answers

Wikipedia actually covers this pretty well. http://en.wikipedia.org/wiki/State_diagram

State machines have been around for a long time (decades at least). They consist of states (usually circles) and arrows between the states where certain actions can trigger an transition along an arrow. Moore and Mealy machines are the two main variants, which indicate whether the output is derived from the transitions or the states themselves.

Statecharts were invented by David Harel, and are sometimes called Harel Statecharts. He defined a pretty broad extension to typical state machines, with the goal of making state machines more useful for actual work with complicated systems.

A variant of Statecharts are build into Matlab now, as stateflow, which is an extension of simulink. Statesharts are also the basis of the UML "State Machine Diagrams".

like image 197
Pursuit Avatar answered Sep 19 '22 06:09

Pursuit