|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFatTreeRouter
public class FatTreeRouter
The FatTreeRouter class is the implementation of the Router interface for the Butterfly Fat Tree Network.
Constructor Summary | |
---|---|
FatTreeRouter()
|
Method Summary | |
---|---|
int |
determineRoute(int source,
int dest,
int switchAddr)
Implementation of the determineRoute() method of the Router interface. |
int |
fat_tree_static__route(int dest,
int switchAddr)
This method determines the next path to be taken in the switch considering range of IP nodes covered by this switch. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FatTreeRouter()
Method Detail |
---|
public int determineRoute(int source, int dest, int switchAddr)
Implementation of the determineRoute() method of the Router interface. Returns which path the flit passed be transmitted to ultimately reach the destination.
To incorporate a different routing algorithm, make necessary modifications.
determineRoute
in interface Router
source
- address of the source nodedest
- address of the destination nodeswitchAddr
- address of the switch where the routing is taking place
public int fat_tree_static__route(int dest, int switchAddr)
This method determines the next path to be taken in the switch considering range of IP nodes covered by this switch.
dest
- address of the destination nodeswitchAddr
- address of the switch where the routing is taking place
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |