Class CurrentSpikeSensor

    • 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

      • CurrentSpikeSensor

        public CurrentSpikeSensor​(CurrentTripSensor currentTripSensor)
        Triggers after a spike in the current
        Parameters:
        currentTripSensor - The current trip sensor (HighCurrentSensors detect upward spikes, LowCurrentSensors 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