org.openuat.channel.oob
Class ShortVibrationToButtonChannel
java.lang.Object
org.openuat.channel.oob.ButtonChannel
org.openuat.channel.oob.ShortVibrationToButtonChannel
- All Implemented Interfaces:
- OOBChannel, ButtonInputHandler
public class ShortVibrationToButtonChannel
- extends ButtonChannel
This channel is a transfer channel. It transmits data
between devices by giving a vibration signal to the user. The user
should press the button once for each signal. The signal
lasts for 500 ms.
The smallest considered time unit for this channel is set to 1000 ms.
- Version:
- 1.0
- Author:
- Lukas Huser
| Fields inherited from class org.openuat.channel.oob.ButtonChannel |
BITS_PER_INTERVAL, captureDisplayText, doRoundDown, impl, inputMode, logger, MESSAGE_LENGTH, messageHandler, minTimeUnit, minTimeUnit2, MODE_PRESS, MODE_PRESS_RELEASE, shortDescription, showFeedback, statisticsLogger, TOTAL_SIGNAL_COUNT, transmitDisplayText, useCarry |
|
Method Summary |
void |
transmit(byte[] message)
Transmits provided data over this channel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ShortVibrationToButtonChannel
public ShortVibrationToButtonChannel(ButtonChannelImpl impl)
- Creates a new instance of this channel.
This constructor is equivalent to
ShortVibrationToButtonChannel(impl, false).
- Parameters:
impl - A suitable ButtonChannelImpl instance
to handle platform dependent method calls.
ShortVibrationToButtonChannel
public ShortVibrationToButtonChannel(ButtonChannelImpl impl,
boolean usePrepareSignal)
- Creates a new instance of this channel.
- Parameters:
impl - A suitable ButtonChannelImpl instance
to handle platform dependent method calls.usePrepareSignal - Should a preparatory signal be sent
before a real signal is emitted?
transmit
public void transmit(byte[] message)
- Transmits provided data over this channel.
Note: this method does not block the caller and returns
immediately.
- Parameters:
message - The Data to be sent over this channel.
2005-2009, Rene Mayrhofer.