On Apr 23, 2008, at 6:41 AM, Florian Fischer wrote:
> Hello,
>
> Is it possible to declare a shadow fact from a Java interface? Can
> I do
> (deftemplate <template-name> (declare (from-class <interface-
> name>)))
>
Simply put: yes. To create the shadow facts themselves you'll need to
use "definstance" and specify the template name; you can't use the new
"add" function, which wants to use the name of the class itself as the
template name.
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012
ejfried@...
Livermore, CA 94550
http://www.jessrules.com--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users
you@...'
in the BODY of a message to
majordomo@..., NOT to the list
(use your own address!) List problems? Notify
owner-jess-users@....
--------------------------------------------------------------------