O'Reilly logo

Jess in Action: Rule-Based Systems in Java by Ernest Friedman-Hill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required