Chapter 7. Writing rules in Jess
In this chapter you’ll...
- Learn to write rules
- Learn the difference between forward and backward chaining
- Learn how to partition your rules with modules
- Learn to probe working memory with queries
Now that you’ve learned how to populate the working memory, you can develop a knowledge base to go with it. This is the whole reason you’re here: The knowledge base is the collection of rules that make up a rule-based system. Rules can take actions based on the contents of working memory.
There are two main classes of rules in Jess: forward-chaining and backward-chaining rules. Forward-chaining rules are somewhat like if ... then statements in a procedural language, and they’re the most common and important kind of ...
Get Jess in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.