I have created a DimmerSwitch bean as defined in Jess in action.  I have added the 
firePropertyChange method to the setBrightness method.  I then executed the following 
code:

engine.defclass("dimmer","DimmerSwitch",null);                  
engine.definstance("dimmer",dimmer,true,engine.getGlobalContext());
engine.executeCommand("(bind ?ds dimmer)"); 
engine.executeCommand("(call ?ds setBrightness 10)"); 

I then get the following error:

Jess reported an error in routine call
        while executing (call ?ds setBrightness 10).
  Message: No method named 'setBrightness' found in class java.lang.String.

Your example on page 315 of the "Jess in Action" book stops the example with 
definstance.  How do I refer to the object in Jess if it is defined using the Rete 
definstance method in Java?

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to