RE: JESS: [EXTERNAL] Adding facts that are instances of from-class deftemplates

2013-05-21 Thread Friedman-Hill, Ernest
The thing is that after this code: (deftemplate Person (declare (from-class Person))) (bind ?f (assert (Person (name Henrique) (age 38 There's no way to transfer those property values to a Person object; i.e., if you then said (modify ?f (OBJECT (new Person))) Then the Person's name

RE: JESS: [EXTERNAL] Usage of abstract classes in rules

2013-05-21 Thread Friedman-Hill, Ernest
Typically slots come from JavaBeans properties, not fields – i.e., accessor methods like getEventID(). But if you specify “include-variables” when you create a deftemplate from a class, then public (and only public!) member fields will be used as well. See

Re: JESS: [EXTERNAL] Adding facts that are instances of from-class deftemplates

2013-05-21 Thread Henrique Lopes Cardoso
Got that, thanks a lot. Henrique On Thu, May 16, 2013 at 3:24 PM, Friedman-Hill, Ernest ejfr...@sandia.govwrote: The thing is that after this code: (deftemplate Person (declare (from-class Person))) (bind ?f (assert (Person (name Henrique) (age 38 There's no way to transfer

JESS: [EXTERNAL] Semantic network implementations

2013-05-21 Thread Ahmed Abdeen Hamed
Hello respected scientists, Is JESS the best environment to implement a semantic network? If it is indeed, is there an example I can follow? There isn't any in the JESS in Action book. Sincerely, -Ahmed