1.0.0

org.eclipse.soda.dk.matrix.lcd.transport
Class MatrixLcdTransport

java.lang.Object
  extended by ConnectionTransport
      extended by org.eclipse.soda.dk.matrix.lcd.transport.MatrixLcdTransport
All Implemented Interfaces:
MatrixLcdTransportService

public class MatrixLcdTransport
extends ConnectionTransport
implements MatrixLcdTransportService

Matrix Lcd Transport.

The devicekit properties keys and default values.

matrixlcdtransport.hardwareflowcontrol 0
matrixlcdtransport.parity none
matrixlcdtransport.stopbits 1
matrixlcdtransport.comport 1
matrixlcdtransport.readintervaltimeout 100
matrixlcdtransport.softwareflowcontrol 0
matrixlcdtransport.writetotaltimeout 100
matrixlcdtransport.databits 8
matrixlcdtransport.readtotaltimeout 1000
matrixlcdtransport.baudrate 19200
matrixlcdtransport.linger -1
matrixlcdtransport.readtimeout 1000
matrixlcdtransport.readsize -1
matrixlcdtransport.localport -1
matrixlcdtransport.host localhost
matrixlcdtransport.writesize -1
matrixlcdtransport.remoteport 9234
matrixlcdtransport.connection serial
matrixlcdtransport.hardwareflowcontrol=0 matrixlcdtransport.parity=none matrixlcdtransport.stopbits=1 matrixlcdtransport.comport=1 matrixlcdtransport.readintervaltimeout=100 matrixlcdtransport.softwareflowcontrol=0 matrixlcdtransport.writetotaltimeout=100 matrixlcdtransport.databits=8 matrixlcdtransport.readtotaltimeout=1000 matrixlcdtransport.baudrate=19200 matrixlcdtransport.linger=-1 matrixlcdtransport.readtimeout=1000 matrixlcdtransport.readsize=-1 matrixlcdtransport.localport=-1 matrixlcdtransport.host=localhost matrixlcdtransport.writesize=-1 matrixlcdtransport.remoteport=9234 matrixlcdtransport.connection=serial

The list of exported services:

Version:
1.0.0
See Also:
MatrixLcdTransportService,

See the following specification(s) for more details:


Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
 
Fields inherited from interface org.eclipse.soda.dk.matrix.lcd.transport.service.MatrixLcdTransportService
DEFAULT_BAUDRATE, DEFAULT_COMPORT, DEFAULT_DATABITS, DEFAULT_HOST, DEFAULT_HWFLOW, DEFAULT_LINGER, DEFAULT_LOCALPORT, 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, SERVICE_NAME
 
Constructor Summary
MatrixLcdTransport()
          Constructs a new instance of the MatrixLcdTransport class.
 
Method Summary
 ConnectionService getDefaultConnection()
          Gets the default connection.
 SerialConnectionService getDefaultSerialConnection()
          Gets the default serial connection.
 TcpipConnectionService getDefaultTcpipConnection()
          Gets the default tcpip connection.
 int processInput(byte[] bytes, int length)
          Perform the processInput action method.
 void setup()
          Sets user-defined varables to use in the test.
protected  void write(MessageService message)
          Perform the write action method.
 
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 class name.

See Also:
Constant Field Values
Constructor Detail

MatrixLcdTransport

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

Method Detail

processInput

public int processInput(byte[] bytes,
                        int length)
                 throws java.lang.Exception
Perform the processInput action method.

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

write

protected void write(MessageService message)
              throws java.lang.Exception
Perform the write action method.

Parameters:
message - MessageService
Throws:
java.lang.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:
ConnectionService The default serial used by this transport.

getDefaultTcpipConnection

public TcpipConnectionService getDefaultTcpipConnection()
Gets the default tcpip connection.

Returns:
ConnectionService The default tcpip used by this transport.

setup

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

User defined properties and default values.

retrytime DEFAULT_RETRY_TIME
noactivitytimeout DEFAULT_NO_ACTIVITY_TIMEOUT

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

1.0.0

Copyright (c) 2007 IBM