[prev in list] [next in list] [prev in thread] [next in thread] 

List:       graphviz-interest
Subject:    Re: [graphviz-interest] HSMs
From:       Rutger ter Borg <rutger () terborg ! net>
Date:       2010-08-23 8:31:39
Message-ID: i4tblc$oqo$1 () dough ! gmane ! org
[Download RAW message or body]

Peter Mueller wrote:

> I use dot also as drawing backend for HSMs and solved the problem the
> following way: Transitions from a parent to a child are displayed as
> transitions from default state to parent state.
> 

I ended up with a python script that translates scxml to multiple dot files. 
The trick I applied is to have states of the same branch in the hierarchy 
per dot file, and include all substates/submachines of any state through a 
html-label construct with an <img/> element that includes the dot-image of 
its child-fsm (or more images in case of parallel regions).

The results are excellent / similar to hand-drawn stuff.

Cheers,

Rutger



_______________________________________________
graphviz-interest@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic