Re: Designing my finite state machine
From: Remi Bastide (FirstName.LastName_at_irit.fr)
Date: 03/14/05
- Next message: Remi Bastide: "Re: Designing my finite state machine"
- Previous message: alex99_at_medcentral.com.au: "Re: OO vs. RDB challenge"
- In reply to: Robert C. Martin: "Re: Designing my finite state machine"
- Next in thread: Matthias Hofmann: "Re: Designing my finite state machine"
- Reply: Matthias Hofmann: "Re: Designing my finite state machine"
- Reply: Robert C. Martin: "Re: Designing my finite state machine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 14 Mar 2005 12:58:27 +0100
Robert C. Martin <unclebob@objectmentor.com> wrote:
>On Thu, 10 Mar 2005 21:37:14 +0100, "Matthias Hofmann"
><hofmann@anvil-soft.com> wrote:
>
>Matthias,
>
>It is generally a good idea to separate event identification from the
>finite state machine itself. The firing of a transition is a boolean
>event. That event can be given a name (e.g. start, done, complete).
>
>What you have described are a set of flags and conditions that have to
>be boiled down into single events. I strongly suggest you do this
>boiling outside of the FSM proper, so that the FSM sees only the
>boolean events.
>
>As an aid, I suggest you download SMC from:
>http://www.objectmentor.com/resources/downloads/index
>
I'm surprised that you suggest to transform these "flags and
conditions" into events. To me, it appears that they would better be
modelled as (sub-)states. A boolean flag to me is just one part of the
state space, that should be modelled as a state as much as it remains
convenient.
- Next message: Remi Bastide: "Re: Designing my finite state machine"
- Previous message: alex99_at_medcentral.com.au: "Re: OO vs. RDB challenge"
- In reply to: Robert C. Martin: "Re: Designing my finite state machine"
- Next in thread: Matthias Hofmann: "Re: Designing my finite state machine"
- Reply: Matthias Hofmann: "Re: Designing my finite state machine"
- Reply: Robert C. Martin: "Re: Designing my finite state machine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|