Package com.thegongoliers.input.current
Class HighCurrentSensor
- java.lang.Object
-
- com.thegongoliers.input.current.CurrentTripSensor
-
- com.thegongoliers.input.current.HighCurrentSensor
-
- All Implemented Interfaces:
Switch
public class HighCurrentSensor extends CurrentTripSensor
-
-
Field Summary
-
Fields inherited from class com.thegongoliers.input.current.CurrentTripSensor
sensor, thresh
-
-
Constructor Summary
Constructors Constructor Description HighCurrentSensor(CurrentSensor currentSensor, double threshold)
Triggers when the current exceeds 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
-
HighCurrentSensor
public HighCurrentSensor(CurrentSensor currentSensor, double threshold)
Triggers when the current exceeds 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
-
-