jist.swans.net
Class PacketLoss.Zero

java.lang.Object
  extended by jist.swans.net.PacketLoss.Zero
All Implemented Interfaces:
PacketLoss
Enclosing interface:
PacketLoss

public static class PacketLoss.Zero
extends java.lang.Object
implements PacketLoss

No packet loss.


Nested Class Summary
 
Nested classes/interfaces inherited from interface jist.swans.net.PacketLoss
PacketLoss.Uniform, PacketLoss.Zero
 
Constructor Summary
PacketLoss.Zero()
           
 
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
 

Constructor Detail

PacketLoss.Zero

public PacketLoss.Zero()
Method Detail

shouldDrop

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

Specified by:
shouldDrop in interface PacketLoss
Parameters:
msg - message being processed
Returns:
whether packet should be dropped