If I have classes A, B and C, and I assert several instances of B and C,
I can't seem to call a method on A that takes either B or C as
parameters.
For example:
(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)
while executing (bind ?object-A (new A ?object-B ?object-C))
while executing defrule MAIN::create-object-A.
Message: Constructor not found: (new A ?object-B ?object-C).
However, A does have a constructor that takes a B and C as parameters.
I suspect this has something to do with the fact that both B and C are
wrapped as Jess.Value objects, but I can't figure out how to 'unwrap'
them.
Any suggestions?
-Mitch
--------------------------------------------------------------------
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]
--------------------------------------------------------------------