Package jason.runtime

Interface RuntimeServicesInfraTier

All Superinterfaces:
RuntimeServices

@Deprecated
public interface RuntimeServicesInfraTier
extends RuntimeServices
Deprecated.
  • Method Summary

    Modifier and Type Method Description
    default AgArch clone​(Agent source, java.util.Collection<java.lang.String> archClasses, java.lang.String agName)
    Deprecated.
    Clones an agent
    default java.lang.String createAgent​(java.lang.String agName, java.lang.String agSource, java.lang.String agClass, java.util.Collection<java.lang.String> archClasses, ClassParameters bbPars, Settings stts, Agent father)
    Deprecated.
    Creates a new agent with agName from source agSource, using agClass as agent class (default value is "jason.asSemantics.Agent"), archClasses as agent architecture classes, bbPars as the belief base class (default value is "DefaultBeliefBase"), stts as Settings (default value is new Settings()), and father is the agent creating this agent (null is none).
    default java.util.Collection<java.lang.String> getAgentsNames()
    Deprecated.
    Returns a set of all agents' name
    default int getAgentsQty()
    Deprecated.
    Gets the number of agents in the MAS.
    default java.lang.String getNewAgentName​(java.lang.String baseName)
    Deprecated.
     
    default boolean isRunning()
    Deprecated.
     
    default boolean killAgent​(java.lang.String agName, java.lang.String byAg, int deadline)
    Deprecated.
    Kills the agent named agName as a requested by byAg.
    default void startAgent​(java.lang.String agName)
    Deprecated.
    starts an agent (e.g.
    default void stopMAS​(int deadline, boolean stopJVM, int exitValue)
    Deprecated.
    Stops all MAS (the agents, the environment, the controller, ...)
  • Method Details

    • createAgent

      default java.lang.String createAgent​(java.lang.String agName, java.lang.String agSource, java.lang.String agClass, java.util.Collection<java.lang.String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws java.lang.Exception
      Deprecated.
      Description copied from interface: RuntimeServices
      Creates a new agent with agName from source agSource, using agClass as agent class (default value is "jason.asSemantics.Agent"), archClasses as agent architecture classes, bbPars as the belief base class (default value is "DefaultBeliefBase"), stts as Settings (default value is new Settings()), and father is the agent creating this agent (null is none). if no archClasses is informed (null value), if fathers is informed use father's ag archs else use default ag archs (see registerDefaultAgArch)

      Example: createAgent("bob", "bob.asl", "mypkg.MyAgent", null, null, null); Returns the name of the agent

      Specified by:
      createAgent in interface RuntimeServices
      Throws:
      java.lang.Exception
    • getNewAgentName

      default java.lang.String getNewAgentName​(java.lang.String baseName)
      Deprecated.
      Specified by:
      getNewAgentName in interface RuntimeServices
    • startAgent

      default void startAgent​(java.lang.String agName)
      Deprecated.
      Description copied from interface: RuntimeServices
      starts an agent (e.g. create thread for it)
      Specified by:
      startAgent in interface RuntimeServices
    • clone

      default AgArch clone​(Agent source, java.util.Collection<java.lang.String> archClasses, java.lang.String agName) throws JasonException
      Deprecated.
      Description copied from interface: RuntimeServices
      Clones an agent
      Specified by:
      clone in interface RuntimeServices
      Parameters:
      source - : the agent used as source for beliefs, plans, ...
      agName - : the name of the clone
      Returns:
      the agent arch created
      Throws:
      JasonException
    • killAgent

      default boolean killAgent​(java.lang.String agName, java.lang.String byAg, int deadline)
      Deprecated.
      Description copied from interface: RuntimeServices
      Kills the agent named agName as a requested by byAg. Agent.stopAg() method is called before the agent is removed.
      Specified by:
      killAgent in interface RuntimeServices
    • getAgentsNames

      default java.util.Collection<java.lang.String> getAgentsNames()
      Deprecated.
      Description copied from interface: RuntimeServices
      Returns a set of all agents' name
      Specified by:
      getAgentsNames in interface RuntimeServices
    • getAgentsQty

      default int getAgentsQty()
      Deprecated.
      Description copied from interface: RuntimeServices
      Gets the number of agents in the MAS.
      Specified by:
      getAgentsQty in interface RuntimeServices
    • isRunning

      default boolean isRunning()
      Deprecated.
      Specified by:
      isRunning in interface RuntimeServices
    • stopMAS

      default void stopMAS​(int deadline, boolean stopJVM, int exitValue) throws java.lang.Exception
      Deprecated.
      Description copied from interface: RuntimeServices
      Stops all MAS (the agents, the environment, the controller, ...)
      Specified by:
      stopMAS in interface RuntimeServices
      Throws:
      java.lang.Exception