Class RoutingInfoPacket

java.lang.Object
  |
  +--Packet
        |
        +--RoutingInfoPacket

public class RoutingInfoPacket
extends Packet

A RoutingInfoPacket is a packet containing a distance vector.


Field Summary
 
Fields inherited from class Packet
BROADCAST, DATA, ROUTING_INFO, ROUTING_REQUEST
 
Constructor Summary
RoutingInfoPacket(java.lang.String src, java.lang.String dest, java.util.SortedMap dv)
          new RoutingInfoPacket(src, dest, dv) returns a RoutingInfoPacket.
 
Method Summary
 java.util.SortedMap getDistanceVector()
          pkt.getDistanceVector() returns the distance vector contained in pkt.
 
Methods inherited from class Packet
getDestination, getSerialNumber, getSource, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoutingInfoPacket

public RoutingInfoPacket(java.lang.String src,
                         java.lang.String dest,
                         java.util.SortedMap dv)
new RoutingInfoPacket(src, dest, dv) returns a RoutingInfoPacket. Its source router is named src. Its destination router is named dest. It contains the distance vector dv.

Method Detail

getDistanceVector

public java.util.SortedMap getDistanceVector()
pkt.getDistanceVector() returns the distance vector contained in pkt.