2009-06-02 1.2.0

org.eclipse.soda.dk.gps.nmea.transport.bundle
Class GpsNmeaTransportBundle

java.lang.Object
  extended by TransportBundle
      extended by org.eclipse.soda.dk.gps.nmea.transport.bundle.GpsNmeaTransportBundle
All Implemented Interfaces:
BundleActivator

public class GpsNmeaTransportBundle
extends TransportBundle
implements BundleActivator

Global Positioning System (GPS) National Marine Electronics Association (NMEA) Transport.

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

The Device Kit properties CONNECTION_KEYS and default values.

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

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
GpsNmeaTransportService, 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 GpsNmeaTransport bundle.
 
Constructor Summary
GpsNmeaTransportBundle()
           
 
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 GpsNmeaTransport 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.

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

Since:
1.0

EXPORTED_SERVICE_NAMES

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

Since:
1.0
Constructor Detail

GpsNmeaTransportBundle

public GpsNmeaTransportBundle()
Method Detail

createProperties

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

Returns:
Hashtable of properties.
org.osgi.service.device.Constants.DRIVER_ID GpsNmeaTransport
org.osgi.framework.Constants.SERVICE_PID GpsNmeaTransportService.SERVICE_NAME
org.eclipse.soda.dk.connection.bundle.ServiceBundle.DEVICE_CLASS GpsNmea
org.osgi.service.device.Constants.DEVICE_CATEGORY TransportService
org.osgi.framework.Constants.SERVICE_RANKING 6
Since:
1.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
Since:
1.0
See Also:
GpsNmeaTransport

getExportedServiceNames

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

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

2009-06-02 1.2.0

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