at.dms.kjc.spacetime
Class XYRouter

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

public class XYRouter
extends Object
implements Router

Author:
mgordon

Constructor Summary
XYRouter()
           
 
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

XYRouter

public XYRouter()
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