2008-07-29 1.1.0

org.eclipse.soda.dk.barcode.reader.transport
Class BarcodeReaderTransport

java.lang.Object
  extended by ConnectionTransport
      extended by org.eclipse.soda.dk.barcode.reader.transport.BarcodeReaderTransport
All Implemented Interfaces:
BarcodeReaderTransportService

public class BarcodeReaderTransport
extends ConnectionTransport
implements BarcodeReaderTransportService

Standard Barcode Reader.

The Device Kit properties keys and default values.

barcodereadertransport.baudrate 9600
barcodereadertransport.parity none
barcodereadertransport.writetotaltimeout 100
barcodereadertransport.softwareflowcontrol 0
barcodereadertransport.stopbits 1
barcodereadertransport.hardwareflowcontrol 0
barcodereadertransport.readintervaltimeout 50
barcodereadertransport.readtotaltimeout 1000
barcodereadertransport.comport 1
barcodereadertransport.databits 8
barcodereadertransport.localport -1
barcodereadertransport.readtimeout 1000
barcodereadertransport.host localhost
barcodereadertransport.readsize -1
barcodereadertransport.remoteport 8901
barcodereadertransport.linger -1
barcodereadertransport.writesize -1
barcodereadertransport.connection serial
barcodereadertransport.MessageMinimumSize 1
barcodereadertransport.baudrate=9600 barcodereadertransport.parity=none barcodereadertransport.writetotaltimeout=100 barcodereadertransport.softwareflowcontrol=0 barcodereadertransport.stopbits=1 barcodereadertransport.hardwareflowcontrol=0 barcodereadertransport.readintervaltimeout=50 barcodereadertransport.readtotaltimeout=1000 barcodereadertransport.comport=1 barcodereadertransport.databits=8 barcodereadertransport.localport=-1 barcodereadertransport.readtimeout=1000 barcodereadertransport.host=localhost barcodereadertransport.readsize=-1 barcodereadertransport.remoteport=8901 barcodereadertransport.linger=-1 barcodereadertransport.writesize=-1 barcodereadertransport.connection=serial barcodereadertransport.MessageMinimumSize=1

The list of exported services:

Version:
1.1.0
See Also:
BarcodeReaderTransportService, org.eclipse.soda.dk.transport.service.TransportService

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
 
Fields inherited from interface org.eclipse.soda.dk.barcode.reader.transport.service.BarcodeReaderTransportService
DEFAULT_BAUDRATE, DEFAULT_COMPORT, DEFAULT_DATABITS, DEFAULT_HOST, DEFAULT_HWFLOW, DEFAULT_LINGER, DEFAULT_LOCALPORT, DEFAULT_MESSAGEMINIMUMSIZE, DEFAULT_PARITY, DEFAULT_READINTERVALTIMEOUT, DEFAULT_READSIZE, DEFAULT_READTIMEOUT, DEFAULT_READTOTALTIMEOUT, DEFAULT_REMOTEPORT, DEFAULT_STOPBITS, DEFAULT_SWFLOW, DEFAULT_WRITESIZE, DEFAULT_WRITETOTALTIMEOUT, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, MESSAGE_MINIMUM_SIZE, MESSAGE_MINIMUM_SIZE_DEFAULT, MESSAGEMINIMUMSIZE_DEFAULT, MESSAGEMINIMUMSIZE_KEY, SERVICE_NAME
 
Constructor Summary
BarcodeReaderTransport()
          Constructs a new instance of the BarcodeReaderTransport class.
 
Method Summary
 ConnectionService getDefaultConnection()
          Gets the default connection.
 SerialConnectionService getDefaultSerialConnection()
          Gets the default serial connection.
 TcpipConnectionService getDefaultTcpipConnection()
          Gets the default tcpip connection.
 int getMessageMinimumSize()
          Gets the value of message minimum size custom parameter.
protected  int processInput(byte[] bytes, int length)
          Process input with the specified bytes and length parameters and return the int result.
 void setMessageMinimumSize(int MessageMinimumSize)
          Sets the value of message minimum size custom parameter.
 void setup()
          Sets user-defined variables to use in the test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full class name.

See Also:
Constant Field Values
Constructor Detail

BarcodeReaderTransport

public BarcodeReaderTransport()
Constructs a new instance of the BarcodeReaderTransport class.

Method Detail

processInput

protected int processInput(byte[] bytes,
                           int length)
                    throws java.lang.Exception
Process input with the specified bytes and length parameters and return the int result.

Parameters:
bytes - The bytes (byte[]) parameter.
length - The length (int) parameter.
Returns:
Results of the process input (int) value.
Throws:
java.lang.Exception - Exception.

getDefaultConnection

public ConnectionService getDefaultConnection()
Gets the default connection.

Returns:
ConnectionService The default connection used by this transport.

getDefaultSerialConnection

public SerialConnectionService getDefaultSerialConnection()
Gets the default serial connection.

Returns:
SerialConnectionService The default serial connection used by this transport.

getDefaultTcpipConnection

public TcpipConnectionService getDefaultTcpipConnection()
Gets the default tcpip connection.

Returns:
TcpipConnectionService The default tcpip connection used by this transport.

getMessageMinimumSize

public int getMessageMinimumSize()
Gets the value of message minimum size custom parameter.

Returns:
message minimum size custom parameter.
See Also:
setMessageMinimumSize(int)

setMessageMinimumSize

public void setMessageMinimumSize(int MessageMinimumSize)
Sets the value of message minimum size custom parameter.

Parameters:
MessageMinimumSize - The message minimum size custom parameter.
See Also:
getMessageMinimumSize()

setup

public void setup()
Sets user-defined variables to use in the test.

User defined properties and default values.

barcodereadertransport.MessageMinimumSize 1
retrytime DEFAULT_RETRY_TIME
noactivitytimeout DEFAULT_NO_ACTIVITY_TIMEOUT
barcodereadertransport.MessageMinimumSize=1

See Also:
org.eclipse.soda.dk.transport.Transport#setup()

2008-07-29 1.1.0

Copyright (c) 2008 IBM. See license in Legal section.