If the Car objects are getting new Position objects, but you're not
seeing that in working memory, then something is wrong with your
change event notification.
But if you're simply changing the properties of a Position object, and
you want those changes to be reflected in working memory, then yes,
you need to add the objects to working memory, and furthermore,
matches to the properties of the Position's properties must be done in
patterns that match the Position objects. I.e., you can't do this:
(Car (position ?p&:(> ?p.x 10)))
You must do
(Car (position ?p))
(Position (OBJECT ?p) {x > 10})
On Jan 9, 2009, at 7:32 AM, Joao Antunes Mourao wrote:
Hello,
I have two classes defined, in which the second class is an
attribute of
the first class. Like the class Car, has an attribute that comes from
the Class Position.
The class Car is a JessBean, using the property listener to respond to
updates. So the idea is that i insert a Car in the working memory, and
if the object changes from Java, Jess will see the changes.
Now, what is happening in my case, is that when i change the
position of
the object Car (from Java), Jess still see the old position. It seems
that the position is never updated in Jess. Do I need to define the
class Position as a JessBean too? And if so, do i need to insert
directly to the working memory? Because the Position is already inside
the Car.
Regards,
Joao
----------------------------
unclassified message
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify
the sender and delete it.
Any unauthorized copying, disclosure or distribution of this email
or its attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused
by this email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the
Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
<joao.mourao.vcf>
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012 [email protected]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
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].
--------------------------------------------------------------------