<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/bitext/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/bitext/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 10 Jul 2008 17:52:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/bitext/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>DSL layer on the top of Bittorrent API</title><link>https://sourceforge.net/p/bitext/feature-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It would be very interesting to have a documented Domain Specific Language (DSL) for this API, as an abstracted layer for developers using this API in their projects&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fo2sh</dc:creator><pubDate>Thu, 10 Jul 2008 17:52:30 -0000</pubDate><guid>https://sourceforge.neta811470000339a991fd00156195a4152fc1d782a</guid></item><item><title>DownloadManager</title><link>https://sourceforge.net/p/bitext/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Some basic functions to get data from the DownloadManager would be nice.  Since most of the data is private after all.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;public float getCompleted() {&lt;br /&gt;
try{&lt;br /&gt;
return (float) (((float) (100.0)) * ((float) (this.isComplete.cardinality())) / ((float) (this.nbPieces)));&lt;br /&gt;
}catch(Exception e) {&lt;br /&gt;
return 0.00f;&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;public float getDLRate() {&lt;br /&gt;
try{&lt;br /&gt;
float rate = 0.00f;&lt;br /&gt;
List&amp;lt;Peer&amp;gt; l = new LinkedList&amp;lt;Peer&amp;gt;(this.peerList.values());&lt;/p&gt;
&lt;p&gt;for (Iterator it = l.iterator(); it.hasNext(); ) {&lt;br /&gt;
Peer p = (Peer) it.next();&lt;br /&gt;
if(p.getDLRate(false) &amp;gt; 0)&lt;br /&gt;
rate =rate + p.getDLRate(true);                              &lt;br /&gt;
}&lt;br /&gt;
return rate/(1024 * 10);&lt;br /&gt;
}catch(Exception e) {&lt;br /&gt;
return 0.00f;&lt;br /&gt;
} &lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;public float getULRate() {&lt;br /&gt;
try{&lt;br /&gt;
float rate = 0.00f;&lt;br /&gt;
List&amp;lt;Peer&amp;gt; l = new LinkedList&amp;lt;Peer&amp;gt;(this.peerList.values());&lt;/p&gt;
&lt;p&gt;for (Iterator it = l.iterator(); it.hasNext(); ) {&lt;br /&gt;
Peer p = (Peer) it.next();&lt;br /&gt;
if(p.getULRate(false) &amp;gt; 0)&lt;br /&gt;
rate =rate + p.getULRate(true);                              &lt;br /&gt;
}&lt;br /&gt;
return rate/(1024 * 10);&lt;br /&gt;
}catch(Exception e) {&lt;br /&gt;
return 0.00f;&lt;br /&gt;
} &lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael E. DeVore</dc:creator><pubDate>Fri, 29 Jun 2007 00:39:32 -0000</pubDate><guid>https://sourceforge.net07c62d935bed9835b7fadb3ac21490bd026cbb4c</guid></item></channel></rss>