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.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,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.KeyAware<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.KeyAware<InterfaceSwitchingCapabilitiesKey>
List of interface capabilities for this interface
This 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; } } }
To create instances of this class use InterfaceSwitchingCapabilitiesBuilder
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Return encoding, ornull
if it is not present.@Nullable Map<MaxLspBandwidthKey,
MaxLspBandwidth> Return maxLspBandwidth, ornull
if it is not present.Return packetSwitchCapable, ornull
if it is not present.Return switchingCapability, ornull
if it is not present.Return timeDivisionMultiplexCapable, ornull
if it is not present.default Class<InterfaceSwitchingCapabilities>
key()
default @NonNull Map<MaxLspBandwidthKey,
MaxLspBandwidth> Return maxLspBandwidth, or an empty list if it is not present.@NonNull PacketSwitchCapable
Return packetSwitchCapable, or an empty instance if it is not present.@NonNull TimeDivisionMultiplexCapable
Return timeDivisionMultiplexCapable, or an empty instance if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint8
Return encoding, guaranteed to be non-null.default @NonNull SwitchingCapabilities
Return switchingCapability, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
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
isnull
-
bindingEquals
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
isnull
-
bindingToString
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
isnull
-
key
- Specified by:
key
in interfaceorg.opendaylight.yangtools.yang.binding.KeyAware<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
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
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.
-
nonnullPacketSwitchCapable
@NonNull PacketSwitchCapable nonnullPacketSwitchCapable()Return packetSwitchCapable, or an empty instance if it is not present.- Returns:
PacketSwitchCapable
packetSwitchCapable, or an empty instance 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.
-
nonnullTimeDivisionMultiplexCapable
@NonNull TimeDivisionMultiplexCapable nonnullTimeDivisionMultiplexCapable()Return timeDivisionMultiplexCapable, or an empty instance if it is not present.- Returns:
TimeDivisionMultiplexCapable
timeDivisionMultiplexCapable, or an empty instance if it is not present.
-