JESS: Classes and Interfaces

2008-05-18 Thread rrogers
I have the following class structure IInterface1 getName() IInterface2 extends IInterface1 getValue() AbstractClassA implements IInterface2 ClassB extends AbstractClassA, ClassC extends AbstractClassA ClassD implements IInterface2 All 3 concrete

Re: JESS: Classes and Interfaces

2008-05-18 Thread Michael Smith
Russ, Double-check the extends optional phrase in your defclass calls (and/or from-class declarations in deftemplate declarations). - Mike Smith On May 18, 2008, at 8:03 AM, [EMAIL PROTECTED] wrote: I have the following class structure IInterface1 getName() IInterface2 extends

Re: JESS: Classes and Interfaces

2008-05-18 Thread Wolfgang Laun
It is not possible to refer to an interface in the from-class clause of a deftemplate. A class hierarchy including an abstract class can be mirrored as shown below. (deftemplate ClassA (declare (from-class AbstractClassA))) (deftemplate ClassB extends ClassA (declare (from-class ClassB)))