org.gudy.azureus2.ui.swt.speedtest
Class SpeedTestData

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.speedtest.SpeedTestData

public class SpeedTestData
extends Object

Use this class to store data that should persist across panels.


Method Summary
 int getHightestDownloadResult()
           
static SpeedTestData getInstance()
           
 NetworkAdminSpeedTesterResult getLastResult()
           
 String getLastTestData()
           
 int getLastUploadOnlyResult()
           
 void setHighestDownloadResult(int currDownRateInKBytePerSec)
          We are keeping the highest download result, since we want results biased toward fast downloads.
 void setLastTestData(String text)
           
 void setLastUploadOnlyResult(int currUpRateInKBytesPerSec)
          Record the last upload only result, but the minimum allowed result is 20 kbytes/sec.
 void setResult(NetworkAdminSpeedTesterResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SpeedTestData getInstance()

setLastTestData

public void setLastTestData(String text)

getLastTestData

public String getLastTestData()

setResult

public void setResult(NetworkAdminSpeedTesterResult result)

getLastResult

public NetworkAdminSpeedTesterResult getLastResult()

setHighestDownloadResult

public void setHighestDownloadResult(int currDownRateInKBytePerSec)
We are keeping the highest download result, since we want results biased toward fast downloads.

Parameters:
currDownRateInKBytePerSec - - result of a "download only" test.

getHightestDownloadResult

public int getHightestDownloadResult()
Returns:
- int

setLastUploadOnlyResult

public void setLastUploadOnlyResult(int currUpRateInKBytesPerSec)
Record the last upload only result, but the minimum allowed result is 20 kbytes/sec.

Parameters:
currUpRateInKBytesPerSec - -

getLastUploadOnlyResult

public int getLastUploadOnlyResult()