Sim.Routing.Champ
Class RouteRepairTimeout

java.lang.Object
  extended by Sim.Routing.Champ.RouteRepairTimeout
All Implemented Interfaces:
SimulationEvent

public class RouteRepairTimeout
extends java.lang.Object
implements SimulationEvent


Constructor Summary
RouteRepairTimeout(int sequenceNumber, NormalPacketHeader norHeader, Packet packet, ChampAlgorithm champ)
          Creates a new instance of RouteRepairTimeout
 
Method Summary
 void perform(Simulation sim, double time)
          Perform will figure out whether or not it now has a route for the packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteRepairTimeout

public RouteRepairTimeout(int sequenceNumber,
                          NormalPacketHeader norHeader,
                          Packet packet,
                          ChampAlgorithm champ)
Creates a new instance of RouteRepairTimeout

Method Detail

perform

public void perform(Simulation sim,
                    double time)
Perform will figure out whether or not it now has a route for the packet. If found a route send the packet. If no route found the RERR will be generated.

Specified by:
perform in interface SimulationEvent
Parameters:
sim - non-null Simulation
time - simulation time, exactly equal to the result of Simulation.getTime()