Class VoltageSpikeSensor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTriggered()
      Determines if the switch is triggered
      void reset()
      Reset the current spike sensor to prepare it to sense a new spike.
      • Methods inherited from class java.lang.Object

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

      • VoltageSpikeSensor

        public VoltageSpikeSensor​(VoltageTripSensor voltageTripSensor)
        Triggers after a spike in the voltage
        Parameters:
        voltageTripSensor - The voltage trip sensor (HighVoltageSensors detect upward spikes, LowVoltageSensors downward spikes)
    • Method Detail

      • isTriggered

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

        public void reset()
        Reset the current spike sensor to prepare it to sense a new spike.
        Specified by:
        reset in interface ResettableSwitch