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
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
http://www.jessrules.com/jess/docs/71
Got that, thanks a lot.
Henrique
On Thu, May 16, 2013 at 3:24 PM, Friedman-Hill, Ernest
wrote:
> 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
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