Re: rule engine in C?
- From: Thad Smith <ThadSmith@xxxxxxx>
- Date: Sun, 29 Jan 2006 02:21:12 -0700
sean wrote:
I'm thinking about looking at some type of rule engine for a project I'm working on. It's part of an embedded server, and it needs to respond to various types of external inputs and assert various outputs as specified by various sets of rules (e.g. "if temperature > 75F and door signal is not open then turn on this X10 device for 10 seconds). The configuration of rules can potentially be quite complex. We already have a web GUI which allows the user to configure the various rules and convert this into an XML document. There is nothing yet on the embedded side to do anything processing of the rule set.
Can anyone recommend any C based rule engines which may be adapted to do this type of rule processing, or if not then maybe offer some suggestions on how best to implement this?
That should be fairly straight-forward to implement from scratch, unless you have some difficult constraints to handle, such as speed, special power outage recovery, etc. If speed is not strained you can probably loop through all your rules in sequence. If speed is tight, you would probably want to go to some sort of event-driven architecture, whereby you parse the rules to set up actions for certain input events.
-- Thad .
- References:
- rule engine in C?
- From: sean
- rule engine in C?
- Prev by Date: Re: What is the easiest, or best, program for at89c51rd ?
- Next by Date: Re: CAN J1939 Help
- Previous by thread: rule engine in C?
- Next by thread: Ann: Intel iPDS dev system resources page updated
- Index(es):
Relevant Pages
|