Package ons

Class WDMLightPath

java.lang.Object
ons.LightPath
ons.WDMLightPath

public class WDMLightPath
extends LightPath
  • Constructor Details

    • WDMLightPath

      public WDMLightPath​(long id, int src, int dst, int[] links, int[] wavelengths)
      Creates a new LightPath object.
      Parameters:
      id - unique identifier
      src - source node
      dst - destination node
      links - fyberlinks list composing the path
      wavelengths - wavelengths list used in fiberlinks
    • WDMLightPath

      public WDMLightPath​(long id, int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)
      Creates a new LightPath object.
      Parameters:
      id - unique identifier
      src - source node
      dst - destination node
      links - fyberlinks list composing the path
      wavelengths - wavelengths list used in fiberlinks
  • Method Details

    • getWavelengths

      public int[] getWavelengths()
      Retrieves the LightPath's vector containing the wavelengths that the fiber links in the path use.
      Returns:
      a vector of integer that represent wavelengths
    • toString

      public java.lang.String toString()
      Prints all information related to a given LightPath, starting with its ID, to make it easier to identify.
      Overrides:
      toString in class LightPath
      Returns:
      string containing all the values of the LightPath's parameters
    • toTrace

      public java.lang.String toTrace()
      Overrides:
      toTrace in class LightPath