Hello Ernest and thanks a lot for your reply

I am still getting the following error:

Message: Cannot redefine deftemplate MAIN::painting2.
  Program text: ( deftemplate painting2 extends artifact ( declare (
from-class painting2 ) ) )  at line 4.

Is there any problem of using add method for each instance of painting?

thanks again,

John.
-----------------------------------------------------


On Fri, 3 Apr 2009, Ernest Friedman-Hill wrote:

>
> On Apr 3, 2009, at 11:00 AM, John Chrysakis wrote:
>
> >
> > (import factclasses.*,factinterface.*)
>
>
> This will have no effect. You need two separate import calls here.
>
> >
> > (deftemplate Painter(declare (from-class factclasses.painter )))
>
> Since Painter is to be a subclass of Artifact, you want to declare
> Artifact first, right?
>
>
> > (deftemplate artifact (declare (from-class factclasses.artifact)))
>
>
> This is OK. Instead of the the above three lines, you could have
> something like
>
> (import factclasses.*
> (import factinterface.*)
> (deftemplate artifact (declare (from-class artifact)))
> (deftemplate painting extends artifact (declare (from-class painting)))
>
>
> > (ppdeftemplate MAIN::painting extends artifact)
>
> "ppdeftemplate" pretty-prints a template; it doesn't change anything.
> You've just supplied some extra arguments, which Jess ignores.
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Informatics & Decision Sciences          Phone: (925) 294-2154
> Sandia National Labs
> PO Box 969, MS 9012                            [email protected]
> Livermore, CA 94550                             http://www.jessrules.com
>
>
>
>
>
> --------------------------------------------------------------------
> 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