Package org.onosproject.newoptical
Class PacketLinkRealizedByOptical
- java.lang.Object
-
- org.onosproject.newoptical.PacketLinkRealizedByOptical
-
@Beta public class PacketLinkRealizedByOptical extends java.lang.ObjectEntity 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.Bandwidthbandwidth()Returns assigned bandwidth.static PacketLinkRealizedByOpticalcreate(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 PacketLinkRealizedByOpticalcreate(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.ConnectPointdst()Returns destination connect point.booleanequals(java.lang.Object o)inthashCode()booleanisBetween(org.onosproject.net.ConnectPoint src, org.onosproject.net.ConnectPoint dst)Check if packet link is between specified two connect points.org.onosproject.net.intent.KeyrealizingIntentKey()Returns intent key.org.onosproject.net.ConnectPointsrc()Returns source connect point.
-
-
-
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 pointdst- destination connect pointrealizingIntentKey- key of Optical*Intent that realizes packet link between src and dstbandwidth- 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 pointdst- destination connect pointintent- 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 pointdst- destination connect pointintent- 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 pointdst- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-