Class LowCurrentSensor

    • Constructor Summary

      Constructors 
      Constructor Description
      LowCurrentSensor​(CurrentSensor currentSensor, double threshold)
      Triggers when the current 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

      • LowCurrentSensor

        public LowCurrentSensor​(CurrentSensor currentSensor,
                                double threshold)
        Triggers when the current dips below a threshold
        Parameters:
        currentSensor - A current sensor
        threshold - A threshold to trigger in Amps.
    • 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