Examples of WakerBehaviour


Examples of jade.core.behaviours.WakerBehaviour

    Date lease = dfd.getLeaseTime();
    final AID theDF = (df != null ? df : a.getDefaultDF());
    if (lease != null) {
      if (deadline == null || lease.getTime() < deadline.getTime()) {
        dfd.setLeaseTime(deadline);
        a.addBehaviour(new WakerBehaviour(a, new Date(lease.getTime() - OFFSET)) {
          protected void onWake() {
            try {
              DFAgentDescription newDfd = modify(myAgent, theDF, dfd);
              keepRegistered(myAgent, theDF, newDfd, dfd.getLeaseTime());
            }
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.