Class PacketLinkRealizedByOptical


  • @Beta
    public class PacketLinkRealizedByOptical
    extends java.lang.Object
    Entity to represent packet link realized by optical intent.
    • Constructor Summary

      Constructors 
      Constructor Description
      PacketLinkRealizedByOptical​(org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst, org.onosproject.net.intent.Key realizingIntentKey, org.onlab.util.Bandwidth bandwidth)
      Creates instance with specified parameters.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.onlab.util.Bandwidth bandwidth()
      Returns assigned bandwidth.
      static PacketLinkRealizedByOptical create​(org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst, org.onosproject.net.intent.OpticalCircuitIntent intent)
      Creates PacketLinkRealizedByOptical instance with specified connect points and OpticalCircuitIntent.
      static PacketLinkRealizedByOptical create​(org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst, org.onosproject.net.intent.OpticalConnectivityIntent intent)
      Creates PacketLinkRealizedByOptical instance with specified connect points and OpticalConnectivityIntent.
      org.onosproject.net.ConnectPoint dst()
      Returns destination connect point.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isBetween​(org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)
      Check if packet link is between specified two connect points.
      org.onosproject.net.intent.Key realizingIntentKey()
      Returns intent key.
      org.onosproject.net.ConnectPoint src()
      Returns source connect point.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PacketLinkRealizedByOptical

        public PacketLinkRealizedByOptical​(org.onosproject.net.ConnectPoint src,
                                           org.onosproject.net.ConnectPoint dst,
                                           org.onosproject.net.intent.Key realizingIntentKey,
                                           org.onlab.util.Bandwidth bandwidth)
        Creates instance with specified parameters.
        Parameters:
        src - source connect point
        dst - destination connect point
        realizingIntentKey - key of Optical*Intent that realizes packet link between src and dst
        bandwidth - assigned bandwidth
    • Method Detail

      • create

        public static PacketLinkRealizedByOptical create​(org.onosproject.net.ConnectPoint src,
                                                         org.onosproject.net.ConnectPoint dst,
                                                         org.onosproject.net.intent.OpticalCircuitIntent intent)
        Creates PacketLinkRealizedByOptical instance with specified connect points and OpticalCircuitIntent. Assigned bandwidth is taken from physical limit of optical link.
        Parameters:
        src - source connect point
        dst - destination connect point
        intent - OpticalCircuitIntent that realizes packet link between src and dst
        Returns:
        PacketLinkRealizedByOptical instance with specified connect points and OpticalCircuitIntent
      • create

        public static PacketLinkRealizedByOptical create​(org.onosproject.net.ConnectPoint src,
                                                         org.onosproject.net.ConnectPoint dst,
                                                         org.onosproject.net.intent.OpticalConnectivityIntent intent)
        Creates PacketLinkRealizedByOptical instance with specified connect points and OpticalConnectivityIntent. Assigned bandwidth is taken from physical limit of optical link.
        Parameters:
        src - source connect point
        dst - destination connect point
        intent - OpticalConnectivityIntent that realizes packet link between src and dst
        Returns:
        PacketLinkRealizedByOptical instance with specified connect points and OpticalConnectivityIntent
      • src

        public org.onosproject.net.ConnectPoint src()
        Returns source connect point.
        Returns:
        source connect point
      • dst

        public org.onosproject.net.ConnectPoint dst()
        Returns destination connect point.
        Returns:
        destination connect point
      • bandwidth

        public org.onlab.util.Bandwidth bandwidth()
        Returns assigned bandwidth.
        Returns:
        assigned bandwidth
      • realizingIntentKey

        public org.onosproject.net.intent.Key realizingIntentKey()
        Returns intent key.
        Returns:
        intent key
      • isBetween

        public boolean isBetween​(org.onosproject.net.ConnectPoint src,
                                 org.onosproject.net.ConnectPoint dst)
        Check if packet link is between specified two connect points.
        Parameters:
        src - source connect point
        dst - destination connect point
        Returns:
        true if this link is between src and dst. false if not.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object