Class BatteryVoltageSensor

  • All Implemented Interfaces:
    VoltageSensor

    public class BatteryVoltageSensor
    extends java.lang.Object
    implements VoltageSensor
    A voltage sensor which monitors the voltage of the battery.
    • Constructor Summary

      Constructors 
      Constructor Description
      BatteryVoltageSensor()
      Monitor the voltage of the battery.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getVoltage()
      Get the voltage in Volts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatteryVoltageSensor

        public BatteryVoltageSensor()
        Monitor the voltage of the battery.
    • Method Detail

      • getVoltage

        public double getVoltage()
        Description copied from interface: VoltageSensor
        Get the voltage in Volts.
        Specified by:
        getVoltage in interface VoltageSensor
        Returns:
        The voltage of the sensor