Hello! I’m getting deeper into some state/mode diagraming, and I’m looking for some advice on how to manage the diagram and model to keep it clean and readable.
-
Is there any issue with deleting the “regions” that are part of states/modes? I know they can be used for substates or parallel state diagrams. However, if I have an atomic state/mode (no other states/modes in it), will I run into any problems if I delete the region? The benefits of removing it would be to improve readability and reduce the number of graphical objects I need to manage.
-
On transitions, is there anyway to list conditions or insert line breaks to make the conditions more readable?
-
Is there a best practice method for listing conditions with logical operators (“and,” “or,” “not,” etc.)? Currently I’m just typing out the statement. I see that I can list multiple events to trigger a transition. To me this implies an "or " relationship between the events for triggering the transition - is this correct?
-
On a transition, is there a functional difference between listing a conditions as guard conditions versus a trigger conditions, or is it more personal preference? Here is how I am thinking about it: if I want a transition to happen when speed > 100 kph and a button pressed, I could enter a trigger event for “button pressed” and a guard of “speed < 100 kph.” Alternatively, I could just list a trigger event for “speed > 100 kph AND button pressed.” To me, this seems subjective, but I wonder if I have a misunderstanding. Do I?
-
When I list activities/functions relevant to a state, is there a difference in the model or tool if I put a function in the Entry, Do, or Exit field compared to the Operational Activities/Functions field? I’ve seen examples where functions are entered in both locations (for example, the 2nd field and the 4th field), and I’ve seen examples where functions are entered in just the 4th field.
Thank you in advance for any thoughts or assistance!