All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class network.RoutingNetworkEdge

java.lang.Object
   |
   +----network.RoutingNetworkEdge

public class RoutingNetworkEdge
extends Object
implements Network, Node
Interface for a generic network. Networks support sending and receiving of addressed packets. Clients using a network will need to implement the NetworkClient interface to receive packets. Packets are submitted to the network with the TransmitPacket function.


Constructor Index

 o RoutingNetworkEdge()

Method Index

 o AddLink(Link)
Connect a link
 o AddReceiver(PacketReceiver, Address)
 o MTU()
 o PacketArrived(LinkPacket, Link)
 o RemoveLink(Link)
Disconnect a link
 o RemoveReceiver(PacketReceiver)
 o toString()
 o TransmitPacket(NetworkPacket)

Constructors

 o RoutingNetworkEdge
 public RoutingNetworkEdge()

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o TransmitPacket
 public void TransmitPacket(NetworkPacket p)
 o MTU
 public int MTU()
 o AddReceiver
 public void AddReceiver(PacketReceiver client,
                         Address address)
 o RemoveReceiver
 public void RemoveReceiver(PacketReceiver client)
 o PacketArrived
 public void PacketArrived(LinkPacket p,
                           Link l)
 o AddLink
 public void AddLink(Link l)
Connect a link

See Also:
AddLink
 o RemoveLink
 public void RemoveLink(Link l)
Disconnect a link

See Also:
RemoveLink

All Packages  Class Hierarchy  This Package  Previous  Next  Index