RoboJDETM v2.0

com.ridgesoft.robotics
Interface PushButton

All Known Implementing Classes:
BasicPushButton

public interface PushButton

Generic interface to a push button.


Method Summary
 boolean isPressed()
          Gets the current state of the button.
 void waitPressed()
          Waits for the button to be pressed.
 void waitReleased()
          Waits for the button to be released.
 

Method Detail

isPressed

boolean isPressed()
Gets the current state of the button.

Returns:
true if the button is pressed, otherwise false

waitPressed

void waitPressed()
Waits for the button to be pressed.

Implementing classes should sleep rather than hog the CPU while waiting for the button to be released.


waitReleased

void waitReleased()
Waits for the button to be released.

Implementing classes should sleep rather than hog the CPU while waiting for the button to be released.


RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com