Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2005-02-14 00:57:05


David Abrahams wrote:
> Okay, but what's the value of modeling an is-a relationship between
> states? In a FSM, states are distinct. One state is-not-a nother
> state.

Dog is-a Animal at modelling state. At runtime

  Dog dog;

is not-a

  Animal animal;

Likewise, Running state is-a Active state at modelling stage.

> AFAICT it seems to be a way of grouping states, or perhaps of
> emulating substates, so you can avoid writing the transitions
> that a group of states has in common (?)

Yep.

--
Alexander

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk