swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE:


From: Marcus Vinicius Pereira Pessoa
Subject: RE:
Date: Wed, 15 Apr 1998 13:41:47 -0300

Maybe you could try to make a call, from the agent, to a method of the 
observer swarm (something like ImFinished from hello-world-v3, provided 
it's on the model swarm) and there you put the 
[getTopLevelActivity() terminate].

I made something like that and it's working.

Marcus.


----------
From:   Laszlo Gulyas[SMTP:address@hidden
Reply To:       address@hidden
Sent:   Quarta-feira, 15 de Abril de 1998 13:08
To:     address@hidden



Well, I am using batch mode and I have to do so. Moreover I want to
_terminate_ the whole simulation and not simply stop it. This means that I
cannot simply send setStateStopped to ControlPanel. 

After your suggestions I looked into the implementation of ControlPanel
and I discovered that 'setStateStopped' simply sends a stop message to the
topLevelActivity while the setStateQuit sends the 'well-known' terminate
message. I made some experiments during which I tried to send 'stop'
message or a 'send & terminate' combination to the top level activity, but
I've got ambiguous results. 

If I use the stop & terminate combination then I got the same result as
simply using terminate. If I use only the send message then the simulation
terminates if it's in batch mode but does nothing perceivable if it's in
GUI mode.

So, what to do next?

Yours,

Gulya from Budapest


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================

<<application/ms-tnef>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]