public class XYTorusFolded extends Routing
Constructor and Description |
---|
XYTorusFolded() |
Modifier and Type | Method and Description |
---|---|
int |
calcInputPort(Topology top,
int src,
int dst)
Calculates the input port used by a message to reach
the current hop along the path between a source and
a destination.
|
int |
calcOutputPort(Topology top,
int src,
int dst)
Evaluates the output port ID required to reach the next hop.
|
public int calcOutputPort(Topology top, int src, int dst)
Routing
calcOutputPort
in class Routing
top
- The topologysrc
- The tile of the optical routerdst
- The destination tilepublic int calcInputPort(Topology top, int src, int dst)
Routing
calcInputPort
in class Routing
top
- The topologysrc
- The source tile of the optical routerdst
- The destination tile