Hi, sorry for the late replay.
here is my template:
(deftemplate humans
(slot h_id)
(slot h_is_visible)
(slot h_makes_sound)
(slot h_sound_volume)
(slot h_description)
(slot h_Framenumber)
(slot h_x)
(slot h_y)
(slot h_width)
(slot h_height)
)
and i have many h_id's in the database and there are also many h_id with the
same id# but with diffrent other attributes like h_framenumber and h_x.
my question is, how can i get forexample all thos information back into java
variables? they are all stored in xml file that is been made with the Jess
command.
do i need to use an xml binder?
and for the second quastion. i am using (h_description "long hair") but it
doest work and i get an error, if i use long_hair then it work.
From: "Ernest Friedman-Hill" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: JESS: From the database to java variable
Date: Thu, 29 Mar 2007 13:50:06 -0400
On Mar 29, 2007, at 12:51 PM, M Ismail wrote:
Hi,
i store what i have in an xml file, and then later i load this xml file.
but i want to know if its possible to get what is in the database back to
java variables?
im using templates in Jess.
I'm afraid without some more specifics, I can't quite tell what you're
asking.
and my second quastion is: i have a template with a "slot decription",
it works fine, but when i put something like "long hair" i get error
becouse i have a space, only long_hair work. is there a way to fix this?
I'm assuming you mean something like
(assert (my-template (description long hair)))
There are two different ways you might deal with this, but I would
recommend just using double-quoted strings rather than the unquoted
symbols you're using -- i.e.,
(assert (my-template (description "long hair")))
But make sure you use quotes always with that slot -- you'll get some
weird results if you go back and forth.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
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]
--------------------------------------------------------------------
_________________________________________________________________
Exclusieve pop concerten en andere gave video's vind je op msn.nl
http://video.nl.msn.com/v/nl-nl/v.htm
--------------------------------------------------------------------
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]
--------------------------------------------------------------------