17 | | ON START { ... } // As the FSM starts up ... execute the lambda |
18 | | ON STOP { ... } // As the FSM is shut down |
19 | | ON STATE CHANGE { ... } // Perfomed whenever the state changes |
20 | | ON RECEPTION { ... } // Done on the reception of any signal |
21 | | ON UNRECOGNISED { ... } // Done when a recieved signal is NOT acted upon |
22 | | ON ERROR { ... } // Done when the ERROR exception is called |
23 | | ON signalIdent { ... } // Done when a specific signal is received regardless of state |
| 17 | ON START { ... } // As the FSM starts up ... execute the lambda |
| 18 | ON STOP { ... } // As the FSM is shut down |
| 19 | ON STATE CHANGE { ... } // Perfomed whenever the state changes |
| 20 | ON RECEPTION { ... } // Done on the reception of any signal |
| 21 | ON UNRECOGNISED { ... } // Done when a recieved signal is NOT acted upon |
| 22 | ON ERROR { ... } // Done when the ERROR exception is called |
| 23 | ON signalIdent { ... } // Done when a specific signal is received regardless of state |
25 | | INITIAL STATE firstState |
26 | | ON ENTRY { ... } |
27 | | ON EXIT { ... } |
28 | | ON RECEPTION { ... } |
29 | | ON UNRECOGNISED { ... } |
30 | | ON ERROR { ... } |
31 | | ON signalIdent { ... } |
| 25 | INITIAL STATE firstState // the initial state is prefixed with INITIAL |
| 26 | // else the first defined state if none specified |
| 27 | ON ENTRY { ... } // Done when the state is entered |
| 28 | ON EXIT { ... } // Done when the state is exited |
| 29 | ON RECEPTION { ... } // Done in this state as any signal is received |
| 30 | ON UNRECOGNISED { ... } // Done when in a specific state when a received signal is NOT acted upon |
| 31 | ON ERROR { ... } // Done when the ERROR exception is called in this state |
| 32 | ON signalIdent { ... } // Done when a specific signal is received regardless of stste |
| 33 | |
| 34 | STATE subsequentState |
| 35 | ... // State augmentations as above |