jist.swans.net
Interface PacketLoss

All Known Implementing Classes:
PacketLoss.Uniform, PacketLoss.Zero

public interface PacketLoss

Packet loss models.

Since:
SWANS1.0

Nested Class Summary
static class PacketLoss.Uniform
          Uniformly random packet loss.
static class PacketLoss.Zero
          No packet loss.
 
Method Summary
 boolean shouldDrop(NetMessage msg)
          Decide whether to drop a packet.
 

Method Detail

shouldDrop

boolean shouldDrop(NetMessage msg)
Decide whether to drop a packet.

Parameters:
msg - message being processed
Returns:
whether packet should be dropped