Hi John,
The only way to pattern-match Java objects is via Bean properties,
yes. But you can create Java objects, call their methods, access their
variables, etc. at any time by using the appropriate Jess function
calls. See examples/frame.clp, for instance, or examples/draw.clp, or
section 2.6 of the manual ("Java reflection") and the other sections
referenced therein.
You can use all of this stuff on both the RHS and LHS of rules.
I think John Mela wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> As far as I can tell, the only way to access and modify java objects from
> within jess rules is via java beans [and the associated get, set, and
> property
> change support].
>
> Are there any more direct ways of directly accessing java object from rules?
>
> John Mela
>
---------------------------------------------------------
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]
---------------------------------------------------------------------