Class BatteryState

  • All Implemented Interfaces:
    Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.ToString2

    public class BatteryState
    extends AbstractDeviceComponentState
    implements Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo2, org.jvnet.jaxb2_commons.lang.ToString2
    State of a battery of an MDS. The current power source is designated by ./@ActivationState: - If ./@ActivationState equals "On", the device is running on battery - If ./@ActivationState equals "Off", the device is in mains operation and currently not able to be run on battery - If ./@ActivationState equals "StndBy", the device is in mains operation and can be switched to run on battery - If ./@ActivationState equals "Fail", the battery has a malfunction. Detailed error information SHOULD be communicated by using an ALERT SYSTEM. Enumerations "Shtdn" and "NotRdy" are undefined for BatteryState.

    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://standards.ieee.org/downloads/11073/11073-10207-2017/participant}AbstractDeviceComponentState">
           <sequence>
             <element name="CapacityRemaining" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}Measurement" minOccurs="0"/>
             <element name="Voltage" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}Measurement" minOccurs="0"/>
             <element name="Current" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}Measurement" minOccurs="0"/>
             <element name="Temperature" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}Measurement" minOccurs="0"/>
             <element name="RemainingBatteryTime" type="{http://standards.ieee.org/downloads/11073/11073-10207-2017/participant}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>
     
    • Constructor Detail

      • BatteryState

        public BatteryState()
    • Method Detail

      • getCapacityRemaining

        public Measurement getCapacityRemaining()
        Gets the value of the capacityRemaining property.
        Returns:
        possible object is Measurement
      • setCapacityRemaining

        public void setCapacityRemaining​(Measurement value)
        Sets the value of the capacityRemaining property.
        Parameters:
        value - allowed object is Measurement
      • getVoltage

        public Measurement getVoltage()
        Gets the value of the voltage property.
        Returns:
        possible object is Measurement
      • setVoltage

        public void setVoltage​(Measurement value)
        Sets the value of the voltage property.
        Parameters:
        value - allowed object is Measurement
      • getCurrent

        public Measurement getCurrent()
        Gets the value of the current property.
        Returns:
        possible object is Measurement
      • setCurrent

        public void setCurrent​(Measurement value)
        Sets the value of the current property.
        Parameters:
        value - allowed object is Measurement
      • getTemperature

        public Measurement getTemperature()
        Gets the value of the temperature property.
        Returns:
        possible object is Measurement
      • setTemperature

        public void setTemperature​(Measurement value)
        Sets the value of the temperature property.
        Parameters:
        value - allowed object is Measurement
      • getRemainingBatteryTime

        public Measurement getRemainingBatteryTime()
        Gets the value of the remainingBatteryTime property.
        Returns:
        possible object is Measurement
      • setRemainingBatteryTime

        public void setRemainingBatteryTime​(Measurement value)
        Sets the value of the remainingBatteryTime property.
        Parameters:
        value - allowed object is Measurement
      • getChargeCycles

        public Long getChargeCycles()
        Gets the value of the chargeCycles property.
        Returns:
        possible object is Long
      • setChargeCycles

        public void setChargeCycles​(Long value)
        Sets the value of the chargeCycles property.
        Parameters:
        value - allowed object is Long
      • copyTo

        public Object copyTo​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                             Object target,
                             org.jvnet.jaxb2_commons.lang.CopyStrategy2 strategy)
        Specified by:
        copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTo2
        Overrides:
        copyTo in class AbstractDeviceComponentState
      • append

        public StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                    StringBuilder buffer,
                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class AbstractDeviceComponentState
      • appendFields

        public StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                          StringBuilder buffer,
                                          org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class AbstractDeviceComponentState