State Diagram

Why Trust Techopedia

What Does State Diagram Mean?

A state diagram is a diagram used in computer science to describe the behavior of a system considering all the possible states of an object when an event occurs. This behavior is represented and analyzed in a series of events that occur in one or more possible states. Each diagram represents objects and tracks the various states of these objects throughout the system.

Advertisements

There exist different types of state diagrams that have different semantics and are slightly different. State diagrams graphically represent finite state machines. They are only used to understand object behavior throughout the whole system.

Techopedia Explains State Diagram

The elements that constitute a state diagram are rounded boxes representing the states and arrows showing transitions to the next state. The activity section depicts the activities the object performs while it is in that state. Every state diagram starts with an initial state, which is the state where the object is created. Right after the initial state, objects change their states, and the next state is determined by conditions based on activities. In some cases, state diagrams represent a super state, which is a condition created when many transitions lead to a particular state. The super state depicts that all states inside this diagram transition to a redundant state, making the diagram more complex.

A transition in a state diagram is a progression from one state to another and is triggered by an event that is internal or external to the entity modeled. An action is an operation that is invoked by an entity that is modeled. A very traditional form of state diagram for a finite machine is a directed graph.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.