Home | Projects | Notes > Embedded Systems Design using UML State Machines > Events (Triggers)
Events are incidents or a stimulus by which a state machine can be triggered. Incidents are abstracted as events.
In state machine events cause transitions (external or internal)
An event usually has 2 components
Signal
e.g., TIME_CHANGE
This event signifies by its signal attribute that the user has pressed a button that changes time.
One or more associated values parameters (optional)
e.g., dir Direction_t
x1enum
2{
3 UP,
4 DOWN
5} Direction_t
This signal has an associated parameter that encodes whether the user has pressed a button that increases time (UP) or decreases time (DOWN).
Incidents in the operation of a microwave oven:
Opening door (event)
Closing door (event)
Set timer (event)
Start (event)