tea-pot/earl-grey — Issue #7: State model grammar tip
Author: mazanma3
Created: 2011-12-11 14:00:11+00:00
State: open

### Grammar based on Martin Fowler's Statemachine DSL:

http://martinfowler.com/bliki/SyntacticNoise.html

events
create D1CL
close D2OP
open L1ON
lock D1OP
unlock PNCL
end

state Init
create => Opened
end

state Opened
close => Closed
end

state Closed
open => Opened
lock => Locked
end

state Locked
unlock => Closed
end

### PlantUML State diagram grammar:

[*] -> Opened : create
Opened -> Closed : close
Closed -> Opened : open
Closed -> Locked : lock
Locked -> Closed : unlock

Which one is better?