jr239.co620
Class ACOjoinedAttrbSearch

java.lang.Object
  extended by jr239.co620.ACOjoinedAttrbSearch

public class ACOjoinedAttrbSearch
extends java.lang.Object


Field Summary
static int PCV
           
 
Method Summary
protected static ACOjoinedAttrbSearch getInstance()
          protected
static int[] getIntList(java.util.Set<java.lang.Integer> s)
           
protected static void startSearch(weka.gui.LogPanel lp)
           
static void testInternals()
          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(); }
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PCV

public static final int PCV
See Also:
Constant Field Values
Method Detail

getInstance

protected static ACOjoinedAttrbSearch getInstance()
protected


startSearch

protected static void startSearch(weka.gui.LogPanel lp)

testInternals

public static void testInternals()
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(); }


getIntList

public static int[] getIntList(java.util.Set<java.lang.Integer> s)


Copyright © 2008 This is an undergraduate research project at the University of Kent Computing Laboratory. All Rights Reserved.