Skip to content

Instantly share code, notes, and snippets.

@andysolomon
Last active January 22, 2023 17:15
Show Gist options
  • Select an option

  • Save andysolomon/3bfbc9a21ab8cc73b915b6e509ec9142 to your computer and use it in GitHub Desktop.

Select an option

Save andysolomon/3bfbc9a21ab8cc73b915b6e509ec9142 to your computer and use it in GitHub Desktop.
title
Walking Dog Concurrently
stateDiagram
    [*] --> waiting : LEAVE_HOME
    waiting --> walk : START_WALKING
    state walk {
        [*] --> walking
        walking --> stopForSmells : STOP
        walking --> running : SPEED_UP
        stopForSmells --> walking : SPEED_UP
        stopForSmells --> running : SPEED_UP
        running --> walking : SLOW_DOWN
        running --> stopForSmells : STOP
        --
        [*] --> notWagging
        notWagging --> wagging : START_WAGGING
        wagging --> notWagging : STOP_WAGGING
    }
    walk --> walkComplete : GO_HOME
    walkComplete [*]
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment