fr.lifl.magique.util
Class AgentPool

java.lang.Object
  extended byfr.lifl.magique.util.AgentPool

public class AgentPool
extends java.lang.Object

manages a pool of agent for a given service, these agents will be sollicited by their boss one by one to perform a given service their are specialized for. Thus boss burden is lighten for this skill.


Constructor Summary
AgentPool(Agent boss, java.lang.String skillName, java.lang.String serviceName, int sizeOfPool, java.lang.String[] hosts)
           
 
Method Summary
 void processRequest(Request r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentPool

public AgentPool(Agent boss,
                 java.lang.String skillName,
                 java.lang.String serviceName,
                 int sizeOfPool,
                 java.lang.String[] hosts)
Method Detail

processRequest

public void processRequest(Request r)