Hello,
 I just want to know how to transfer parameter from Jess to java as Integer type. More 
detail, I defined a class whose construtor includes parameter in Integer type. When I 
used definstance, error occured. For example class Simpe has construtor defined like 
this:
.........  .........
  public Simple(String name, int serial)
  {
    m_name = name;
    m_serial = serial;
  )
........ ...........
In Jess, 
Jess> (defclass simple Simple)
Simple
Jess> (bind ?sb (new Simple "bob" (new Integer 1)))
Jess reported an error in routine new
        while executing (new Simple "bob" (new Integer 1))
        while executing (bind ?sb (new Simple "bob" (new Integer 1))).
  Message: Constructor not found: (new Simple "bob" (new Integer 1)).
  Program text: ( bind ?sb ( new Simple "bob" ( new Integer 1 ) ) )  at line 6.

Nested exception is:
Simple
java.lang.NoSuchMethodException: Simple
        at jess.cm.call(Unknown Source)
        at jess.dy.a(Unknown Source)
        at jess.Funcall.execute(Unknown Source)
        at jess.FuncallValue.resolveValue(Unknown Source)
        at jess.ci.call(Unknown Source)
        at jess.dy.a(Unknown Source)
        at jess.Funcall.execute(Unknown Source)
        at jess.Jesp.a(Unknown Source)
        at jess.Jesp.char(Unknown Source)
        at jess.Jesp.parse(Unknown Source)
        at jess.Main.execute(Unknown Source)
        at jess.Main.main(Unknown Source)

How can I transfer parameter between Jess and Java in different types? If this 
question has been asked before, please tell me how to find the answer. Thanks for your 
help sincerely.

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

Reply via email to