org.openuat.channel.oob
Class PowerBarToButtonChannel

java.lang.Object
  extended by org.openuat.channel.oob.ButtonChannel
      extended by org.openuat.channel.oob.PowerBarToButtonChannel
All Implemented Interfaces:
OOBChannel, ButtonInputHandler

public class PowerBarToButtonChannel
extends ButtonChannel

This channel is a transfer channel. It transmits data between devices by displaying an interval pattern on the screen. Always two intervals together form a 'power bar': the lower interval is painted gray, the upper one is colored. A progress gauge keeps growing over the pattern and the user should press and hold the button on the higher interval of each power bar an release the button on the lower ones.
The smallest considered time unit for this channel is set to 600 ms.

Version:
1.0
Author:
Lukas Huser

Field Summary
 
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
 
Fields inherited from interface org.openuat.authentication.OOBChannel
AUDIO_CHANNEL, BUTTON_CHANNEL, VIDEO_CHANNEL
 
Constructor Summary
PowerBarToButtonChannel(ButtonChannelImpl impl)
          Creates a new instance of this channel.
 
Method Summary
 void transmit(byte[] message)
          Transmits provided data over this channel.
 
Methods inherited from class org.openuat.channel.oob.ButtonChannel
buttonPressed, buttonReleased, bytesToIntervals, capture, intervalsToBytes, setOOBMessageHandler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PowerBarToButtonChannel

public PowerBarToButtonChannel(ButtonChannelImpl impl)
Creates a new instance of this channel.

Parameters:
impl - A suitable ButtonChannelImpl instance to handle platform dependent method calls.
Method Detail

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.