Thanks for your answer.
I have "Jess in action" (great book !!! many thanks for it) and so, i
also have the jess61p4. ;-)
I agree that it was more a java problem as i have solved it now.
Many thanks for your answer
Regards
[EMAIL PROTECTED]
a.gov Pour : [EMAIL PROTECTED]
Envoyi par : cc :
owner-jess-users Objet : Re: JESS: pbm with the input
router
@sandia.gov
08/03/2004 04:03
PM
Veuillez
ripondre `
jess-users
I think [EMAIL PROTECTED] wrote:
>
> Hi,
>
> I am facing a problem when attempting to use jess in my java Application
>
> I've defined the output and the input router but, once i lanch the code
in
> jess, i have the print in my TextAreawriter but when the code is asking
> for an entry ,something like (assert (fact (read)), the system
stalled...
> it seems that the system immediatly read the content of my textreader
(and
> of course, i have no opportuity to enter my answer....
>
> Have you any exemple on how launching a jess engine and how waiting for
the
> user reply ?
>
This topic is treated in the book "Jess in Action", and of course if
you've got a Jess license, you've got the source code, which includes
the class jess.ConsolePanel which shows how to use TextReader and
TextAreaWriter . But the number one problem people have with this kind
of thing isn't really a Jess problem, but a problem of not
understanding that in Java, all GUI events are handled in a single
Thread, and if you block that Thread, no other events can be handled;
so in particular, if you call jess.Rete.run() directly from an event
handler, then the GUI will be frozen until Jess is through
running. You need to create another Thread and run Jess from there. As
I said, this isn't really a Jess thing -- it's just a Java programming
thing.
---------------------------------------------------------
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://herzberg.ca.sandia.gov
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
----------------------------------------------------------
Le prisent message ainsi que ses iventuelles pihces jointes est
exclusivement destini au(x) destinataire(s), personnes physiques ou
morales, qu'il disigne.
Il constitue de ce fait une correspondance ` caracthre privi et peut
contenir des informations confidentielles.
Si ce message vous est parvenu par erreur, nous vous remercions d'en aviser
immidiatement l'expiditeur par retour de courrier ilectronique puis de le
ditruire, ainsi que ses iventuelles pihces jointes, sans en conserver de
copie.
This message, including any attachment, is intended for the use of the
individual or entity to which it is addressed.
It is therefore to be considered as a private correspondence which may
contain confidential information.
If you are not the intended recipient, please advise the sender immediately
by reply e.mail and delete this message and any attachment thereto without
retaining a copy.
----------------------------------------------------------
--------------------------------------------------------------------
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]
--------------------------------------------------------------------