JESS: Announcing Jess 7.1b3

View: New views
3 Messages — Rating Filter:   Alert me  

JESS: Announcing Jess 7.1b3

by Ernest Friedman-Hill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We're pleased to announce the availability of Jess 7.1b3, the next
release of Jess, the rule engine for the Java platform.

Jess 7.1b3 is a bug-fix release. The next release will be 7.1 RC1 and
should be available within the next few weeks.

 From the change log:

      Line numbers in JessDE problem markers are one-based
      (thanks Win Carus). Reject "if" without "then" in all
      cases (thanks Michael Atighetchi). JessDE understands
      Eclipse projects that store files outside the
      workspace. The "(add)" function respects logical
      dependencies (thanks Lorie Ingraham). Fixed a bug with
      slot-specific and multiple modifies (thanks Florian
      Fischer). The static constraint checker will
      ignore variables as slot values (thanks Wolfgang Laun.)

As always, comments or questions are welcome at jess-users@... or
directly to Sandia at ejfried@... .


---------------------------------------------------------
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@....
--------------------------------------------------------------------


JESS: Shadow facts on java interfaces?

by Florian Fischer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Is it possible to declare a shadow fact from a Java interface?   Can I do
   (deftemplate <template-name> (declare (from-class <interface-name>)))
?

I'd like to create an interface "JessFact" or so, implemented by all my
classes that are relevant to my rules.  That interface would be extended
for each class to include all getters for the attributes that Jess needs
to know about.

Whenever I add an object to my data, I would check whether it implements
JessFact and, if yes, definstance it in the rete engine.  The interface
specific to the class would be used in the deftemplate to define only
the needed slots.  That's why I would like to bas the deftemplate on in
interface.

I haven't seen any documentation that describes (declare (from-class
<interface>)).  Is it possible?  If not, wouldn't it be a good idea?

Thanks in advance,
Florian Fischer


--------------------------------------------------------------------
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@....
--------------------------------------------------------------------


Re: JESS: Shadow facts on java interfaces?

by Ernest Friedman-Hill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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@....
--------------------------------------------------------------------