for (Iterator e = clusters.keySet().iterator(); e.hasNext();) {
AgentId id = (AgentId) e.next();
if (! visit.contains(id)) {
Message message = getQueueMessage(msgId, true);
if (message != null) {
LBCycleLife cycle = (LBCycleLife) table.get(id);
if (cycle == null) {
cycle = new LBCycleLife(loadingFactor.getRateOfFlow());
cycle.setClientMessages(new ClientMessages());
}
ClientMessages cm = cycle.getClientMessages();
cm.addMessage(message.getFullMessage());
cycle.putInVisitTable(msgId,visit);
table.put(id,cycle);
transmitted = true;
break;
}
}