Package jason.stdlib

Class stopMAS

java.lang.Object
All Implemented Interfaces:
InternalAction, java.io.Serializable

@Manual(literal=".stopMAS",
        hint="aborts the execution of all agents in the multi-agent system (and any simulated environment too)",
        argsHint="",
        argsType="",
        examples=".stopMAS: close multi-agent system application",
        seeAlso={"jason.stdlib.create_agent","jason.stdlib.kill_agent","jason.runtime.RuntimeServices"})
public class stopMAS
extends DefaultInternalAction

Internal action: .stopMAS.

Description: aborts the execution of all agents in the multi-agent system (and any simulated environment too).

Example:

  • .stopMAS.
  • .stopMAS(2000) shuts down the system in 2 seconds. The signal +jag_shutting_down(T) will be produced so that agents can prepare themselves for the shutdown.
  • .stopMAS(2000,false) same as before, but do not kill the JVM.
  • .stopMAS(0,1) shuts down the system and returns 1.
See Also:
create_agent, kill_agent, RuntimeServices, Serialized Form