public interface SimulatedPushButton extends PushButton
PUSH_AND_HOLD
DEFAULT_HEIGHT, DEFAULT_WIDTH, DEVICE_SERIAL_NUMBER, FAULT_NO, FAULT_PROPERTY_NAME, FAULT_UNKNOWN, FAULT_YES, LOCATION_PROPERTY_NAME, LOCATION_UNKNOWN, STATE_ACTIVATED, STATE_DEACTIVATED, STATE_PROPERTY_NAME, STATE_UNKNOWN
Modifier and Type | Method and Description |
---|---|
boolean |
pushAndHold(long timeout)
Push the button and hold for a timeout.
|
void |
pushAndRelease()
Push the button and release it.
|
isPushed
addListener, constainsProperty, enterInZones, getFault, getProperties, getPropertyValue, getSerialNumber, getState, hasPropertyValue, leavingZones, removeListener, removeProperty, setFault, setPropertyValue, setState
boolean pushAndHold(long timeout)
timeout,
- the time the button remains pressed.true
when the instruction is taken into account.
false
if not, For example, button is already pushed.void pushAndRelease()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.