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 Embedding Jess in my Java application 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 "Embedding Jess in my Java application" Watch "Embedding Jess in my Java application" New topic
Author

Embedding Jess in my Java application

assiatoune assiatoune
Greenhorn

Joined: Jun 17, 2004
Posts: 1
hello,
i have a probleme with embedding jess in my java appliation,
my projet cosists of developping intelligent agents.
eah agent has its beliefs, its rules , and its goal to be attended using the jess engine?
how can I do this?that means how can i define a class for example "beliefs" and "rule base"in java using jess and then calling the jess inference engine to attend the goal?
thanks very very match.

[edit: renamed the topic to better match the question]
[ June 17, 2004: Message edited by: Lasse Koskela ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi,

Welcome to JavaRanch!

Embedding Jess in a Java program can be very simple. Let's say the rules for an agent are in a file "agentrules.clp". You can simply do this:



Of course, there's much more you can do. There are a lot of questions here, and of course I can't answer all of them in detail. The best resources for learning about Jess are the book "Jess in Action" (see my signature for the Amazon link) and the Jess user's mailing list (jess-users@sandia.gov).

Finally, note that a number of existing agent frameworks support Jess directly, so you may be able to save yourself some work just by using Jade or MadKit or Bond or ... . You can see the Related Web Sites page at the Jess web site for more links.


[Jess in Action][AskingGoodQuestions]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Embedding Jess in my Java application