Package com.thegongoliers.input.voltage
Class HighVoltageSensor
- java.lang.Object
-
- com.thegongoliers.input.voltage.VoltageTripSensor
-
- com.thegongoliers.input.voltage.HighVoltageSensor
-
- All Implemented Interfaces:
Switch
public class HighVoltageSensor extends VoltageTripSensor
-
-
Field Summary
-
Fields inherited from class com.thegongoliers.input.voltage.VoltageTripSensor
sensor, thresh
-
-
Constructor Summary
Constructors Constructor Description HighVoltageSensor(VoltageSensor voltageSensor, double threshold)
Triggers when the voltage exceeds a threshold
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTriggered()
Determines if the voltage is greater or equal to the threshold
-
-
-
Constructor Detail
-
HighVoltageSensor
public HighVoltageSensor(VoltageSensor voltageSensor, double threshold)
Triggers when the voltage exceeds a threshold- Parameters:
voltageSensor
- A voltage sensorthreshold
- A threshold to trigger in Volts.
-
-