|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lastbamboo.common.download.DownloaderState.AbstractRunning
org.lastbamboo.common.download.MsDState.LimeWireDownloadingState
public static class MsDState.LimeWireDownloadingState
An implementation of the LimeWire downloading state.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState |
|---|
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded |
| Field Summary |
|---|
| Fields inherited from interface org.lastbamboo.common.download.MsDState |
|---|
CANCELED, COMPLETE, COULD_NOT_DETERMINE_SOURCES, FAILED, GETTING_SOURCES, IDLE, NO_SOURCES_AVAILABLE |
| Constructor Summary | |
|---|---|
MsDState.LimeWireDownloadingState(double kbs,
int numSources,
long bytesRead,
long size)
Constructs a new downloading state. |
|
| Method Summary | ||
|---|---|---|
|
accept(MsDState.Visitor<T> visitor)
Accepts a visitor to this state. |
|
boolean |
equals(Object obj)
|
|
long |
getBytesRead()
Accessor for the number of bytes read. |
|
double |
getKbs()
Returns the speed of the download in kilobytes per second. |
|
int |
getNumSources()
Returns the number of sources used by the download. |
|
String |
getTimeRemaining()
Accessor for the time remaining. |
|
int |
hashCode()
|
|
| Methods inherited from class org.lastbamboo.common.download.DownloaderState.AbstractRunning |
|---|
calculateTimeRemaining, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.lastbamboo.common.download.DownloaderState |
|---|
getType |
| Constructor Detail |
|---|
public MsDState.LimeWireDownloadingState(double kbs,
int numSources,
long bytesRead,
long size)
kbs - The speed of the downloading n kilobytes per second.numSources - The number of sources used by the download.bytesRead - The number of bytes read.| Method Detail |
|---|
public <T> T accept(MsDState.Visitor<T> visitor)
MsDState
accept in interface MsDStateT - The return type of the visitor.visitor - The visitor.
public double getKbs()
MsDState.Downloading
getKbs in interface MsDState.Downloadingpublic int getNumSources()
MsDState.Downloading
getNumSources in interface MsDState.Downloadingpublic long getBytesRead()
MsDState.Downloading
getBytesRead in interface MsDState.Downloadingpublic String getTimeRemaining()
MsDState.Downloading
getTimeRemaining in interface MsDState.Downloadingpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||