Package org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.ted.rev131021.srlg.attributes
Interface InterfaceSwitchingCapabilities
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<InterfaceSwitchingCapabilities>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.ChildOf<SrlgAttributes>
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
,org.opendaylight.yangtools.yang.binding.Identifiable<InterfaceSwitchingCapabilitiesKey>
@Generated("mdsal-binding-generator") public interface InterfaceSwitchingCapabilities extends org.opendaylight.yangtools.yang.binding.ChildOf<SrlgAttributes>, org.opendaylight.yangtools.yang.binding.Augmentable<InterfaceSwitchingCapabilities>, org.opendaylight.yangtools.yang.binding.Identifiable<InterfaceSwitchingCapabilitiesKey>
List of interface capabilities for this interfaceThis class represents the following YANG schema fragment defined in module ted
list interface-switching-capabilities { key switching-capability; leaf switching-capability { type ted:switching-capabilities; } leaf encoding { type uint8; } list max-lsp-bandwidth { max-elements 8; key priority; leaf priority { type uint8 { range 0..7; } } leaf bandwidth { type decimal64 { fraction-digits 2; } } } container packet-switch-capable { when "../switching-capability = PSC-1 or ../switching-capability = PSC-2 or ../switching-capability = PSC-3 or ../switching-capability = PSC-4"; leaf minimum-lsp-bandwidth { type decimal64 { fraction-digits 2; } } leaf interface-mtu { type uint16; } } container time-division-multiplex-capable { when "../switching-capability = TDM"; leaf minimum-lsp-bandwidth { type decimal64 { fraction-digits 2; } } leaf indication { type uint16; } } }
The schema path to identify an instance is tedsrlg-attributesinterface-switching-capabilitiesTo create instances of this class use
InterfaceSwitchingCapabilitiesBuilder
.
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static boolean
bindingEquals(@NonNull InterfaceSwitchingCapabilities thisObj, Object obj)
Default implementation ofObject.equals(Object)
contract for this interface.static int
bindingHashCode(@NonNull InterfaceSwitchingCapabilities obj)
Default implementation ofObject.hashCode()
contract for this interface.static String
bindingToString(@NonNull InterfaceSwitchingCapabilities obj)
Default implementation ofObject.toString()
contract for this interface.org.opendaylight.yangtools.yang.common.Uint8
getEncoding()
Return encoding, ornull
if it is not present.@Nullable Map<MaxLspBandwidthKey,MaxLspBandwidth>
getMaxLspBandwidth()
Return maxLspBandwidth, ornull
if it is not present.PacketSwitchCapable
getPacketSwitchCapable()
Return packetSwitchCapable, ornull
if it is not present.SwitchingCapabilities
getSwitchingCapability()
Return switchingCapability, ornull
if it is not present.TimeDivisionMultiplexCapable
getTimeDivisionMultiplexCapable()
Return timeDivisionMultiplexCapable, ornull
if it is not present.default Class<InterfaceSwitchingCapabilities>
implementedInterface()
InterfaceSwitchingCapabilitiesKey
key()
default @NonNull Map<MaxLspBandwidthKey,MaxLspBandwidth>
nonnullMaxLspBandwidth()
Return maxLspBandwidth, or an empty list if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint8
requireEncoding()
Return encoding, guaranteed to be non-null.default @NonNull SwitchingCapabilities
requireSwitchingCapability()
Return switchingCapability, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
default Class<InterfaceSwitchingCapabilities> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull InterfaceSwitchingCapabilities obj)
Default implementation ofObject.hashCode()
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj
- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException
- ifobj
is null
-
bindingEquals
static boolean bindingEquals(@NonNull InterfaceSwitchingCapabilities thisObj, Object obj)
Default implementation ofObject.equals(Object)
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj
- Object acting as the receiver of equals invocationobj
- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException
- ifthisObj
is null
-
bindingToString
static String bindingToString(@NonNull InterfaceSwitchingCapabilities obj)
Default implementation ofObject.toString()
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj
- Object for which to generate toString() result.- Returns:
String
value of data modeled by this interface.- Throws:
NullPointerException
- ifobj
is null
-
key
InterfaceSwitchingCapabilitiesKey key()
- Specified by:
key
in interfaceorg.opendaylight.yangtools.yang.binding.Identifiable<InterfaceSwitchingCapabilitiesKey>
-
getSwitchingCapability
SwitchingCapabilities getSwitchingCapability()
Return switchingCapability, ornull
if it is not present.Switching Capability for this interface
- Returns:
SwitchingCapabilities
switchingCapability, ornull
if it is not present.
-
requireSwitchingCapability
default @NonNull SwitchingCapabilities requireSwitchingCapability()
Return switchingCapability, guaranteed to be non-null.Switching Capability for this interface
- Returns:
SwitchingCapabilities
switchingCapability, guaranteed to be non-null.- Throws:
NoSuchElementException
- if switchingCapability is not present
-
getEncoding
org.opendaylight.yangtools.yang.common.Uint8 getEncoding()
Return encoding, ornull
if it is not present.Encoding supported by this interface
- Returns:
Uint8
encoding, ornull
if it is not present.
-
requireEncoding
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireEncoding()
Return encoding, guaranteed to be non-null.Encoding supported by this interface
- Returns:
Uint8
encoding, guaranteed to be non-null.- Throws:
NoSuchElementException
- if encoding is not present
-
getMaxLspBandwidth
@Nullable Map<MaxLspBandwidthKey,MaxLspBandwidth> getMaxLspBandwidth()
Return maxLspBandwidth, ornull
if it is not present.Maximum LSP Bandwidth at priorities 0-7
- Returns:
Map<MaxLspBandwidthKey, MaxLspBandwidth>
maxLspBandwidth, ornull
if it is not present.
-
nonnullMaxLspBandwidth
default @NonNull Map<MaxLspBandwidthKey,MaxLspBandwidth> nonnullMaxLspBandwidth()
Return maxLspBandwidth, or an empty list if it is not present.- Returns:
Map<MaxLspBandwidthKey, MaxLspBandwidth>
maxLspBandwidth, or an empty list if it is not present.
-
getPacketSwitchCapable
PacketSwitchCapable getPacketSwitchCapable()
Return packetSwitchCapable, ornull
if it is not present.Interface has packet-switching capabilities
- Returns:
PacketSwitchCapable
packetSwitchCapable, ornull
if it is not present.
-
getTimeDivisionMultiplexCapable
TimeDivisionMultiplexCapable getTimeDivisionMultiplexCapable()
Return timeDivisionMultiplexCapable, ornull
if it is not present.Interface has time-division multiplex capabilities
- Returns:
TimeDivisionMultiplexCapable
timeDivisionMultiplexCapable, ornull
if it is not present.
-
-