1@startuml 2title "UCM device sequence graph" 3 4start 5split 6 :Enable device; 7 :EnableSequence; 8 :Use device; 9 :Disable device; 10 :DisableSequence; 11split again 12 :Switch device; 13 :Disable old device; 14 if (TransitionSequence) then (present) 15 :TransitionSequence; 16 :Enable new device; 17 else (not present) 18 :Disable old device; 19 :DisableSequence; 20 :Enable new device; 21 :EnableSequence; 22 endif 23end split 24stop 25 26@enduml 27