Package cleo.search.util

Examples of cleo.search.util.ConnectionStrengthAdjuster


                                  ArrayStoreWeights connectionsStore,
                                  SelectorFactory<E> selectorFactory,
                                  BloomFilter<Integer> bloomFilter,
                                  ConnectionFilter connFilter) {
    this(name, elementStore, connectionsStore, selectorFactory,
         bloomFilter, connFilter, new ConnectionStrengthAdjuster());
  }
View Full Code Here


   
    // Initialize bloom filter store
    this.filterStore = initFilterStore();
   
    // Initialize the connection strength/weight adjuster
    this.weightAdjuster = weightAdjuster == null ? new ConnectionStrengthAdjuster() : weightAdjuster;
   
    // Initialize the element id range
    this.range = new Range(elementStore.getIndexStart(), elementStore.capacity());
   
    // Initialize the resource pool for byte array
View Full Code Here

*/
public class TestWeightAdjuster extends TestCase {
  private Random rand = new Random();
 
  public void testConnectionStrengthAdjuster() {
    ConnectionStrengthAdjuster wAdjuster = new ConnectionStrengthAdjuster();
    adjustConnectionStrength(wAdjuster);
   
    wAdjuster.setBase(rand.nextInt(100));
    adjustConnectionStrength(wAdjuster);
   
    wAdjuster.setBase(rand.nextInt(1000));
    adjustConnectionStrength(wAdjuster);
   
    wAdjuster.setBase(rand.nextInt(1000000));
    adjustConnectionStrength(wAdjuster);
  }
View Full Code Here

TOP

Related Classes of cleo.search.util.ConnectionStrengthAdjuster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.