I think Mitch Christensen wrote:

> 
> (defrule create-object-A
> "Creates and instance of object A"
> ?object-B <- (B)
> ?object-c <- (C)
> =>
> (bind ?object-A (new A ?object-B ?object-C)))
> 
> Results in the following:
> 
> Jess reported an error in routine new
>       while executing (new A ?object-B ?object-C)


?object-B amd ?object-C are jess.Fact objects. To get the definstanced
object itself, match the OBJECT slot:

defrule create-object-A
 "Creates and instance of object A"
 (B (OBJECT ?object-B))
 (C (OBJECT ?object-C))
 =>
 (bind ?object-A (new A ?object-B ?object-C)))




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

Reply via email to