State_diagram State_diagram

State diagram - Definition and Overview

Related Words: Art, Blueprint, Cartoon, Catalog, Chalk, Character, Characterization, Charcoal, Chart, Chiaroscuro, Choreography, Color, Copy, Crayon

State diagrams are used to graphically represent finite state machines. State transition tables are another possible representation.

There are many forms of state diagrams who differ slightly and have a different semantics. The following are examples:

Contents

Directed Graph

A classic form of a state diagram for a finite state machine is a directed graph where

In practice, vertices are normally represented by circles and, if needed, double circles are used for accept states.

Examples

DFA, NFA, GNFA, or Moore Machine

S1 and S2 are states and S1 is an accept state. Each edge is labeled with the input.

Mealy Machine

S0, S1, and S2 are states. Each edge is labeled with "j / k" where j is the input and k is the output.

Harel Statechart

Harel statecharts (developed in 1987 by David Harel) are gaining some more widespread usage since a variant has become part of UML. The diagram type allows to model superstates, concurrent state diagrams and e.g. to model activities as part of a state.

Classic state diagrams are so called "or" diagrams, because the machine can only be in one state or the other. With harel statecharts it is possible to model "and" machines, where a machine is in two or more states at the same time. This is due to the possibility of having superstates.

Resources

David Harel's home page (http://www.wisdom.weizmann.ac.il/~dharel/)

D. Harel. Statecharts: A visual formalism for complex systems. Science of Computer Programming, 8(3):231--274, June 1987.

Ward and Mellor Statecharts

Example Usage of diagram

abhi_24_88: Antenna Radiation diagram Plotter 1.0.3 (GPL): Generate polar plots with the help of this tool. http://bit.ly/5wiHFh
softpediacom: Antenna Radiation diagram Plotter 1.0.3 (GPL) http://bit.ly/5cRtPg
ifoam: RT @ardenpackeer: Need Visio stencils for your next network diagram? http://bit.ly/54mvfi - Just about every vendor you could hope for. ...
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.