Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.metric.object
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/metricTo create instances of this class use
MetricBuilder
.- See Also:
MetricBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint8
getMetricType()
Float32
getValue()
default Class<Metric>
implementedInterface()
Boolean
isBound()
Boolean
isComputed()
-
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.ObjectHeader
isIgnore, isProcessingRule
-
-
-
-
Method Detail
-
implementedInterface
default Class<Metric> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceObject
- Specified by:
implementedInterface
in interfaceObjectHeader
-
getMetricType
org.opendaylight.yangtools.yang.common.Uint8 getMetricType()
- Returns:
org.opendaylight.yangtools.yang.common.Uint8
metricType
, ornull
if not present
-
isBound
Boolean isBound()
- Returns:
java.lang.Boolean
bound
, ornull
if not present
-
isComputed
Boolean isComputed()
- Returns:
java.lang.Boolean
computed
, ornull
if not present
-
getValue
Float32 getValue()
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32
value
, ornull
if not present
-
-