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