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 16. Writing the rules

In this chapter you’ll...

  • Write real-time control rules
  • Learn about fuzzy logic
  • Write a fuzzy version of the HVAC Controller

You’ve spent the last two chapters programming in Java, developing the infrastructure for an HVAC Controller application. In this chapter, you’ll assemble all the pieces and write the Jess rules to regulate the system. In fact, you’ll write the rules twice.

First, you’ll write a set of rules that use simple logic and the Boolean vent states you programmed in chapter 15 (they’re “Boolean” because they’re either open or closed). If a given floor of the building gets too cold, its heat pump will be turned on; when it gets too warm, its heat will be turned off. This system will work much like ...

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