Article View: comp.lang.c.moderated
Article #2442State engine
From: terres
Date: Sun, 31 Mar 1996 16:43
Date: Sun, 31 Mar 1996 16:43
24 lines
995 bytes
995 bytes
Hello!
I think that when you have complex problem like many conditions, paths
and cases, a traditional program could be to big and inneficient on
execution.
I have seen a system that uses a state engine that triggers some pieces
of code when an encounters take effect between: states & stimuli.
Like this:
Stimuli
State | 1 2 3
1 |
2 |
3 |
When some conditions are acomplished some specific pieces of code are
executed and that pieces send the control to another crosspoint.
I want to know how to implement this idea in C.
Thanks
Austin
Technical Details
Message-ID:
<4jmcoa$lri@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: terres <terres@servidor.dgsca.unam.mx> Newsgroups: comp.lang.c.moderated Subject: State engine Date: 31 Mar 1996 10:43:54 -0600 Organization: Unisys de MΓ©xico Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jmcoa$lri@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Mailer: Mozilla 2.0 (Win16; I)