Package ons.ra
Class MyRWA
java.lang.Object
ons.ra.MyRWA
- All Implemented Interfaces:
RA
public class MyRWA extends java.lang.Object implements RA
This is a sample algorithm for the Routing and Wavelength Assignment problem.
Fixed path routing is the simplest approach to finding a lightpath. The same
fixed route for a given source and destination pair is always used. This path
is computed using Dijkstra's Algorithm.
First-Fit slots set assignment tries to establish the lightpath using the
first wavelength available sought in the increasing order.
-
Constructor Summary
Constructors Constructor Description MyRWA()
-
Method Summary
Modifier and Type Method Description void
flowArrival(Flow flow)
void
flowDeparture(long id)
void
setModulation(int modulation)
void
simulationEnd()
void
simulationInterface(ControlPlaneForRA cp)
-
Constructor Details
-
MyRWA
public MyRWA()
-
-
Method Details
-
simulationInterface
- Specified by:
simulationInterface
in interfaceRA
-
simulationEnd
public void simulationEnd()- Specified by:
simulationEnd
in interfaceRA
-
flowArrival
- Specified by:
flowArrival
in interfaceRA
-
flowDeparture
public void flowDeparture(long id)- Specified by:
flowDeparture
in interfaceRA
-
setModulation
public void setModulation(int modulation)- Specified by:
setModulation
in interfaceRA
-