Interface PlatformComponentPowerState
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator")
public interface PlatformComponentPowerState
extends org.opendaylight.yangtools.yang.binding.DataObject
Power-related operational state for device components.
This class represents the following YANG schema fragment defined in module openconfig-platform
grouping platform-component-power-state {
leaf allocated-power {
type uint32;
units watts;
}
leaf used-power {
type uint32;
units watts;
}
}
-
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 TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint32Return allocatedPower, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return usedPower, ornullif it is not present.Class<? extends PlatformComponentPowerState>default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return allocatedPower, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return usedPower, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends PlatformComponentPowerState> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getAllocatedPower
org.opendaylight.yangtools.yang.common.Uint32 getAllocatedPower()Return allocatedPower, ornullif it is not present.Power allocated by the system for the component.- Returns:
Uint32allocatedPower, ornullif it is not present.
-
requireAllocatedPower
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireAllocatedPower()Return allocatedPower, guaranteed to be non-null.Power allocated by the system for the component.- Returns:
Uint32allocatedPower, guaranteed to be non-null.- Throws:
NoSuchElementException- if allocatedPower is not present
-
getUsedPower
org.opendaylight.yangtools.yang.common.Uint32 getUsedPower()Return usedPower, ornullif it is not present.Actual power used by the component.- Returns:
Uint32usedPower, ornullif it is not present.
-
requireUsedPower
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireUsedPower()Return usedPower, guaranteed to be non-null.Actual power used by the component.- Returns:
Uint32usedPower, guaranteed to be non-null.- Throws:
NoSuchElementException- if usedPower is not present
-