This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Java Products and Servers and the fly likes imbedding jess in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "imbedding jess in java" Watch "imbedding jess in java" New topic
Author

imbedding jess in java

assia assiatoune
Greenhorn

Joined: Jul 11, 2004
Posts: 16
hello,
First ,I thank you a lot for having answered has my MAIL.
Your answer helped me a lot.THANKS TOO.
I am developping intelliegnt agents.so,
each agentmust have a basis of facts, a basis of rules and a goal to reach.
How do I must to think about the notion of goal (goal to reach)?
That is ,how can I know if the motor of inference reached the goal wanted by the user? ( I thaught to stop the inference once the goal has been inferred and appears in the list of facts!)
my two questions are the followings:
1-how can I know if a goal is reached?
2-once the inference engine launched ,what to do to stop it once the goal is reached ?

how can I do it from java(using le class Rete.)
I wait for your answer with impatience. (I thank you again for advantage) .Luyza.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Originally posted by assia assiatoune:
hello,
First ,I thank you a lot for having answered has my MAIL.
Your answer helped me a lot.THANKS TOO. \


Hmm. Not so much, apparently, as these are precisely the same questions I answered via email.


I am developping intelliegnt agents.so,
each agentmust have a basis of facts, a basis of rules and a goal to reach.
How do I must to think about the notion of goal (goal to reach)?


This is entirely up to you -- it depends on how you design your application. Most likely, though, the "goal" would be the appearance or modification of some facts in the working memory.


That is ,how can I know if the motor of inference reached the goal wanted by the user? ( I thaught to stop the inference once the goal has been inferred and appears in the list of facts!)
my two questions are the followings:
1-how can I know if a goal is reached?
2-once the inference engine launched ,what to do to stop it once the goal is reached ?


As I said in my mail, the answer to both of these is the same: to know when the goal is reached, you write a rule which matches the desired goal state on its left-hand-side; and to halt the engine which the goal is reached, you can have this rule call the "halt" function.


how can I do it from java(using le class Rete.)


If your Java code wants to know when the goal is reached, then that same rule that matches the goal condition could call some Java function to notify your Java code -- it could set a variable, store a value, display something in a GUI, or whatever you want. The key thing is that the correct way to react to changes in working memory is via a rule.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: imbedding jess in java