Package jade.domain.FIPAAgentManagement

Examples of jade.domain.FIPAAgentManagement.FailureException


      }
      else if (action instanceof SetLevel){
        handleSetLevel((SetLevel)action, actExpr, reply);
      }
      else {
        throw new FailureException("Action "+action.getClass().getName()+" not supported.");   
      }
      return reply;
      }
View Full Code Here


        reply.setPerformative(ACLMessage.INFORM);
      } catch (Exception any) {
        String errorMsg = "Error initializing LogManager. "+any;
        logger.log(Logger.WARNING, errorMsg);
        any.printStackTrace();
        throw new FailureException(errorMsg);
      }
    }
View Full Code Here

    //FIXME: risolvere il problema del root logger quello senza nome !!!!!
    private void handleSetFile(SetFile action, Action actExpr, ACLMessage reply) throws FailureException{
      if(logManager != null){
        logManager.setFile(action.getFile(), action.getLogger());
      }else{
        throw new FailureException("LogManager not initialized");
      }
      reply.setPerformative(ACLMessage.INFORM);
    }
View Full Code Here

   
    private void handleSetLevel(SetLevel action, Action actExpr, ACLMessage reply)throws FailureException{
      if(logManager != null){
        logManager.setLogLevel(action.getLogger(), action.getLevel());
      }else{
        throw new FailureException("LogManager not initialized");
      }
      reply.setPerformative(ACLMessage.INFORM);
   
View Full Code Here

TOP

Related Classes of jade.domain.FIPAAgentManagement.FailureException

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.