Note that there are some explanatory texts on larger screens.

plurals
  1. POUML State Machine: Class diagram of a state with Transitions, Triggers and Events
    text
    copied!<p>TL;DR: How should I represent a UML Transition (see next line) in a UML Object Diagram?</p> <blockquote> <p>event(event_parameters) [guard_condition] / doStuff()</p> </blockquote> <p>In my BSc thesis project, I am working with UML StateMachines (behavioural, no protocol SMs). Besides the State Machine Diagram representation, I require Object Diagrams.</p> <p>So far, however, I have not managed to accurately represent transitions. I'd like to be able to show transitions that have a trigger (event), a guard (constraint) and/or behaviour.</p> <p>I have searched for related questions (<a href="https://stackoverflow.com/questions/51464/how-do-you-show-events-in-uml-class-diagrams">this one</a> comes close, but doesn't provide the exact information I'm looking for), as well as read the relevant parts of the UML Superstructure, but still can't quite figure it out.</p> <p>So far, I've created an Object Diagram based on the state S1 (and all transitions) shown in the State Machine Diagram below. I should note that I have only added events, since guard and behaviour are giving me similar problems (and would clutter the diagram).</p> <p>State Machine Diagram containing state S1</p> <p><img src="https://i.stack.imgur.com/qvL6d.png" alt="State Machine Diagram containing state S1"></p> <p>(incorrect) Object Diagram for S1, including all transitions (I'm assuming that at least the SignalEvent instances are (somewhat) incorrect.)</p> <p><img src="https://i.stack.imgur.com/fsks7.png" alt="(incorrect) Object Diagram for S1, including all transitions (I&#39;m assuming that at least the SignalEvent instances are (somewhat) incorrect.)"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload