|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.net.PacketLoss.Uniform
public static class PacketLoss.Uniform
Uniformly random packet loss.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jist.swans.net.PacketLoss |
|---|
PacketLoss.Uniform, PacketLoss.Zero |
| Field Summary | |
|---|---|
private double |
prob
packet loss probability. |
| Constructor Summary | |
|---|---|
PacketLoss.Uniform(double prob)
Initialize uniform packet loss model. |
|
| Method Summary | |
|---|---|
boolean |
shouldDrop(NetMessage msg)
Decide whether to drop a packet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double prob
| Constructor Detail |
|---|
public PacketLoss.Uniform(double prob)
prob - packet loss probability| Method Detail |
|---|
public boolean shouldDrop(NetMessage msg)
shouldDrop in interface PacketLossmsg - message being processed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||