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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
get()
boolean
int
protected abstract int
protected abstract void
set
(boolean on) void
setInverted
(boolean isInverted) void
setOn
(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:
getChannel
in interfaceXBaseIO
-
set
protected abstract void set(boolean on) -
get
protected abstract boolean get() -
getMaxSupportedChannel
protected abstract int getMaxSupportedChannel()
-