Well, it's not magic, you just have to think about what you're trying
to accomplish. The answer depends on what you consider to be 'the
result'. For example, if 'the result' is the fate of the Tank, well,
then, you've got the Tank object right here in Java, ask it about its
condition (by calling the isIntact() method, for example.)
If you want to know the exact moment when the Tank explodes, it would
make sense to modify the 'report-fire' and 'report-explosion' rules to
call (halt), so that the executeCommand("(run)") returns as soon as
the tank explodes. Then you can query the Tank (or Tanks) to find out
their condition.
I think Hue Le wrote:
>
>
> Hi,
> I successfully run the example below.
> I have one question (not related to Juan Luis Mulas Platero)
> How can i receive the result back as arbitrary data from this example ?
> (Jess manual section 5.4)
> Thanks
> Hue
>
>
> > public class FromJava
> > {
> >
> > public static void main(String[] argv) throws ReteException
> > {
...
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (510) 294-2154
Sandia National Labs FAX: (510) 294-2234
Org. 8920, MS 9214 [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------