2010-01-22 1.2.0

org.eclipse.soda.dk.barcode.reader.transport.testcase
Class BarcodeReaderExtendedTransport

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

public class BarcodeReaderExtendedTransport
extends BarcodeReaderTransport

Since:
1.2
Version:
1.2.0

Field Summary
protected  int inputMessageCounter
          Define the input message counter (int) field.
protected  MessageService message
          Define the message (MessageService) field.
 
Fields inherited from class org.eclipse.soda.dk.barcode.reader.transport.BarcodeReaderTransport
CLASS_NAME
 
Fields inherited from interface org.eclipse.soda.dk.barcode.reader.transport.service.BarcodeReaderTransportService
BEGIN_CHAR, BEGIN_CHAR_DEFAULT, BEGIN_CHAR_PROPERTY, DELIMITER_CHAR, DELIMITER_CHAR_DEFAULT, DELIMITER_CHAR_PROPERTY, END_CHAR, END_CHAR_DEFAULT, END_CHAR_PROPERTY, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, MESSAGE_BEGIN, MESSAGE_BEGIN_DEFAULT, MESSAGE_BEGIN_PROPERTY, MESSAGE_END, MESSAGE_END_DEFAULT, MESSAGE_END_PROPERTY, MESSAGE_MINIMUM_SIZE, MESSAGE_MINIMUM_SIZE_DEFAULT, MESSAGE_MINIMUM_SIZE_PROPERTY, SERIAL_BAUDRATE_DEFAULT, SERIAL_BAUDRATE_PROPERTY, SERIAL_COMPORT_DEFAULT, SERIAL_COMPORT_PROPERTY, SERIAL_DATABITS_DEFAULT, SERIAL_DATABITS_PROPERTY, SERIAL_HARDWAREFLOWCONTROL_DEFAULT, SERIAL_HARDWAREFLOWCONTROL_PROPERTY, SERIAL_PARITY_DEFAULT, SERIAL_PARITY_PROPERTY, SERIAL_READINTERVALTIMEOUT_DEFAULT, SERIAL_READINTERVALTIMEOUT_PROPERTY, SERIAL_READTOTALTIMEOUT_DEFAULT, SERIAL_READTOTALTIMEOUT_PROPERTY, SERIAL_SOFTWAREFLOWCONTROL_DEFAULT, SERIAL_SOFTWAREFLOWCONTROL_PROPERTY, SERIAL_STOPBITS_DEFAULT, SERIAL_STOPBITS_PROPERTY, SERIAL_WRITETOTALTIMEOUT_DEFAULT, SERIAL_WRITETOTALTIMEOUT_PROPERTY, SERVICE_NAME, TCPIP_HOST_DEFAULT, TCPIP_LINGER_DEFAULT, TCPIP_LINGER_PROPERTY, TCPIP_LOCALHOST_DEFAULT, TCPIP_LOCALHOST_PROPERTY, TCPIP_LOCALPORT_DEFAULT, TCPIP_LOCALPORT_PROPERTY, TCPIP_READSIZE_DEFAULT, TCPIP_READSIZE_PROPERTY, TCPIP_READTIMEOUT_DEFAULT, TCPIP_READTIMEOUT_PROPERTY, TCPIP_REMOTEHOST_DEFAULT, TCPIP_REMOTEHOST_PROPERTY, TCPIP_REMOTEPORT_DEFAULT, TCPIP_REMOTEPORT_PROPERTY, TCPIP_WRITESIZE_DEFAULT, TCPIP_WRITESIZE_PROPERTY
 
Constructor Summary
BarcodeReaderExtendedTransport()
          Constructs an instance of this class.
 
Method Summary
 void fireMessageReceived(ChannelService channel, java.lang.Object timestamp, MessageService message)
          Fire message received with the specified channel, time stamp and message parameters.
 MessageService getMessage()
          Gets the message (MessageService) value.
 int processInputExtended(byte[] bytes, int length)
          Process input extended with the specified bytes and length parameters and return the int result.
 void setMessage(MessageService message)
          Sets the message value.
 int updateInputMessageCount(ChannelService channel)
          Update input message count with the specified channel parameter and return the int result.
 
Methods inherited from class org.eclipse.soda.dk.barcode.reader.transport.BarcodeReaderTransport
addToBufferedMessage, addToBufferedMessage, beginIndex, clearBufferedMessage, getBeginChar, getBufferedMessage, getDefaultConnection, getDefaultSerialConnection, getDefaultTcpipConnection, getDelimiterChar, getEndChar, getMessageBegin, getMessageEnd, getMessageMinimumSize, processBarcode, processInput, same, sendBarcode, setBeginChar, setDelimiterChar, setEndChar, setMessageBegin, setMessageEnd, setMessageMinimumSize, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputMessageCounter

protected int inputMessageCounter
Define the input message counter (int) field.


message

protected MessageService message
Define the message (MessageService) field.

Constructor Detail

BarcodeReaderExtendedTransport

public BarcodeReaderExtendedTransport()
Constructs an instance of this class.

Method Detail

fireMessageReceived

public void fireMessageReceived(ChannelService channel,
                                java.lang.Object timestamp,
                                MessageService message)
Fire message received with the specified channel, time stamp and message parameters.

Parameters:
channel - The channel (ChannelService) parameter.
timestamp - The time stamp (Object) parameter.
message - The message (MessageService) parameter.

getMessage

public MessageService getMessage()
Gets the message (MessageService) value.

Returns:
The message (MessageService) value.
See Also:
setMessage(MessageService)

processInputExtended

public int processInputExtended(byte[] bytes,
                                int length)
                         throws java.lang.Exception
Process input extended 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 extended (int) value.
Throws:
java.lang.Exception - Exception.

setMessage

public void setMessage(MessageService message)
Sets the message value.

Parameters:
message - The message (MessageService) parameter.
See Also:
getMessage()

updateInputMessageCount

public int updateInputMessageCount(ChannelService channel)
Update input message count with the specified channel parameter and return the int result.

Parameters:
channel - The channel (ChannelService) parameter.
Returns:
Results of the update input message count (int) value.

2010-01-22 1.2.0

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