Examples of EventRecord


Examples of jade.domain.introspection.EventRecord

    FrozenAgent fa = new FrozenAgent();
    fa.setAgent(name);
    fa.setWhere(cid);
    fa.setBufferContainer(bufferContainer);

    EventRecord er = new EventRecord(fa, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    ThawedAgent ta = new ThawedAgent();
    ta.setAgent(name);
    ta.setWhere(cid);
    ta.setBufferContainer(bufferContainer);

    EventRecord er = new EventRecord(ta, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    MovedAgent ma = new MovedAgent();
    ma.setAgent(agentID);
    ma.setFrom(from);
    ma.setTo(to);

    EventRecord er = new EventRecord(ma, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    cao.setAgent(name);
    cao.setWhere(cid);
    cao.setFrom(ev.getOldOwnership());
    cao.setTo(ev.getNewOwnership());

    EventRecord er = new EventRecord(cao, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    String name = cid.getName();

    AddedContainer ac = new AddedContainer();
    ac.setContainer(cid);

    EventRecord er = new EventRecord(ac, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    String name = cid.getName();

    RemovedContainer rc = new RemovedContainer();
    rc.setContainer(cid);

    EventRecord er = new EventRecord(rc, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    AddedMTP amtp = new AddedMTP();
    amtp.setAddress(address);
    amtp.setProto(proto);
    amtp.setWhere(cid);

    EventRecord er = new EventRecord(amtp, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);

    if (theAms != null) {
      // The PlatformDescription has changed --> Generate a suitable event
      PlatformDescription ap = new PlatformDescription();
      ap.setPlatform(theAms.getDescriptionAction(null));
      er = new EventRecord(ap, localContainer);
      er.setWhen(ev.getTime());
      eventQueue.put(er);
    }
  }
View Full Code Here

Examples of jade.domain.introspection.EventRecord

    RemovedMTP rmtp = new RemovedMTP();
    rmtp.setAddress(address);
    rmtp.setProto(proto);
    rmtp.setWhere(cid);

    EventRecord er = new EventRecord(rmtp, localContainer);
    er.setWhen(ev.getTime());
    eventQueue.put(er);

    if (theAms != null) {
      // The PlatformDescription has changed --> Generate a suitable event
      PlatformDescription ap = new PlatformDescription();
      ap.setPlatform(theAms.getDescriptionAction(null));
      er = new EventRecord(ap, localContainer);
      er.setWhen(ev.getTime());
      eventQueue.put(er);
    }
  }
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.