Update of /cvsroot/freenet/freenet/src/freenet/node/rt In directory sc8-pr-cvs1:/tmp/cvs-serv25022/src/freenet/node/rt
Modified Files: RoutingPointStore.java Log Message: Documentation and avoid one sutpid exception Index: RoutingPointStore.java =================================================================== RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/RoutingPointStore.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- RoutingPointStore.java 4 Nov 2003 15:41:17 -0000 1.5 +++ RoutingPointStore.java 4 Nov 2003 15:59:26 -0000 1.6 @@ -147,6 +147,7 @@ } //Create fresh routing store with 'accuracy' number of default-valued RoutingPoints + //All time values will be set to the supplied 'initTime' public RoutingPointStore(int accuracy,int initTime) { points = new RoutingPoint[accuracy]; if(initTime < 0) throw new IllegalArgumentException("negative initTime"); @@ -190,9 +191,10 @@ points[x] = new RoutingPoint(key,time,sensitivity); } } - //TODO: Documentation + //Initializes the routing store to contain a 'mountain', centered around the supplied 'k', + //starting at 'low' and ending at 'high' public RoutingPointStore(Key k, int high, int low, int accuracy) { - this(accuracy,-1); + this(accuracy,1); //We will overwrite the initTime:s in a second so they doesn't really matter. //Make sure that we detect any assignment problems but setting initTime to -1 if (high < 0 || low < 0) _______________________________________________ cvs mailing list [EMAIL PROTECTED] http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs