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.
-
RoutingNetworkEdge()
-
-
AddLink(Link)
- Connect a link
-
AddReceiver(PacketReceiver, Address)
-
-
MTU()
-
-
PacketArrived(LinkPacket, Link)
-
-
RemoveLink(Link)
- Disconnect a link
-
RemoveReceiver(PacketReceiver)
-
-
toString()
-
-
TransmitPacket(NetworkPacket)
-
RoutingNetworkEdge
public RoutingNetworkEdge()
toString
public String toString()
- Overrides:
- toString in class Object
TransmitPacket
public void TransmitPacket(NetworkPacket p)
MTU
public int MTU()
AddReceiver
public void AddReceiver(PacketReceiver client,
Address address)
RemoveReceiver
public void RemoveReceiver(PacketReceiver client)
PacketArrived
public void PacketArrived(LinkPacket p,
Link l)
AddLink
public void AddLink(Link l)
- Connect a link
- See Also:
- AddLink
RemoveLink
public void RemoveLink(Link l)
- Disconnect a link
- See Also:
- RemoveLink
All Packages Class Hierarchy This Package Previous Next Index