You should use Beans when you want a Fact to be linked to something
outside of Jess -- i.e., a GUI control, a sensor, a database entry,
etc. When that something changes, Jess needs to know about it, and the
Bean provides this connection.

Otherwise, use plain unordered facts. Jess needs to use reflection to
talk with Beans, so Beans are slower.

Ordered facts, at least those with multiple pieces of data in them,
are slower than ordered facts with a dedicated slot for each
datum. Unordered facts are therefore the most efficient way to
represent information in Jess.


I think Scott O Farrar wrote:
> Dear All
> 
> In the Jess Manual 2.7.4, there's a discussion of using Java Beans in
> Jess. I'm beginning to design my KB and wonder if there's any benefit in
> using beans instead of unordered facts?
> 
> thanks
> Scott
> 
> 
> 

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to