Interface Constraints
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<Constraints>,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.ChildOf<PathConstraints>,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.DataObject,Diversity,org.opendaylight.yangtools.binding.Grouping
@Generated("mdsal-binding-generator")
public interface Constraints
extends org.opendaylight.yangtools.binding.ChildOf<PathConstraints>, org.opendaylight.yangtools.binding.Augmentable<Constraints>, Diversity
This class represents the following YANG schema fragment defined in module path-computation
container constraints {
leaf metric {
type uint32;
}
leaf te-metric {
type uint32;
}
leaf delay {
type gr:delay;
}
leaf jitter {
type gr:delay;
}
leaf loss {
type gr:loss;
}
leaf admin-group {
type uint32;
}
leaf address-family {
type address-family;
}
leaf class-type {
type uint8 {
range 0..7;
}
}
leaf bandwidth {
type gr:decimal-bandwidth;
}
list include-route {
leaf ipv4 {
when "../../address-family = 0 or ../../address-family = 2";
type inet:ipv4-address;
}
leaf ipv6 {
when "../../address-family = 1 or ../../address-family = 3";
type inet:ipv6-address;
}
ordered-by user;
}
list exclude-route {
leaf ipv4 {
when "../../address-family = 0 or ../../address-family = 2";
type inet:ipv4-address;
}
leaf ipv6 {
when "../../address-family = 1 or ../../address-family = 3";
type inet:ipv6-address;
}
ordered-by user;
}
uses diversity;
}
To create instances of this class use ConstraintsBuilder.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbindingEquals(@NonNull Constraints thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Constraints obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Constraints obj) Default implementation ofObject.toString()contract for this interface.Return addressFamily, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return adminGroup, ornullif it is not present.Return bandwidth, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return classType, ornullif it is not present.getDelay()Return delay, ornullif it is not present.@Nullable List<ExcludeRoute> Return excludeRoute, ornullif it is not present.@Nullable List<IncludeRoute> Return includeRoute, ornullif it is not present.Return jitter, ornullif it is not present.getLoss()Return loss, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return metric, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return teMetric, ornullif it is not present.default Class<Constraints> default @NonNull List<ExcludeRoute> Return excludeRoute, or an empty list if it is not present.default @NonNull List<IncludeRoute> Return includeRoute, or an empty list if it is not present.default @NonNull AddressFamilyReturn addressFamily, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return adminGroup, guaranteed to be non-null.default @NonNull DecimalBandwidthReturn bandwidth, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return classType, guaranteed to be non-null.default @NonNull DelayReturn delay, guaranteed to be non-null.default @NonNull DelayReturn jitter, guaranteed to be non-null.default @NonNull LossReturn loss, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return metric, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return teMetric, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentationsMethods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.path.computation.rev251022.Diversity
getPathDiversity, nonnullPathDiversity
-
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:
implementedInterfacein interfaceorg.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.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- ifobjisnull
-
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- ifthisObjisnull
-
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:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjisnull
-
getMetric
org.opendaylight.yangtools.yang.common.Uint32 getMetric()Return metric, ornullif it is not present.Maximum end to end IGP metric- Returns:
Uint32metric, ornullif it is not present.
-
requireMetric
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireMetric()Return metric, guaranteed to be non-null.Maximum end to end IGP metric- Returns:
Uint32metric, guaranteed to be non-null.- Throws:
NoSuchElementException- if metric is not present
-
getTeMetric
org.opendaylight.yangtools.yang.common.Uint32 getTeMetric()Return teMetric, ornullif it is not present.Maximum end to end Traffic Engineering metric- Returns:
Uint32teMetric, ornullif it is not present.
-
requireTeMetric
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireTeMetric()Return teMetric, guaranteed to be non-null.Maximum end to end Traffic Engineering metric- Returns:
Uint32teMetric, guaranteed to be non-null.- Throws:
NoSuchElementException- if teMetric is not present
-
getDelay
Delay getDelay()Return delay, ornullif it is not present.Maximum end to end delay- Returns:
Delaydelay, ornullif it is not present.
-
requireDelay
Return delay, guaranteed to be non-null.Maximum end to end delay- Returns:
Delaydelay, guaranteed to be non-null.- Throws:
NoSuchElementException- if delay is not present
-
getJitter
Delay getJitter()Return jitter, ornullif it is not present.Maximum delay variation for selected edges- Returns:
Delayjitter, ornullif it is not present.
-
requireJitter
Return jitter, guaranteed to be non-null.Maximum delay variation for selected edges- Returns:
Delayjitter, guaranteed to be non-null.- Throws:
NoSuchElementException- if jitter is not present
-
getLoss
Loss getLoss()Return loss, ornullif it is not present.Maximum loss for selected edges- Returns:
Lossloss, ornullif it is not present.
-
requireLoss
Return loss, guaranteed to be non-null.Maximum loss for selected edges- Returns:
Lossloss, guaranteed to be non-null.- Throws:
NoSuchElementException- if loss is not present
-
getAdminGroup
org.opendaylight.yangtools.yang.common.Uint32 getAdminGroup()Return adminGroup, ornullif it is not present.Admin group to select edges- Returns:
Uint32adminGroup, ornullif it is not present.
-
requireAdminGroup
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireAdminGroup()Return adminGroup, guaranteed to be non-null.Admin group to select edges- Returns:
Uint32adminGroup, guaranteed to be non-null.- Throws:
NoSuchElementException- if adminGroup is not present
-
getAddressFamily
AddressFamily getAddressFamily()Return addressFamily, ornullif it is not present.- Returns:
AddressFamilyaddressFamily, ornullif it is not present.
-
requireAddressFamily
Return addressFamily, guaranteed to be non-null.- Returns:
AddressFamilyaddressFamily, guaranteed to be non-null.- Throws:
NoSuchElementException- if addressFamily is not present
-
getClassType
org.opendaylight.yangtools.yang.common.Uint8 getClassType()Return classType, ornullif it is not present.Class Type for bandwidth constraints- Returns:
Uint8classType, ornullif it is not present.
-
requireClassType
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireClassType()Return classType, guaranteed to be non-null.Class Type for bandwidth constraints- Returns:
Uint8classType, guaranteed to be non-null.- Throws:
NoSuchElementException- if classType is not present
-
getBandwidth
DecimalBandwidth getBandwidth()Return bandwidth, ornullif it is not present.Requested bandwidth for the computed path- Returns:
DecimalBandwidthbandwidth, ornullif it is not present.
-
requireBandwidth
Return bandwidth, guaranteed to be non-null.Requested bandwidth for the computed path- Returns:
DecimalBandwidthbandwidth, guaranteed to be non-null.- Throws:
NoSuchElementException- if bandwidth is not present
-
getIncludeRoute
@Nullable List<IncludeRoute> getIncludeRoute()Return includeRoute, ornullif it is not present.Speficy routes which must be included in the computed path, i.e. IRO- Returns:
List<IncludeRoute>includeRoute, ornullif it is not present.
-
nonnullIncludeRoute
Return includeRoute, or an empty list if it is not present.- Returns:
List<IncludeRoute>includeRoute, or an empty list if it is not present.
-
getExcludeRoute
@Nullable List<ExcludeRoute> getExcludeRoute()Return excludeRoute, ornullif it is not present.Speficy routes which must be excluded in the computed path, i.e. XRO- Returns:
List<ExcludeRoute>excludeRoute, ornullif it is not present.
-
nonnullExcludeRoute
Return excludeRoute, or an empty list if it is not present.- Returns:
List<ExcludeRoute>excludeRoute, or an empty list if it is not present.
-