Class JasonBridgeArch

java.lang.Object
jason.architecture.AgArch
jason.infra.jade.JasonBridgeArch
All Implemented Interfaces:
Serializable, Comparable<AgArch>

public class JasonBridgeArch extends AgArch
See Also:
  • Constructor Details

    • JasonBridgeArch

      public JasonBridgeArch(JadeAgArch jadeAg)
  • Method Details

    • init

      public void init(AgentParameters ap) throws Exception
      Throws:
      Exception
    • wake

      public void wake()
      Description copied from class: AgArch
      Puts the agent in sleep.
      Overrides:
      wake in class AgArch
    • stop

      public void stop()
      Description copied from class: AgArch
      A call-back method called by the infrastructure tier when the agent is about to be killed.
      Overrides:
      stop in class AgArch
    • getAgName

      public String getAgName()
      Description copied from class: AgArch
      Gets the agent's name
      Overrides:
      getAgName in class AgArch
    • canSleep

      public boolean canSleep()
      Description copied from class: AgArch
      Returns true if the agent can enter in sleep mode.
      Overrides:
      canSleep in class AgArch
    • perceive

      public Collection<Literal> perceive()
      Description copied from class: AgArch
      Gets the agent's perception as a list of Literals. The returned list will be modified by Jason.
      Overrides:
      perceive in class AgArch
    • getJadeAg

      public JadeAgArch getJadeAg()
    • sendMsg

      public void sendMsg(Message m) throws Exception
      Description copied from class: AgArch
      Sends a Jason message
      Overrides:
      sendMsg in class AgArch
      Throws:
      Exception
    • broadcast

      public void broadcast(Message m) throws Exception
      Description copied from class: AgArch
      Broadcasts a Jason message
      Overrides:
      broadcast in class AgArch
      Throws:
      Exception
    • checkMail

      public void checkMail()
      Description copied from class: AgArch
      Reads the agent's mailbox and adds messages into the agent's circumstance
      Overrides:
      checkMail in class AgArch
    • translateContentToJason

      protected Object translateContentToJason(jade.lang.acl.ACLMessage m)
      returns the content of the message m and implements some pro-processing of the content, if necessary
    • translateDFSubscribeToJason

      protected Literal translateDFSubscribeToJason(jade.lang.acl.ACLMessage m)
    • act

      public void act(ActionExec action)
      Description copied from class: AgArch
      Executes the action action and, when finished, adds it back in feedback actions.
      Overrides:
      act in class AgArch
    • getRuntimeServices

      public RuntimeServices getRuntimeServices()
      Description copied from class: AgArch
      return agent specific run time services (e.g. jade agents implements its differently for each agent)
      Overrides:
      getRuntimeServices in class AgArch