|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--qcsim.net.util.Upload
Provides an interface to simulate the upload of a file.
| Field Summary | |
(package private) int |
downloadPeerID_
peer ID of downloading peer |
(package private) double |
kbyteLeft_
kbytes left to be transferred |
(package private) double |
transferRate_
transfer rate of upload |
| Constructor Summary | |
Upload(int downloadPeerID,
double transferRate,
double kbyteLeft)
Constructor |
|
| Method Summary | |
void |
setTransferRate(double rate)
Set the transfer rate |
boolean |
upload(int numSec)
Simulates upload for some seconds |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int downloadPeerID_
double transferRate_
double kbyteLeft_
| Constructor Detail |
public Upload(int downloadPeerID,
double transferRate,
double kbyteLeft)
downloadPeerID - peer ID of downloading peertransferRate - transfer rate of uploadkbyteLeft - kbytes left to be transferred| Method Detail |
public void setTransferRate(double rate)
rate - the transfer ratepublic boolean upload(int numSec)
numSec - number of seconds to be simulated
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||