Examples of addUserDefinedSlot()


Examples of jade.core.AID.addUserDefinedSlot()

    pss.stm_selAgentUserDefSlot.setString(1, aidN);
    rs = pss.stm_selAgentUserDefSlot.executeQuery();
    while(rs.next()) {
      String key = rs.getString("slotkey");
      String value = rs.getString("slotval");
      id.addUserDefinedSlot(key, value);
    }
   
    return id;
  }
 
View Full Code Here

Examples of jade.core.AID.addUserDefinedSlot()

    // User defined slots
    int propsSize = presence & 0x1F;
    for (int i = 0; i < propsSize; ++i) {
      String key = dis.readUTF();
      String val = dis.readUTF();
      id.addUserDefinedSlot(key, val);
    }
    return id;
  }

  private static final void serializeProperties(Properties props, DataOutputStream dos) throws IOException {
View Full Code Here

Examples of jade.core.AID.addUserDefinedSlot()

        token_source.SwitchTo(AIDSTATE);
        break;
      case USERDEFINEDSLOT:
        t = jj_consume_token(USERDEFINEDSLOT);
        s = Expression();
        cur.addUserDefinedSlot(t.image.substring(3),s); token_source.SwitchTo(AIDSTATE);
        break;
      default:
        jj_la1[7] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
View Full Code Here

Examples of jade.core.AID.addUserDefinedSlot()

      // Notify the main container through its slice
      AgentManagementSlice mainSlice = (AgentManagementSlice)getSlice(MAIN_SLICE);
     
      // We propagate the class-name to the main, but we don't want to keep it in the actual agent AID.
      AID cloned = (AID) target.clone();
      cloned.addUserDefinedSlot(AID.AGENT_CLASSNAME, instance.getClass().getName());
      try {
        mainSlice.bornAgent(cloned, myContainer.getID(), vCmd);
      }
      catch(IMTPException imtpe) {
        // Try to get a newer slice and repeat...
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.