action perform action event ae action perform ae action divid region fig target manag instanc fig target model facad concurr region owner enclos fig defin statediagram lp statediagram granular type statement fig composit state fig composit state fig composit state list fig concurr region region fig list fig concurr region enclos fig clone object uml composit state fig composit state owner endif editor editor global cur editor graph model gm editor graph model layer diagram lai layer diagram editor layer manag activ layer rectangl fig node model element fig bound rectangl fig bound gm mutabl graph model defin statediagram lp statediagram granular type statement state diagram graph model mgm state diagram graph model gm state machin factori factori model state machin factori model facad concurr uml composit state object uml region factori build composit state uml composit state rectangl bound rectangl fig concurr region inset horz height fig concurr region inset vert fig width fig concurr region inset horz fig height height fig concurr region inset vert diagram set set fig composit state set fig concurr region region fig fig concurr region uml region bound set st region invis divid line box invis region fig set line color argo fig invis line color region fig set enclos fig fig composit state region fig set layer lai lai add region fig mgm add node uml region mgm node add uml region mgm node ad uml region previou element enclos concurr region let region region fig region fig size fig state vertex cur fig region fig cur fig set enclos fig region fig region fig add enclos fig cur fig cur fig redraw enclos fig object uml region factori build composit state uml composit state todo magic number rectangl bound rectangl fig concurr region inset horz fig height linewidth fig width fig concurr region inset horz diagram set set fig composit state set fig concurr region region fig fig concurr region uml region bound set divid line visibl need chang color make composit state region higher fig composit state set composit state height fig height region fig initi height region fig set enclos fig fig composit state fig composit state add enclos fig region fig region fig set layer lai lai add region fig endif editor select manag select defin statediagram lp statediagram granular type statement mgm add node uml region mgm node add uml region mgm node ad uml region todo verifi iiuc trigger compount state fig draw correctli reason wait make state concurr model state machin helper set concurr uml composit state endif except ex defin log lp log granular type statement log error except caught ex endif 