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 18. Embedding Jess in Java applications

In this chapter you’ll...

  • Learn about the jess.Rete class
  • Create and manipulate facts from Java
  • Work with Jess exceptions
  • Learn to reroute Jess’s I/O channels

Every application you’ve written so far has been based on the command-line interface tool jess.Main. The Tax Forms Advisor and PC Repair Assistant each consisted entirely of a single Jess script, whereas the HVAC Controller also included some Java classes. Each of these three programs could be launched by starting jess.Main and telling it the filename of a script from the command line.

It might look as though jess.Main is Jess’s central class. In fact, jess.Main is just a command-line wrapper around the Jess library. With the library, ...

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