Package xbot.common.controls.actuators
Class XSolenoid
java.lang.Object
xbot.common.controls.actuators.XSolenoid
- All Implemented Interfaces:
XBaseIO
- Direct Known Subclasses:
MockSolenoid,SolenoidWPIAdapter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanget()booleanintprotected abstract intprotected abstract voidset(boolean on) voidsetInverted(boolean isInverted) voidsetOn(boolean on)
-
Field Details
-
isInverted
protected boolean isInverted -
channel
protected final int channel
-
-
Constructor Details
-
XSolenoid
-
-
Method Details
-
setOn
public void setOn(boolean on) -
getAdjusted
public boolean getAdjusted() -
setInverted
public void setInverted(boolean isInverted) -
getChannel
public int getChannel()- Specified by:
getChannelin interfaceXBaseIO
-
set
protected abstract void set(boolean on) -
get
protected abstract boolean get() -
getMaxSupportedChannel
protected abstract int getMaxSupportedChannel()
-