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

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.