Re:C++ State Machines
by signa11 on Tuesday April 02, 2019 @09:08PM
(#19559996)
one possibility is to use hierarchical-state-machines (HSM), which allow (encourage even ?) the decomposition of state-machine into common behavior for reuse across states.
HSM have been there for a while, being proposed in '84 (!) by David Harel under the name 'statecharts'
HSM have been there for a while, being proposed in '84 (!) by David Harel under the name 'statecharts'