Part 5. Reasoning about reality: the HVAC Controller

The applications you’ve written so far have been written entirely as Jess scripts. In much real software, however, the rule engine has to be integrated with existing Java code. In part 5, you’ll write some Java as well as Jess code, and in so doing, you’ll begin to learn about Jess’s Java APIs.

The HVAC Controller you’ll write is a soft real-time control system for the heating and cooling systems in an office building. We’ll look at how such a system can be interfaced to real hardware. You’ll write rules that react not just to ordinary facts in Jess’s working memory, but to shadow facts that are tied to JavaBeans; the JavaBeans will be wrappers around the HVAC interface software.

At the ...

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.