I think Calicrates Policroniades Borraz wrote:
>
>
>
> Hello, First of all I want to tell you that I'm a beginner with Jess.
> I'm developing an application that identifiey 'things' in the real world
> and matches this 'things' with objects in Java, this objects have methods
> and attributes.
>
> I want the script in Jess to recognize this set of attributes, i know
> that the bean-like properties become slots in jess, 1) is there another
> way to do this?
You can write BeanInfos. A BeanInfo class maps between the methods of
a class and a set of Bean property names. Jess will recognize BeanInfo
classes. See the Java Beans spec for more information.
>
> 2) If the number of objects is large, what is the best way to tell Jess
> about them?
There's only one way to do it, regardless of the number of objects: by
calling the definstance function. There's an example in the manual of
calling it from Java, or you can pass the objects in via store() and
call definstance in Jess code. Not much difference either way.
>
> Thank you in advance.
>
---------------------------------------------------------
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]
---------------------------------------------------------------------