Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv6496/src/freenet/node/rt
Modified Files:
StandardNodeEstimator.java NodeEstimator.java
Log Message:
Added a nicer name for the different estimators
Index: StandardNodeEstimator.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/StandardNodeEstimator.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -r1.14 -r1.15
--- StandardNodeEstimator.java 30 Oct 2003 03:18:52 -0000 1.14
+++ StandardNodeEstimator.java 30 Oct 2003 08:46:13 -0000 1.15
@@ -628,6 +628,24 @@
return null;
}
}
+
+ /* (non-Javadoc)
+ * @see freenet.node.rt.NodeEstimator.HTMLReportTool#graphNiceName(int)
+ */
+ public String graphNiceName(int type) {
+ switch (type) {
+ case T_SUCCESS_SEARCH :
+ return "Time for successful search";
+ case T_TRANSFER_RATE :
+ return "Transfer rate";
+ case P_DNF :
+ return "Probability of DNF";
+ case T_DNF :
+ return "Time for DNF";
+ default :
+ return null;
+ }
+ }
}
Index: NodeEstimator.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/NodeEstimator.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -r1.7 -r1.8
--- NodeEstimator.java 30 Oct 2003 03:18:52 -0000 1.7
+++ NodeEstimator.java 30 Oct 2003 08:46:13 -0000 1.8
@@ -81,7 +81,8 @@
{
abstract public void toHtml(PrintWriter pw, String imageLinkPrefix)
throws IOException;
- abstract public String graphName(int id);
+ abstract public String graphName(int type);
+ abstract public String graphNiceName(int type);
abstract public int graphType(String type);
abstract public int estimatorType(int estimator);
abstract public TimeEstimator getEstimator(int type);
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs