My understanding was that I could have e.g. a Java bean like

public class tge {
  protected int val = 0;
  [...]
}

Now I could define (within the class of course)

public void setVal(int v) {
  val = v;
}
public void setVal(String v) {
  val = some_conversion(v);
}

If I do that and then I want to reference an object of class 'tge' in a
rule like:

(defrule val-changed
  ?o <- (tge (OBJECT ?o-b) (val ?v))
=>
  [...]
)

I get the usual get() -3 error and 'val' is not shown. If I remove the
second setVal() method it works again.
Why that? Is there any workaround?

Again, thanks a lot :~)

-- 
   Thomas Gentsch

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