Difference between guard and event in UML state diagram
问题 I thought I could differentiate between event and guard . But I came across an event being similar to guard: counter > 4 [pin is high] / switch on ^^^^^^^^^^^ event where I viewed the variable counter changes from some value smaller than 4 to that greater than 4 as event. Does that mean event can also be a condition like guard? 回答1: An event is the thing that triggers the transition. In your case counter > 4 is a change event, meaning " the counter value has changed and its value is now