
🚨 Public Safety & Emergency · State Machine
The states of an emergency incident in a dispatch system, from first call to closure, including duplicate calls about the same event.
Drawing diagram…
State machine for an emergency incident: Received when the call is answered, Classified with type and priority, Dispatched to units, EnRoute, OnScene, Transporting for medical cases, Cleared when units leave, Closed after the report. Calls about an existing incident become Merged. Prank calls are closed as Invalid.
stateDiagram-v2 [*] --> Received: Call answered Received --> Classified: Type and priority set Received --> Merged: Same incident already open Received --> Invalid: Prank or no emergency Classified --> Dispatched: Units assigned Dispatched --> EnRoute EnRoute --> OnScene OnScene --> Transporting: Patient to hospital OnScene --> Cleared: No transport needed Transporting --> Cleared Cleared --> Closed: Unit report filed Closed --> [*] Merged --> [*] Invalid --> [*]
An integrated emergency response system like India's 112: calls, SMS and panic-app alerts reach one centre, which dispatches the nearest police, fire or ambulance unit.
What happens in the minutes after someone dials 112: call answered, location fixed, incident created, nearest unit dispatched and the caller updated.
How warnings for cyclones, floods and earthquakes reach people: sensor and forecast data, a decision by the authority, and cell broadcast, SMS and sirens to the affected area.
How an online police complaint is handled: registration, assignment to the right police station, investigation and updates to the complainant.
How fire stations, the control room and fire engines stay connected, with radio as the main link and mobile data as a backup.
Where a city surveillance system runs: cameras at junctions, local recorders, a central video management system and analytics that raise alerts in the command centre.