private static String getSamePheroWeightsCouplesSetsAsString(){
//lg.debug("Entering getSamePheroWeightsCouplesSetsAsString()\n");
StringBuilder s=new StringBuilder("\nCouples with same pheroWeights\n"); HashSet>couplesSet =null;
for( Integer i : pheromeneWeightsToCouplesSetMap.keySet() ){
s.append( "..............PheromoneWeight:"+i+":CouplesSet:..........\n");
couplesSet = pheromeneWeightsToCouplesSetMap.get(i);
couplesSet.remove(null); // "empty couple "null" couple is inserted in the set when created to avoid this possibiliey
StringBuilder t = new StringBuilder();int x = 0;
for (Couple cs : couplesSet ){
t .append(" CoupleNo:"+x+":"+ cs.toString()+" \n"); x++;
}s.append(t+"----------End of couplesSet for weight:" + i + "-------------\n");
}//lg.debug("Leaving getSamePheroWeightsCouplesSetsAsString()\n");
return s.toString();
}