public class DefaultMetric extends org.onosproject.yang.model.InnerModelObject implements Metric, org.onosproject.yang.model.MultiInstanceObject<MetricKeys>
valueLeafFlags identify the leafs whose value are explicitly set Applicable in protocol edit and query operation.
org.onosproject.yang.model.ModelObject.ModelObjectTypeMetric.LeafIdentifier| Modifier and Type | Field and Description |
|---|---|
protected GoalEnum |
goal |
protected Class<? extends TePathNumericalProperty> |
name |
protected BitSet |
valueLeafFlags |
protected short |
weight |
| Constructor and Description |
|---|
DefaultMetric()
Creates an instance of defaultMetric.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GoalEnum |
goal()
Returns the attribute goal.
|
void |
goal(GoalEnum goal)
Sets the attribute goal.
|
int |
hashCode() |
boolean |
isLeafValueSet(Metric.LeafIdentifier leaf)
Checks if the leaf value is set.
|
Class<? extends TePathNumericalProperty> |
name()
Returns the attribute name.
|
void |
name(Class<? extends TePathNumericalProperty> name)
Sets the attribute name.
|
String |
toString() |
BitSet |
valueLeafFlags()
Returns the attribute valueLeafFlags.
|
short |
weight()
Returns the attribute weight.
|
void |
weight(short weight)
Sets the attribute weight.
|
addAugmentation, augmentation, augmentations, removeAugmentationprotected Class<? extends TePathNumericalProperty> name
protected GoalEnum goal
protected short weight
protected BitSet valueLeafFlags
public Class<? extends TePathNumericalProperty> name()
Metricpublic short weight()
Metricpublic BitSet valueLeafFlags()
MetricvalueLeafFlags in interface Metricpublic void name(Class<? extends TePathNumericalProperty> name)
Metricpublic void goal(GoalEnum goal)
Metricpublic void weight(short weight)
Metricpublic boolean isLeafValueSet(Metric.LeafIdentifier leaf)
MetricisLeafValueSet in interface Metricleaf - leaf whose value status needs to checkedCopyright © 2018. All rights reserved.