Interface Metric

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Metric>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<MetricObject>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, Object, ObjectHeader

    public interface Metric
    extends org.opendaylight.yangtools.yang.binding.ChildOf<MetricObject>, org.opendaylight.yangtools.yang.binding.Augmentable<Metric>, Object

    This class represents the following YANG schema fragment defined in module pcep-types

     container metric {
       uses object;
       leaf metric-type {
         type uint8;
       }
       leaf bound {
         type boolean;
         default false;
       }
       leaf computed {
         type boolean;
         default false;
       }
       leaf value {
         type ieee754:float32;
       }
     }
     
    The schema path to identify an instance is pcep-types/metric-object/metric

    To create instances of this class use MetricBuilder.

    See Also:
    MetricBuilder
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<Metric> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
        Specified by:
        implementedInterface in interface Object
        Specified by:
        implementedInterface in interface ObjectHeader
      • getMetricType

        @Nullable org.opendaylight.yangtools.yang.common.Uint8 getMetricType()
        Returns:
        org.opendaylight.yangtools.yang.common.Uint8 metricType, or null if not present
      • isBound

        @Nullable Boolean isBound()
        Returns:
        java.lang.Boolean bound, or null if not present
      • isComputed

        @Nullable Boolean isComputed()
        Returns:
        java.lang.Boolean computed, or null if not present
      • getValue

        @Nullable Float32 getValue()
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 value, or null if not present