|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectEdgeOptions
Class to represent the edge options: loss rate, delay and bandwidth
| Constructor Summary | |
EdgeOptions()
Initializes loss rate to 0. |
|
| Method Summary | |
int |
getBW()
Returns the bandwidth |
long |
getDelay()
Returns the delay |
double |
getLossRate()
Returns the loss rate |
void |
setBW(int bw)
Sets the bandwidth |
void |
setDelay(long delay)
Sets the delay |
void |
setLossRate(double lossRate)
Sets the loss rate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EdgeOptions()
| Method Detail |
public void setLossRate(double lossRate)
lossRate - The new loss ratepublic void setDelay(long delay)
delay - The new delay, in millisecondspublic void setBW(int bw)
bw - The new bandwidth, in KB/spublic double getLossRate()
public long getDelay()
public int getBW()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||