Package com.thegongoliers.input.current
Class LowCurrentSensor
- java.lang.Object
-
- com.thegongoliers.input.current.CurrentTripSensor
-
- com.thegongoliers.input.current.LowCurrentSensor
-
- All Implemented Interfaces:
Switch
public class LowCurrentSensor extends CurrentTripSensor
-
-
Field Summary
-
Fields inherited from class com.thegongoliers.input.current.CurrentTripSensor
sensor, thresh
-
-
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
-
-
-
Constructor Detail
-
LowCurrentSensor
public LowCurrentSensor(CurrentSensor currentSensor, double threshold)
Triggers when the current dips below a threshold- Parameters:
currentSensor
- A current sensorthreshold
- 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
-
-