Package jade.domain.introspection

Examples of jade.domain.introspection.AMSSubscriber$EventHandler


    boolean autocleanup = getBooleanProperty(sAutocleanup, AUTOCLEANUP);
    if (autocleanup) {
      logger.log(Logger.CONFIG,"Autocleanup activated");
      // Finally add the behaviour that listens for AMS notifications
      // about dead agents.
      amsSubscriber = new AMSSubscriber() {
        protected void installHandlers(java.util.Map handlersTable) {
          handlersTable.put(IntrospectionVocabulary.DEADAGENT, new EventHandler() {
            public void handle(Event ev) {
              DeadAgent da = (DeadAgent)ev;
              AID id = da.getAgent();
View Full Code Here


   
  } // END of inner class LogHelperAgentBehaviour
 
 
  private void amsSubscribe(final AID owner) {
    myAMSSubscriber = new AMSSubscriber() {
      protected void installHandlers(Map handlersTable) {
        handlersTable.put(IntrospectionVocabulary.DEADAGENT, new EventHandler() {
          public void handle(Event ev) {
            DeadAgent da = (DeadAgent) ev;
            if (da.getAgent().equals(owner)) {
View Full Code Here

TOP

Related Classes of jade.domain.introspection.AMSSubscriber$EventHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.