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 15. Extending the Jess language

In this chapter you’ll...

  • Be introduced to the Userfunction interface
  • Learn to extend the Jess language
  • Write Jess functions to interface with HVAC hardware

The HVAC Controller system you’re writing needs to be able to switch the various heat pumps and vents on and off in response to changing temperatures. Although it would be possible to do this just by using the (modify) function on the shadow facts representing the devices, that approach won’t always be convenient. Furthermore, the rules need access to other functions in the Hardware interface that aren’t used by the JavaBeans. It would be best to have a simple and consistent interface to all these capabilities.

To accomplish this, you’ll add some ...

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