at.dms.kjc.spacedynamic
Class XYRouter

java.lang.Object
  extended by at.dms.kjc.spacedynamic.XYRouter

public class XYRouter
extends Object

Generate a route from

src
to
dst
routing X then Y, just as the dynamic network would do it


Constructor Summary
XYRouter()
           
 
Method Summary
static int distance(SpdStaticStreamGraph ssg, ComputeNode src, ComputeNode dst)
           
static LinkedList<ComputeNode> getRoute(SpdStaticStreamGraph ssg, ComputeNode src, ComputeNode dst)
          return the route from src to dest (including both) first x then y, this returns a list of compute nodes (tiles)
 
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 static LinkedList<ComputeNode> getRoute(SpdStaticStreamGraph ssg,
                                               ComputeNode src,
                                               ComputeNode dst)
return the route from src to dest (including both) first x then y, this returns a list of compute nodes (tiles)


distance

public static int distance(SpdStaticStreamGraph ssg,
                           ComputeNode src,
                           ComputeNode dst)