Package jade.domain.introspection

Examples of jade.domain.introspection.EventRecord


  void setAms(ams ams) {
    theAms = ams;
    // Generate a PlatformDescription event in case some AddedMTP or RemovedMTP event happened when the AMS was not yet initialized
    PlatformDescription ap = new PlatformDescription();
    ap.setPlatform(theAms.getDescriptionAction(null));
    EventRecord er = new EventRecord(ap, localContainer);
    er.setWhen(new Date());
    eventQueue.put(er);
  }
View Full Code Here


    ba.setWhere(cid);
    ba.setState(AMSAgentDescription.ACTIVE);
    ba.setOwnership(ownership);
    ba.setClassName((String) agentID.getAllUserDefinedSlot().get(AID.AGENT_CLASSNAME));

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

    da.setWhere(cid);
    if (ev.getContainerRemoved()) {
      da.setContainerRemoved(new Boolean(true));
    }

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

    SuspendedAgent sa = new SuspendedAgent();
    sa.setAgent(name);
    sa.setWhere(cid);

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

    ResumedAgent ra = new ResumedAgent();
    ra.setAgent(name);
    ra.setWhere(cid);

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

    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

    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

    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

    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

    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

TOP

Related Classes of jade.domain.introspection.EventRecord

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.