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