Author: toad
Date: 2008-02-09 15:56:12 +0000 (Sat, 09 Feb 2008)
New Revision: 17763

Modified:
   trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java
Log:
Move some parameters to constants

Modified: trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java
===================================================================
--- trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java   
2008-02-09 15:53:53 UTC (rev 17762)
+++ trunk/freenet/src/freenet/node/simulator/RealNodeRoutingTest.java   
2008-02-09 15:56:12 UTC (rev 17763)
@@ -34,6 +34,8 @@
     static final int NUMBER_OF_NODES = 500;
     static final int DEGREE = 10;
     static final short MAX_HTL = (short)10;
+    static final boolean START_WITH_IDEAL_LOCATIONS = true;
+    static final boolean FORCE_NEIGHBOUR_CONNECTIONS = true;

     public static void main(String[] args) throws FSParseException, 
PeerParseException, InvalidThresholdException, NodeInitException, 
ReferenceSignatureVerificationException, InterruptedException {
         System.out.println("Routing test using real nodes:");
@@ -60,7 +62,7 @@
         }
         Logger.normal(RealNodeRoutingTest.class, "Created "+NUMBER_OF_NODES+" 
nodes");
         // Now link them up
-        makeKleinbergNetwork(nodes, false, DEGREE, true);
+        makeKleinbergNetwork(nodes, START_WITH_IDEAL_LOCATIONS, DEGREE, 
FORCE_NEIGHBOUR_CONNECTIONS);

         Logger.normal(RealNodeRoutingTest.class, "Added random links");



Reply via email to