"is-a" is part of COOL, which is not supported in Jess. Instead of
matching on instances of COOL classes, Jess can match Java Beans. 

I think Arslan Basharat wrote:
[Charset Windows-1252 unsupported, filtering to ASCII...]
> hi all,
> 
> I am new to JESS and wanted to know if there is an 'is-a' in JESS like that
> of CLIPS. the code I am using is
> 
> (defrule end-test1-1
>  (declare (salience -50))
>  ?a<-(job test1)
>  (not (object
>    (is-a constraint)
>    (cons-violation yes)
>    )
>  )
> =>
>      (retract ?a)
>      (assert (job optimize))
> )
> 
> I am reading the above rule from a .clp file. And the error I am receiving
> is
> 
> Jess reported an error in routine Jesp.parsePattern.
>   Message: Bad slot value .
>   Program text: ( defrule end-test1-1 ( declare ( salience -50 ) ) ?a <-
>  job t
>   est1 ) ( object (  at line 4.
> 
> Waiting for a helpful reply. I hope that I am not doing some silly mistake
> here. Thank you all in advance.
> 
> regards,
> 
> ****************************
> Arslan
> ____________________________________________
> Criminal  : A guy no different from the rest... except that he got caught.
> 
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



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

Reply via email to