Package jade.core.event

Examples of jade.core.event.PlatformEvent


  /////////////////////////////////////////////////////////////////
  // Private methods to notify platform listeners of significant
  // events.
  /////////////////////////////////////////////////////////////////
  private void fireAddedContainer(ContainerID cid) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.ADDED_CONTAINER, cid);
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.addedContainer(ev);
      }
View Full Code Here


      }
    }
  }
 
  private void fireRemovedContainer(ContainerID cid) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.REMOVED_CONTAINER, cid);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.removedContainer(ev);
View Full Code Here

      }
    }
  }
 
  private void fireBornAgent(ContainerID cid, AID agentID, String ownership) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.BORN_AGENT, agentID, cid, null, ownership);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.bornAgent(ev);
View Full Code Here

      }
    }
  }
 
  private void fireDeadAgent(ContainerID cid, AID agentID, boolean containerRemoved) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.DEAD_AGENT, agentID, cid, containerRemoved);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.deadAgent(ev);
View Full Code Here

      }
    }
  }
 
  private void fireSuspendedAgent(ContainerID cid, AID agentID) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.SUSPENDED_AGENT, agentID, cid);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.suspendedAgent(ev);
View Full Code Here

      }
    }
  }
 
  private void fireResumedAgent(ContainerID cid, AID agentID) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.RESUMED_AGENT, agentID, cid);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.resumedAgent(ev);
View Full Code Here

      }
    }
  }
 
  private void fireFrozenAgent(ContainerID cid, AID agentID, ContainerID bufferContainer) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.FROZEN_AGENT, agentID, cid, bufferContainer);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.frozenAgent(ev);
View Full Code Here

      }
    }
  }
 
  private void fireThawedAgent(ContainerID cid, AID agentID, ContainerID bufferContainer) {
    PlatformEvent ev = new PlatformEvent(PlatformEvent.THAWED_AGENT, agentID, cid, bufferContainer);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.thawedAgent(ev);
View Full Code Here

      }
    }
  }
 
  private void fireMovedAgent(ContainerID from, ContainerID to, AID agentID) {
    PlatformEvent ev = new PlatformEvent(agentID, from, to);
   
    for(int i = 0; i < platformListeners.size(); i++) {
      AgentManager.Listener l = (AgentManager.Listener)platformListeners.get(i);
      try {
        l.movedAgent(ev);
View Full Code Here

TOP

Related Classes of jade.core.event.PlatformEvent

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.