Thanks a lot....

i should have known this i quess

Sander
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 1:24 PM
Subject: Re: JESS: Newbie: Getting object from a fact


> I think Sander Rensen wrote:
> >
> > i use the following rule in jess:
> >
> > (defrule store-known-adjacents
> >      ?loc <- (adjacent (locale1 ?l) (locale2 ?l2))
> >      =>
> >      (call ?*my-module* storeAdjacent ?loc)
> > )
> >
> > the problem is that i need the Adjacent object (adjacent (locale1 ?l)
> > (locale2 ?l2))
> > as an object and not as a fact....
>
>
> Every defclass (like "adjacent", presumably) has an OBJECT slot that
> contains the actual object.
>
>  (defrule store-known-adjacents
>       (adjacent (locale1 ?l) (locale2 ?l2) (OBJECT ?loc))
>       =>
>       (call ?*my-module* storeAdjacent ?loc)
>  )
>
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Science and Engineering PSEs        Phone: (925) 294-2154
> Sandia National Labs                FAX:   (925) 294-2234
> PO Box 969, MS 9012                 [EMAIL PROTECTED]
> Livermore, CA 94550         http://herzberg.ca.sandia.gov
>
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
>
>

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