/* Learning Net - shlomy boshy 031868912
 * Reinforcement Learning network simulation  
 */
package learnnet;

public class BellmanFordRouter implements Router {     
  public synchronized Node getBestRouting(lookupTable Q,Node sender,Node dest,Node RoutingNode){
     /** return neighbor which has the smallest (static) shortest path */
     Node N= RoutingNode.BF.getMinValueNode(dest);           
     
     if (Network.Debug_Routing)
         Network.debugPrint("Node "+RoutingNode+":BF:Chosen neighbor "+N+" for routing to dest "+dest);     
     return N;
  }
    
  
  public synchronized void updateFromReply(lookupTable Q,double reply,double transferTime,double queueTime,Node sender,Node dest,Node RoutingNode){ /* no update */  
  }
}