|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.robotics.BasicPushButton
public class BasicPushButton
Implements the PushButton interface using a DigitalInput to read the button’s status.
Constructor Summary | |
---|---|
BasicPushButton(DigitalInput input)
Construct a BasicPushButton for a button which pulls the input low when pressed. |
Method Summary | |
---|---|
boolean |
isPressed()
Returns true if the button is currently pressed. |
void |
waitPressed()
Waits for the button to be pressed. |
void |
waitReleased()
Waits for the button to be released. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
public BasicPushButton(DigitalInput input)
input
- the DigitalInput used by the push buttonMethod Detail |
---|
public boolean isPressed()
isPressed
in interface PushButton
public void waitPressed()
waitPressed
in interface PushButton
public void waitReleased()
waitReleased
in interface PushButton
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |