Package jade.domain.FIPAAgentManagement

Examples of jade.domain.FIPAAgentManagement.Envelope.addTo()


    Envelope env = new Envelope()

    Enumeration to_Enum = toPanel.getContent();
    while(to_Enum.hasMoreElements())
      env.addTo((AID)to_Enum.nextElement());

    if(newAIDFrom!= null)
      fromAID = newAIDFrom;
    if (fromAID.getName().length() > 0)
      env.setFrom(fromAID);
View Full Code Here


  private Envelope deserializeEnvelope() throws LEAPSerializationException {
    try {
      Envelope e = new Envelope();
      while (readBoolean()) {
        e.addTo(deserializeAID());
      }

      e.setFrom(readAID());
      e.setComments(readString());
      e.setAclRepresentation(readString());
View Full Code Here

  // Read in the 'to' slot
  if(IDLenv.to.length > 0)
    env.clearAllTo();
  for(int i = 0; i < IDLenv.to.length; i++) {
    AID id = unmarshalAID(IDLenv.to[i]);
    env.addTo(id);
  }

  // Read in the 'from' slot
  if(IDLenv.from.length > 0) {
    AID id = unmarshalAID(IDLenv.from[0]);
View Full Code Here

    // 'receiver' slot of the ACL message
    Iterator itTo = env.getAllTo();
    if(!itTo.hasNext()) {
      Iterator itReceiver = msg.getAllReceiver();
      while(itReceiver.hasNext())
        env.addTo((AID)itReceiver.next());
    }
   
    // If no 'from' slot is present, copy the 'from' slot from the
    // 'sender' slot of the ACL message
    AID from = env.getFrom();
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.