Re: How to stop MAS?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: How to stop MAS?

Jomi Hubner
Hi Andres,

the simplest way is to use the internal action .stopMAS. When some agent detects the termination condition, it executes this action. For instance, in the case of time elapsed:

!stop.

+!stop <- .wait(10000); // wait for 10 seconds
                 .stopMAS.

HTH,

Jomi



> On 18 de abr de 2017, at 15:06, Andrés Parra <[hidden email]> wrote:
>
> Hello, I'm doing a project with Jason and I need to stop the execution of the program when global conditions are fulfilled (same for all agents). My project consists of 12 agents who perform specific tasks (each one has its own plans) and I need to stop the execution when a time limit is reached or a certain number of movements are fulfilled. I have read the example "gold minners II", but I don't understand the way they stop the execution here. How can I stop the system when the conditions are met?. I appreciate your help.
>
> Thanks,
>
> Andrés Parra Gaviria
> Industrial Engineer
> Student of Master of Science in Systems Engineering
> UANL, Mexico
>
> El contenido de este mensaje y sus anexos son únicamente para el uso del destinatario y pueden contener información  clasificada o reservada. Si usted no es el destinatario intencional, absténgase de cualquier uso, difusión, distribución o copia de esta comunicación.

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florianópolis, SC
88040-900 Brazil
http://jomi.das.ufsc.br


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users