ChatDiagram
State Diagram · State

Traffic light (state diagram) — State Diagram

A three-state finite state machine for a traffic signal — Red, Green, Yellow — with timer-driven transitions and a poweroff exit to a final state. Introduces UML initial and final pseudo-states, transition labels, and the cyclic structure that makes state diagrams the right tool for reactive systems.

유형 상태 다이어그램표준 OMG UML 2.5.1 §14 + Harel (1987) statechart엔진 schematex-state업데이트됨 2026. 5. 26.
Traffic light (state diagram)
Drawing preview
요청 내용

“Draw a traffic light state diagram that starts at Red, changes from Red to Green to Yellow on a timer, returns to Red, and can end when power is turned off.”

그렇다면Add a flashing red maintenance state.Change the power-off transition to start from every light state.

모든 상태 다이어그램 템플릿 보기 →