State diagram

A state diagram is a type of diagram used in computer science and related fields to describe the behavior of systems. State diagrams require that the system described is composed of a finite number of states; sometimes, this is indeed the case, while at other times this is a reasonable abstraction. Many forms of state diagrams exist, which differ slightly and have different semantics.

Overview

State diagrams are used to give an abstract description of the behavior of a system. This behavior is analyzed and represented as a series of events that can occur in one or more possible states. Hereby "each diagram usually represents objects of a single class and track the different states of its objects through the system".

State diagrams can be used to graphically represent finite state machines. This was introduced by C.E. Shannon and W. Weaver in their 1949 book "The Mathematical Theory of Communication". Another source is Taylor Booth in his 1967 book "Sequential Machines and Automata Theory". Another possible representation is the State transition table.

State diagram (UML)

The state diagram in the Unified Modeling Language is essentially a Harel statechart with standardized notation , which can describe many systems, from computer programs to business processes. In UML 2 the name has been changed to State Machine Diagram. The following are the basic notational elements that can be used to make up a diagram:

  • Filled circle, representing to the initial state
  • Hollow circle containing a smaller filled circle, indicating the final state (if any)
  • Rounded rectangle, denoting a state. Top of the rectangle contains a name of the state. Can contain a horizontal line in the middle, below which the activities that are done in that state are indicated
  • Arrow, denoting transition. The name of the event (if any) causing this transition labels the arrow body. A guard expression may be added before a "/" and enclosed in square-brackets ( eventName[guardExpression] ), denoting that this expression must be true for the transition to take place. If an action is performed during this transition, it is added to the label following a "/" ( eventName[guardExpression]/action ).
  • Podcasts:

    PLAYLIST TIME:

    Latest News for: state diagram

    Edit

    Cheers! Outdoor dining restaurants given conditional approval to serve alcohol

    The Villager 03 Apr 2025
    In other words, their permits had to be fully finalized, showing site diagrams and proof of insurance. However, the New York State Liquor ... DOT Commissioner Ydanis Rodriguez, applauded the state’s move.
    Edit

    AG won’t charge Onondaga County deputy who shot and killed two teens in stolen car

    The Post-Standard 22 Mar 2025
    — The state Attorney General’s Office is not ... This is a diagram in the AG's report on the shooting in DeWitt.State AG's Report ... A third shot went through a side window.State AG's Report.
    Edit

    Sunlight partially blamed for near-collision at Midway Airport, NTSB says

    Chicago Sun-Times 19 Mar 2025
    Runway 31L also came immediately after the Flexjet’s turn onto runway 4L, “and by the time the nosewheel had straightened out, they were likely halfway across” Runway 31L, leading the pilot to believe he hadn’t yet crossed it, the report states.
    Edit

    Teen sentenced to life for foiled UK school massacre plot

    The News International 19 Mar 2025
    "You aimed for 34 deaths, one more than the deadliest school shooting of recent times in the United States of America, at Virginia Tech in 2007," she added. Prosper had drawn diagrams of the classrooms ...
    Edit

    UK teen who planned school massacre jailed for life

    Gulf News 19 Mar 2025
    “You aimed for 34 deaths, one more than the deadliest school shooting of recent times in the United States of America, at Virginia Tech in 2007,” she added. Prosper had drawn diagrams of the classrooms ...
    Edit

    UK teen who killed family, planned school massacre jailed for 49 years

    Dawn 19 Mar 2025
    “You aimed for 34 deaths, one more than the deadliest school shooting of recent times in the United States of America, at Virginia Tech in 2007,” she added. Prosper had drawn diagrams of the classrooms ...
    • 1
    ×