Examples of AID


Examples of jade.core.AID

      }
    }
   
    private void handleSniffOff(VerticalCommand cmd) throws IMTPException, ServiceException, NotFoundException {
      Object[] params = cmd.getParams();
      AID sniffer = (AID)params[0];
      List targets = (List)params[1];
     
      MainContainer impl = myContainer.getMain();
      if(impl != null) {
        // Deactivate sniffing each element of the list
        Iterator it = targets.iterator();
        while(it.hasNext()) {
          AID target = (AID)it.next();
          ContainerID cid = impl.getContainerID(target);
         
          NotificationSlice slice = (NotificationSlice)getSlice(cid.getName());
          try {
            slice.sniffOff(sniffer, target);
View Full Code Here

Examples of jade.core.AID

      }
    }
   
    private void handleDebugOn(VerticalCommand cmd) throws IMTPException, ServiceException, NotFoundException {
      Object[] params = cmd.getParams();
      AID introspector = (AID)params[0];
      List targets = (List)params[1];
     
      MainContainer impl = myContainer.getMain();
      if(impl != null) {
        // Activate debugging each element of the list
        Iterator it = targets.iterator();
        while(it.hasNext()) {
          AID target = (AID)it.next();
          ContainerID cid = impl.getContainerID(target);
         
          NotificationSlice slice = (NotificationSlice)getSlice(cid.getName());
          try {
            slice.debugOn(introspector, target);
View Full Code Here

Examples of jade.core.AID

      }
    }
   
    private void handleDebugOff(VerticalCommand cmd) throws IMTPException, ServiceException, NotFoundException {
      Object[] params = cmd.getParams();
      AID introspector = (AID)params[0];
      List targets = (List)params[1];
     
      MainContainer impl = myContainer.getMain();
      if(impl != null) {
        // Deactivate debugging each element of the list
        Iterator it = targets.iterator();
        while(it.hasNext()) {
          AID target = (AID)it.next();
          ContainerID cid = impl.getContainerID(target);
         
          NotificationSlice slice = (NotificationSlice)getSlice(cid.getName());
          try {
            slice.debugOff(introspector, target);
View Full Code Here

Examples of jade.core.AID

    }
   
    private void handleNotifyPosted(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      ACLMessage msg = (ACLMessage)params[0];
      AID receiver = (AID)params[1];
     
      firePostedMessage(msg, receiver);
    }
View Full Code Here

Examples of jade.core.AID

    }
   
    private void handleNotifyReceived(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      ACLMessage msg = (ACLMessage)params[0];
      AID receiver = (AID)params[1];
     
      fireReceivedMessage(msg, receiver);
    }
View Full Code Here

Examples of jade.core.AID

      fireReceivedMessage(msg, receiver);
    }
   
    private void handleNotifyChangedAgentPrincipal(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      AID id = (AID)params[0];
      JADEPrincipal from = (JADEPrincipal)params[1];
      JADEPrincipal to = (JADEPrincipal)params[2];
     
      fireChangedAgentPrincipal(id, from, to);
    }
View Full Code Here

Examples of jade.core.AID

      fireChangedAgentPrincipal(id, from, to);
    }
   
    private void handleNotifyAddedBehaviour(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      AID id = (AID)params[0];
      Behaviour b = (Behaviour)params[1];
     
      fireAddedBehaviour(id, b);
    }
View Full Code Here

Examples of jade.core.AID

      fireAddedBehaviour(id, b);
    }
   
    private void handleNotifyRemovedBehaviour(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      AID id = (AID)params[0];
      Behaviour b = (Behaviour)params[1];
     
      fireRemovedBehaviour(id, b);
    }
View Full Code Here

Examples of jade.core.AID

      fireRemovedBehaviour(id, b);
    }
   
    private void handleNotifyChangedBehaviourState(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      AID id = (AID)params[0];
      Behaviour b = (Behaviour)params[1];
      String from = (String)params[2];
      String to = (String)params[3];
     
      fireChangedBehaviourState(id, b, from, to);
View Full Code Here

Examples of jade.core.AID

      return true;
    }
   
    private void handleSendMessage(VerticalCommand cmd) {
      Object[] params = cmd.getParams();
      AID sender = (AID)params[0];
      ACLMessage msg = ((GenericMessage)params[1]).getACLMessage();
      AID receiver = (AID)params[2];
     
      fireSentMessage(msg, sender, receiver);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.