Class JadeAg

java.lang.Object
jade.core.Agent
jason.infra.jade.JadeAg
All Implemented Interfaces:
jade.core.TimerListener, jade.util.leap.Serializable, Serializable, Runnable
Direct Known Subclasses:
JadeAgArch, JadeEnvironment, JadeExecutionControl

public abstract class JadeAg extends jade.core.Agent
Implementation of a basic jade agent for jason agents
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jade.core.Agent

    jade.core.Agent.Interrupted
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    protected Map<String,String>
     
    protected Logger
     
    protected boolean
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class jade.core.Agent

    AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    aclPerformativeToKqml(jade.lang.acl.ACLMessage m)
     
    void
    addAllAgsAsReceivers(jade.lang.acl.ACLMessage m)
     
    protected jade.lang.acl.ACLMessage
    ask(jade.lang.acl.ACLMessage m)
     
    void
     
    void
     
    int
     
    boolean
     
    protected jade.lang.acl.ACLMessage
     
    static jade.lang.acl.ACLMessage
     
    void
    putConversationId(String replyWith, String mId)
     
    void
     

    Methods inherited from class jade.core.Agent

    addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, setup, takeDown, waitUntilStarted, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • JadeAg

      public JadeAg()
  • Method Details

    • doDelete

      public void doDelete()
      Overrides:
      doDelete in class jade.core.Agent
    • isRunning

      public boolean isRunning()
    • incReplyWithId

      public int incReplyWithId()
    • sendMsg

      public void sendMsg(Message m) throws Exception
      Throws:
      Exception
    • broadcast

      public void broadcast(Message m)
    • putConversationId

      public void putConversationId(String replyWith, String mId)
    • ask

      protected jade.lang.acl.ACLMessage ask(jade.lang.acl.ACLMessage m)
    • addAllAgsAsReceivers

      public void addAllAgsAsReceivers(jade.lang.acl.ACLMessage m) throws Exception
      Throws:
      Exception
    • jasonToACL

      protected jade.lang.acl.ACLMessage jasonToACL(Message m) throws IOException
      Throws:
      IOException
    • kqmlToACL

      public static jade.lang.acl.ACLMessage kqmlToACL(String p)
    • aclPerformativeToKqml

      public static String aclPerformativeToKqml(jade.lang.acl.ACLMessage m)