How to control layout of states within states

0 votes
asked Apr 10, 2014 in To be sorted by anonymous

I have the following state 

state Reports{
    state AlarmTrends
    state ActiveAlarms
    state AdHocReports
}
 
and wanting to 'stack' AlarmTrends,ActiveAlarms, and AdHocReports instead of the default layout (left to right). 

1 Answer

0 votes
answered Apr 11, 2014 by rmric (2,140 points)

If you add transitions between states, then you can control the layout.

For instance:

AlarmTrends --> ActiveAlarms
ActiveAlarms --> AdHocReports

Note that double-dash is for vertical placement.

Hope this help.

commented Apr 11, 2014 by plantuml (298,440 points)
And finally you can hide those links:

state Reports{
    state AlarmTrends
    state ActiveAlarms
    state AdHocReports
    AlarmTrends -[hidden]-> ActiveAlarms
    ActiveAlarms -[hidden]-> AdHocReports
}
commented Apr 11, 2014 by anonymous
What about layout between two states such as:

    state Alarms {
        state AdvancedAlarms
        state TrapFilters
    }
    state Presentation{
        state TileBuilder
        state SystemTypeSetup
        state PointTypeSetup
    }

Your suggestion was spot-on.. and Thanks.

I'm using the state diagram to depict a sitemap for documentation.. whereas state diagrams seemed to be the 'best fit' - is there another plantuml diagram that is more appropriate? (I'm noticing that my source is looking 'hackish')
...