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
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
*To:* jess-users
*Subject:* JESS: [EXTERNAL] Adding facts that are instances of from-class
deftemplates
** **
Hi,
** **
I am concerned with the at least two different ways in which you can add,
to working memory, facts that are instances of from-class deftemplates.***
*
Lets
Hi,
I am concerned with the at least two different ways in which you can add,
to working memory, facts that are instances of from-class deftemplates.
Lets say I have:
(deftemplate FC (declare (from-class FC)))
I can add a shadow fact like this:
(bind ?fc (new FC))
(add ?fc)
This is the
, and add and
definstance will both get you a doghouse for your Java object dog
automatically.
From: owner-jess-us...@sandia.gov [mailto:owner-jess-us...@sandia.gov] On
Behalf Of Henrique Lopes Cardoso
Sent: Friday, May 10, 2013 4:54 AM
To: jess-users
Subject: JESS: [EXTERNAL] Adding facts