jist.swans.net
Interface PacketLoss

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

public interface PacketLoss

Packet loss models.

Since:
SWANS1.0
Version:
$Id: PacketLoss.java,v 1.7 2005/03/14 22:28:24 barr Exp $
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

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