1.0.0

org.eclipse.soda.dk.matrix.lcd.transport.bundle
Class MatrixLcdTransportBundle

java.lang.Object
  extended by TransportBundle
      extended by org.eclipse.soda.dk.matrix.lcd.transport.bundle.MatrixLcdTransportBundle

public class MatrixLcdTransportBundle
extends TransportBundle

Matrix Lcd Transport.

The transport bundle activator class creates and registers the MatrixLcdTransport 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.
static java.lang.String[] DEVICE_CATEGORY
          Defines the org.osgi.service.device.Constants.DEVICE_CATEGORY property.
static java.lang.String[] EXPORTED_SERVICE_NAMES
          Defines the service name(s) to be registered by the MatrixLcdTransport bundle.
 
Constructor Summary
MatrixLcdTransportBundle()
           
 
Method Summary
 java.util.Hashtable createProperties()
          Gets the properties to be registered with the service(s).
 TransportService createService(ConnectionService connection)
          Creates the transport service to be registered with the OSGi system.
 java.lang.String[] getExportedServiceNames()
          Return the exported service name(s) to be registered by the MatrixLcdTransport bundle.
 
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

DEVICE_CATEGORY

public static final java.lang.String[] DEVICE_CATEGORY
Defines the org.osgi.service.device.Constants.DEVICE_CATEGORY property.


EXPORTED_SERVICE_NAMES

public static final java.lang.String[] EXPORTED_SERVICE_NAMES
Defines the service name(s) to be registered by the MatrixLcdTransport bundle.
org.eclipse.soda.dk.transport.service.TransportService

Constructor Detail

MatrixLcdTransportBundle

public MatrixLcdTransportBundle()
Method Detail

createProperties

public java.util.Hashtable createProperties()
Gets the properties to be registered with the service(s).

Returns:
Hashtable of properties.
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_CLASS MatrixLcd
org.osgi.framework.Constants.SERVICE_PID MatrixLcdTransportService.SERVICE_NAME
org.osgi.framework.Constants.SERVICE_DESCRIPTION Matrix Lcd Transport
org.osgi.framework.Constants.SERVICE_VENDOR IBM
org.osgi.service.device.Constants.DRIVER_ID MatrixLcdTransport
org.osgi.framework.Constants.SERVICE_RANKING 6
org.osgi.service.device.Constants.DEVICE_CATEGORY TransportService
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_REVISION 1.0.0

createService

public TransportService createService(ConnectionService connection)
Creates the transport service to be registered with the OSGi system.

Parameters:
connection - The connection service to be used when creating this transport service.
Returns:
Object The transport service
See Also:
MatrixLcdTransport

getExportedServiceNames

public java.lang.String[] getExportedServiceNames()
Return the exported service name(s) to be registered by the MatrixLcdTransport bundle.

Returns:
String[] The transport's service names.

1.0.0

Copyright (c) 2007 IBM