public class BatteryState extends AbstractDeviceComponentState
Java class for BatteryState complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="BatteryState">
<complexContent>
<extension base="{http://p11073-10207/draft10/pm/2017/10/05}AbstractDeviceComponentState">
<sequence>
<element name="CapacityRemaining" type="{http://p11073-10207/draft10/pm/2017/10/05}Measurement" minOccurs="0"/>
<element name="Voltage" type="{http://p11073-10207/draft10/pm/2017/10/05}Measurement" minOccurs="0"/>
<element name="Current" type="{http://p11073-10207/draft10/pm/2017/10/05}Measurement" minOccurs="0"/>
<element name="Temperature" type="{http://p11073-10207/draft10/pm/2017/10/05}Measurement" minOccurs="0"/>
<element name="RemainingBatteryTime" type="{http://p11073-10207/draft10/pm/2017/10/05}Measurement" minOccurs="0"/>
</sequence>
<attribute name="ChargeStatus">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Ful"/>
<enumeration value="ChB"/>
<enumeration value="DisChB"/>
<enumeration value="DEB"/>
</restriction>
</simpleType>
</attribute>
<attribute name="ChargeCycles" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Measurement |
capacityRemaining |
protected Long |
chargeCycles |
protected String |
chargeStatus |
protected Measurement |
current |
protected Measurement |
remainingBatteryTime |
protected Measurement |
temperature |
protected Measurement |
voltage |
activationState, calibrationInfo, nextCalibration, operatingCycles, operatingHours, physicalConnectordescriptorHandle, descriptorVersion, extension, stateVersion| Constructor and Description |
|---|
BatteryState() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
Measurement |
getCapacityRemaining()
Gets the value of the capacityRemaining property.
|
Long |
getChargeCycles()
Gets the value of the chargeCycles property.
|
String |
getChargeStatus()
Gets the value of the chargeStatus property.
|
Measurement |
getCurrent()
Gets the value of the current property.
|
Measurement |
getRemainingBatteryTime()
Gets the value of the remainingBatteryTime property.
|
Measurement |
getTemperature()
Gets the value of the temperature property.
|
Measurement |
getVoltage()
Gets the value of the voltage property.
|
int |
hashCode() |
void |
setCapacityRemaining(Measurement value)
Sets the value of the capacityRemaining property.
|
void |
setChargeCycles(Long value)
Sets the value of the chargeCycles property.
|
void |
setChargeStatus(String value)
Sets the value of the chargeStatus property.
|
void |
setCurrent(Measurement value)
Sets the value of the current property.
|
void |
setRemainingBatteryTime(Measurement value)
Sets the value of the remainingBatteryTime property.
|
void |
setTemperature(Measurement value)
Sets the value of the temperature property.
|
void |
setVoltage(Measurement value)
Sets the value of the voltage property.
|
String |
toString() |
getActivationState, getCalibrationInfo, getNextCalibration, getOperatingCycles, getOperatingHours, getPhysicalConnector, setActivationState, setCalibrationInfo, setNextCalibration, setOperatingCycles, setOperatingHours, setPhysicalConnectorgetDescriptorHandle, getDescriptorVersion, getExtension, getStateVersion, setDescriptorHandle, setDescriptorVersion, setExtension, setStateVersionprotected Measurement capacityRemaining
protected Measurement voltage
protected Measurement current
protected Measurement temperature
protected Measurement remainingBatteryTime
protected String chargeStatus
protected Long chargeCycles
public Measurement getCapacityRemaining()
Measurementpublic void setCapacityRemaining(Measurement value)
value - allowed object is
Measurementpublic Measurement getVoltage()
Measurementpublic void setVoltage(Measurement value)
value - allowed object is
Measurementpublic Measurement getCurrent()
Measurementpublic void setCurrent(Measurement value)
value - allowed object is
Measurementpublic Measurement getTemperature()
Measurementpublic void setTemperature(Measurement value)
value - allowed object is
Measurementpublic Measurement getRemainingBatteryTime()
Measurementpublic void setRemainingBatteryTime(Measurement value)
value - allowed object is
Measurementpublic String getChargeStatus()
Stringpublic void setChargeStatus(String value)
value - allowed object is
Stringpublic Long getChargeCycles()
Longpublic void setChargeCycles(Long value)
value - allowed object is
Longpublic String toString()
toString in class AbstractDeviceComponentStatepublic boolean equals(Object that)
equals in class AbstractDeviceComponentStatepublic int hashCode()
hashCode in class AbstractDeviceComponentStateCopyright © 2017. All rights reserved.