Categories
  Encyclosphere.org ENCYCLOREADER
  supported by EncyclosphereKSF

State diagram

From Citizendium - Reading time: 1 min

This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.

A state diagram is an fundamental concept in computer science. States are nodes that have arrows that leave them for other notes. There is typically a unique starting state. Transitions are caused in general by some event. Often events are represented by particular messages. In the example, the messages a,b and c causes transitions between states in our set of states: {Start, State_1, State_2, Stop}. Our message alphabet is the set: {a,b,c}.

In Standard Unified Modeling Language, the start state is a solid circle. The end state is a solid circle with a circle around it. States are rounded rectangles.

              /--------\         /--------\
    ● -----> | State_1 | -----> | State_2 | -----> ◉
        a     \--------/   b     \--------/    c 

Also see[edit]

Finite state machine
Automaton

Licensed under CC BY-SA 3.0 | Source: https://citizendium.org/wiki/State_diagram
9 views | Status: cached on November 07 2024 04:04:30
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF