2009-10-01 1.2.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 Device Kit properties CONNECTION_KEYS and default values.

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

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
MatrixLcdTransportService, 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.matrix.lcd.transport.service.MatrixLcdTransportService
FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, 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
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 variables 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 full class name.

Since:
1.0
See Also:
Constant Field Values
Constructor Detail

MatrixLcdTransport

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

Since:
1.0
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 - Exception.

write

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

Parameters:
message - MessageService
Throws:
java.lang.Exception - Exception.

getDefaultConnection

public ConnectionService getDefaultConnection()
Gets the default connection.

Returns:
ConnectionService The default connection used by this transport.
Since:
1.0

getDefaultSerialConnection

public SerialConnectionService getDefaultSerialConnection()
Gets the default serial connection.

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

getDefaultTcpipConnection

public TcpipConnectionService getDefaultTcpipConnection()
Gets the default tcpip connection.

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

setup

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

User defined properties and default values.

retrytime RETRY_TIME_DEFAULT
transmitretries TRANSMIT_RETRIES_DEFAULT
noactivitytimeout NO_ACTIVITY_TIMEOUT_DEFAULT

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

2009-10-01 1.2.0

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