at.dms.kjc.spacetime
Class SmarterRouter

java.lang.Object
  extended by at.dms.kjc.spacetime.SmarterRouter
All Implemented Interfaces:
Router

public class SmarterRouter
extends Object
implements Router

Author:
mgordon

Constructor Summary
SmarterRouter(int[] tileCosts, RawChip chip)
           
 
Method Summary
 int distance(RawComputeNode src, RawComputeNode dst)
           
 LinkedList<RawComputeNode> getRoute(RawComputeNode src, RawComputeNode dst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmarterRouter

public SmarterRouter(int[] tileCosts,
                     RawChip chip)
Method Detail

getRoute

public LinkedList<RawComputeNode> getRoute(RawComputeNode src,
                                           RawComputeNode dst)
Specified by:
getRoute in interface Router

distance

public int distance(RawComputeNode src,
                    RawComputeNode dst)
Specified by:
distance in interface Router