Class LowVoltageSensor

    • Constructor Summary

      Constructors 
      Constructor Description
      LowVoltageSensor​(VoltageSensor voltageSensor, double threshold)
      Triggers when the voltage dips below a threshold
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTriggered()
      Determines if the switch is triggered
      • Methods inherited from class java.lang.Object

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

      • LowVoltageSensor

        public LowVoltageSensor​(VoltageSensor voltageSensor,
                                double threshold)
        Triggers when the voltage dips below a threshold
        Parameters:
        voltageSensor - A voltage sensor
        threshold - A threshold to trigger in Volts.
    • Method Detail

      • isTriggered

        public boolean isTriggered()
        Description copied from interface: Switch
        Determines if the switch is triggered
        Returns:
        true if the switch is triggered, false otherwise