uk.org.arlott.simon.hw.f24.lbsta
Interface PacketTransport

All Known Implementing Classes:
BridgePort, Host, LAN

public interface PacketTransport

The PacketTransport interface provides a method of adding and removing packets from a component of the network. The purpose is to ensure Packets can be referenced from the objects they are moving on.


Method Summary
 void addPacket(Packet p)
          Add a Packet to this PacketTransport.
 void removePacket(Packet p)
          Removes a Packet from this PacketTransport.
 

Method Detail

addPacket

void addPacket(Packet p)
Add a Packet to this PacketTransport.

Parameters:
p - The Packet on the network.

removePacket

void removePacket(Packet p)
Removes a Packet from this PacketTransport.

Parameters:
p - The Packet on the network.