sidnet.stack.users.triggers_project.routing
Class RoutingTable

java.lang.Object
  extended by sidnet.stack.users.triggers_project.routing.RoutingTable

public class RoutingTable
extends java.lang.Object


Constructor Summary
RoutingTable()
          Creates a new instance of RoutingTable
 
Method Summary
 void add(NetAddress destIP, MacAddress nextHopMac, int nodeId)
           
 void deleteNextHopMac(MacAddress deleteableAddress)
           
 void eraseDestinationEntries(NetAddress destIP)
           
 boolean existDestinationEntry(NetAddress destIP)
           
 RoutingTable getCopy()
           
 NetAddress getDestByIndex(int index)
           
 MacAddress getNextHop(NetAddress destIP)
           
 MacAddress getNextHopByIndex(int index)
           
 int getSize()
           
 void print()
           
 void replaceNextHopMac(MacAddress oldAddress, MacAddress newAddress)
           
 void update(NetAddress destIP, MacAddress nextHopMac, int nodeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingTable

public RoutingTable()
Creates a new instance of RoutingTable

Method Detail

existDestinationEntry

public boolean existDestinationEntry(NetAddress destIP)

add

public void add(NetAddress destIP,
                MacAddress nextHopMac,
                int nodeId)

update

public void update(NetAddress destIP,
                   MacAddress nextHopMac,
                   int nodeId)

replaceNextHopMac

public void replaceNextHopMac(MacAddress oldAddress,
                              MacAddress newAddress)

deleteNextHopMac

public void deleteNextHopMac(MacAddress deleteableAddress)

eraseDestinationEntries

public void eraseDestinationEntries(NetAddress destIP)

getNextHop

public MacAddress getNextHop(NetAddress destIP)

getCopy

public RoutingTable getCopy()

getDestByIndex

public NetAddress getDestByIndex(int index)

getNextHopByIndex

public MacAddress getNextHopByIndex(int index)

getSize

public int getSize()

print

public void print()