public abstract class Routing
extends java.lang.Object
Constructor and Description |
---|
Routing() |
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.
|
abstract int |
calcOutputPort(Topology top,
int src,
int dst)
Evaluates the output port ID required to reach the next hop.
|
public abstract int calcOutputPort(Topology top, int src, int dst)
top
- The topologysrc
- The tile of the optical routerdst
- The destination tilepublic int calcInputPort(Topology top, int src, int dst)
top
- The topologysrc
- The source tile of the optical routerdst
- The destination tile