Package jade.core.behaviours

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

Related Classes of jade.core.behaviours.WakerBehaviour

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.