if (!localActionQueue.contains(agentName)) {
if (!localActionQueue.contains(agentName) && !agentMoving(agentName)) {
  protected void doLocalAction(String agentName, int action) {    if (logger.isDebugEnabled()) {      logger.debug("doLocalAction:" +                   " agent=" + agentName +                   " action=" + action);    }    if (!localActionQueue.contains(agentName)) {      localActionQueue.add(new LocalRequest(agentName, action));      blackboard.signalClientActivity();    }  }