Package ons.ra
Class My2RWA
java.lang.Object
ons.ra.My2RWA
- All Implemented Interfaces:
RA
public class My2RWA extends java.lang.Object implements RA
This is a sample algorithm for the Grooming problem.
The grooming algorithm tries to find the least loaded lightpath.
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 wavelength assignment tries to establish the lightpath using the
first wavelength available sought in the increasing order.
-
Constructor Summary
Constructors Constructor Description My2RWA() -
Method Summary
Modifier and Type Method Description voidflowArrival(Flow flow)voidflowDeparture(long id)voidsetModulation(int modulation)voidsimulationEnd()voidsimulationInterface(ControlPlaneForRA cp)
-
Constructor Details
-
My2RWA
public My2RWA()
-
-
Method Details
-
simulationInterface
- Specified by:
simulationInterfacein interfaceRA
-
simulationEnd
public void simulationEnd()- Specified by:
simulationEndin interfaceRA
-
flowArrival
- Specified by:
flowArrivalin interfaceRA
-
flowDeparture
public void flowDeparture(long id)- Specified by:
flowDeparturein interfaceRA
-
setModulation
public void setModulation(int modulation)- Specified by:
setModulationin interfaceRA
-