[Q][DOCS] State machine implementation in Smalltalk / Squeak

Raymond Asselin raymondasselin at sympatico.ca
Thu Feb 20 02:09:51 UTC 2003


Le Mercredi, 19 févr 2003, à 02:11 America/Montreal, Hannes Hirzel a 
écrit :

> Hi
> as Eric Merritt was asking how to implement a state machine in Squeak
> here is my question:
>
> Does anybody have an example of a state machine implementation
> already in the Squeak image which could be taken as an example?
>
> Or a pointer to some Smalltalk code / tutorial how to do it in various
> ways?
>
> Regards
> Hannes Hirzel
>
>
You can use a state patterns, this is a small example in FrenchGlish :)

where each state is a class.

See the comment on Transaction class...sorry ...in french...but I think 
you can feel what is said....


-------------- next part --------------
A non-text attachment was scrubbed...
Name: AtelierFormation-StatePattern.st
Type: application/text
Size: 3584 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030219/38ca0f11/AtelierFormation-StatePattern.bin
-------------- next part --------------


May be that is not what you want ....!!!

Raymond


More information about the Squeak-dev mailing list