hi Jess users,
Perhaps some of you did it a thousand times. But I have trouble doing it:
I like to send an array to Java using the call function.
It looks like this:
...
(defrule do_observations
?ph <- (phase observe )
(actor_identifier ?ai)
(agent (OBJECT ?agent) )
...
=>
(retract ?ph)
(call ?agent setObserver
(new java.lang.String "TestObserver") ;//name of the object to load
and in
(new java.lang.String "dummyAction") ;// name of the methode to invoke
(new java.lang.String[] {"one", "two", "more"}) ;//argumentnames
(new java.lang.Integer[] {5 , 3, 5 ,4}) ;//argument values
)
)
...
The above clearly doesn't work. Probably because it isn't the right
approach. Can someone tell me what's the best approach to construct
something like this.
Thanks already a lot in advance
Regards
Arend Ligtenberg
+++++++++++++++++++++++++++++++++++++++++++++
Wageningen UR
Centre for Geo-Information
P.O. Box 47
6700 AA Wageningen
The Netherlands
tel: +31 317 47 46 53
fax: +31 317 47 45 67
email: [EMAIL PROTECTED]
internet: www.gis.wageningen-ur.nl/cgi
++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
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]
---------------------------------------------------------------------