I've made a few changes to the program provided with JIA for fuzzy control to allow one to change the setpoint as well as the outside temperature. In this case there will be 2 text boxes. The top one is the outside temp and the bottom the setpoint temp. It involved small changes to 3 files that are enclosed with this message. The changes include adding a getSetPoint method to the Simulator class and string the setpoint in that class. In the clp file it was necessary to use this method to get the current setpoint in a few places ... using the syntax Ernest described in his response to this message.
Bob Bob Orchard National Research Council Canada Conseil national de recherches Canada Institute for Information Technology Institut de technologie de l'information 1200 Montreal Road, Building M-50 M50, 1200 chemin Montr�al Ottawa, ON, Canada K1A 0R6 Ottawa (Ontario) Canada K1A 0R6 (613) 993-8557 (613) 952-0215 Fax / t�l�copieur [EMAIL PROTECTED] Government of Canada | Gouvernement du Canada -----Original Message----- From: David [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2003 1:38 AM To: JESS Subject: JESS: Any Ideas Hi guys, Anyone knows what is an async error as follows? Async Error: Jess reported an error in routine Funcall.execute while executing (SetPoint (setpoint ?value)) while executing deffunction too-cold while executing (too-cold ?t) while executing rule LHS (TEQ) while executing rule LHS (TECT). This is regarding the HVAC simulation. What I did was I changed the ?*set-point* parameter to a bean. That is, I want to dynamically change the set point of the simulation from the java infrastructure (I thought it would be more realistic that way). I made SetPoint as a defclass and subsequently definstance instead. The error seems to come from (deffunction too-cold (?t) (SetPoint (setpoint ?value)) (return (< ?t (- ?value 2)))) I think my understanding of some jess issues must be faulty. Would appreciate any advice and pointers. Regards David
SimulatorGUI.java
Description: Binary data
control.clp
Description: Binary data
Simulator.java
Description: Binary data
