Free e-Books

open all | close all

Quote of the Day

“Appear weak when you are strong, and strong when you are weak”


~ Sun Tzu

State Diagram – An Example

Problem description

Draw a state diagram to show the state transitions for a flight reservation.

On opening the flight, the initial state leads to the NoReservation state. When this state is entered, the reset operation is executed. If a reservation is made (i.e., reserve operation is executed), the object changes to the PartiallyReserved state. To book [...]

Introduction to State Diagram

The behavior of an entity is not only a direct consequence of its inputs, but it also depends on its preceding state.  The past history of an entity can best be modeled by a finite state diagram traditionally named automata.  State diagrams (or sometimes referred to as statechart diagrams or state machine) show the different [...]