The Javadoc for the defclass() method in the jess.Rete class says:

   /**
     * Add a defclass definition to this engine
     *
     * @param jessName The name Jess should use for this defclass
     * @param clazz The name of the Java class
     * @param parent If non-null, a parent deftemplate or defclass name
     */

This seems rather clear to me, but to clarify: the third paramter can
be null. If it is not null, then the deftemplate created by this
defclass call inherits from the deftemplate or defclass named by the
parameter. Deftemplate inheritance is described in manual sections
2.7.2, 2.7.4, and in Chapter 8's discussion of "defclass."


I think wqyivy wrote:
> Hello,  
> I want to use defclass in java code. But I don't know the meaning of parent 
>parameter.
> Value defclass(java.lang.String jessName, java.lang.String clazz, java.lang.String 
>parent) 
> 
> If I have a class named person, how can I add it to rete engine by using java code 
>instead of jess code?
> 
> Rete r = new Rete();
> r.defclass("per", "person", ?);
> 
> thanks for your help
> Ivy
>            
> 
> 
> 
> 
> 
> -----------------------------------------
> �ҵ��������ҵ�����
> http://name.etang.com/
> ���ƶ��ţ���������ʱ�й���
> http://sms.etang.com
> ��׬200Ԫ�����ѵľ���
> http://ecard.etang.com/progt/index.asp?s1=1&s2=1
> ְҵ��˼¼
> http://topic.etang.com/job/index.htm        
> 
> ---------------------------------------------------------------------
> 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