Package ons

Class EONLightPath

java.lang.Object
ons.LightPath
ons.EONLightPath

public class EONLightPath
extends LightPath
  • Constructor Details

    • EONLightPath

      public EONLightPath​(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize)
    • EONLightPath

      public EONLightPath​(long id, int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation, int slotSize)
    • EONLightPath

      public EONLightPath​(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize, java.lang.String typeProtection)
    • EONLightPath

      public EONLightPath​(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize, int[] cores, java.lang.String typeProtection)
  • Method Details

    • getFirstSlot

      public int getFirstSlot()
    • getLastSlot

      public int getLastSlot()
    • getCores

      public int[] getCores()
    • getNumCores

      public int getNumCores()
      Retrieves the number of cores in this link
      Returns:
      the number of cores in this link
    • getSlots

      public int getSlots()
      Returns the number of slots containing the lightpath.
      Returns:
      the number of slots in this lightpath
    • getModulation

      public int getModulation()
    • getBwAvailable

      public int getBwAvailable()
    • isEmpty

      public boolean isEmpty()
    • getBw

      public int getBw()
    • addFlowOnLightPath

      public void addFlowOnLightPath​(int bw)
      Add a Flow in the Lightpath
      Parameters:
      bw - the Mbps value
    • acabalp

      public void acabalp()
    • removeFlowOnLightPath

      public void removeFlowOnLightPath​(int bw)
      Remove a Flow on the Lighpath
      Parameters:
      bw - the Mbps value
    • toString

      public java.lang.String toString()
      Description copied from class: LightPath
      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