Hello, I'm very new in the Jess and probably this question is too dummy. Anyway... I have a function in java code that tell me if some "object" is inside some "area" (both these, object and area, are classes defined by myself in java). The function look like this:
class area{ boolean isInside(object _obj) { if (inside) return true: else return false; } } Now, what i would like to do using jess is, everytime a object is inside a specific area then the rule fires. And I was trying to write something like this: (defrule object-inside-are (area {name == "restricted area"}) (area {isInside (object)} == true ) => //do something here The problem is that I cannot access the function like this. Can you explain me what i have to do here to put this working? Thanks, Joao Mourao ----------------------------------------------- Unclassified email
begin:vcard fn;quoted-printable:Jo=C3=A3o Mour=C3=A3o n;quoted-printable;quoted-printable:Mour=C3=A3o;Jo=C3=A3o org:Thales;Above Water Systems adr:;;;Hengelo;;;Netherlands email;internet:[EMAIL PROTECTED] title:THALES NETHERLANDS B.V. tel;work:2640 note:-unclassified mail- version:2.1 end:vcard