2008-09-15 1.1.0

org.eclipse.soda.dk.arcom.io.transport.bundle
Class ArcomIoTransportBundle

java.lang.Object
  extended by TransportBundle
      extended by org.eclipse.soda.dk.arcom.io.transport.bundle.ArcomIoTransportBundle
All Implemented Interfaces:
BundleActivator

public class ArcomIoTransportBundle
extends TransportBundle
implements BundleActivator

Arcom IO AIM104 Relay 8in8 board.

The transport bundle activator class creates and registers the ArcomIoTransport transport.

The Device Kit properties keys and default values.

arcomiotransport.name /dev/arcom/aim104/relay8
arcomiotransport.path 0
arcomiotransport.mode rw
arcomiotransport.connection randomaccessfile
arcomiotransport.pollingRate 250
arcomiotransport.name=/dev/arcom/aim104/relay8 arcomiotransport.path=0 arcomiotransport.mode=rw arcomiotransport.connection=randomaccessfile arcomiotransport.pollingRate=250

The list of exported services:

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

Field Summary
static java.lang.String CLASS_NAME
          Defines the full 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 ArcomIoTransport bundle.
 
Constructor Summary
ArcomIoTransportBundle()
           
 
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 ArcomIoTransport bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.framework.BundleActivator
start, stop
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the full 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 ArcomIoTransport bundle.
org.eclipse.soda.dk.transport.service.TransportService
org.eclipse.soda.dk.digital.io.transport.service.DigitalIoTransportService

Constructor Detail

ArcomIoTransportBundle

public ArcomIoTransportBundle()
Method Detail

createProperties

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

Returns:
Hashtable of properties.
org.osgi.framework.Constants.SERVICE_RANKING 6
org.osgi.service.device.Constants.DEVICE_CATEGORY TransportService
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_CLASS ArcomIo
org.osgi.framework.Constants.SERVICE_PID ArcomIoTransportService.SERVICE_NAME
org.osgi.service.device.Constants.DRIVER_ID ArcomIoTransport

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:
ArcomIoTransport

getExportedServiceNames

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

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

2008-09-15 1.1.0

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