1.0.0

org.eclipse.soda.dk.gps.nmea.transport
Class GpsNmeaTransport

java.lang.Object
  extended by ConnectionTransport
      extended by org.eclipse.soda.dk.gps.nmea.transport.GpsNmeaTransport
All Implemented Interfaces:
GpsNmeaTransportService

public class GpsNmeaTransport
extends ConnectionTransport
implements GpsNmeaTransportService

GPS NMEA Transport.

The devicekit properties keys and default values.

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

The list of exported services:

Version:
1.0.0
See Also:
GpsNmeaTransportService, org.eclipse.soda.dk.transport.service.TransportService

Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
static byte[] HEX_TABLE
          Define the hex table (byte[]) constant.
 
Fields inherited from interface org.eclipse.soda.dk.gps.nmea.transport.service.GpsNmeaTransportService
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
GpsNmeaTransport()
          Constructs a new instance of the GpsNmeaTransport 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)
          Process the input bytes and notify listeners of any messages found.
 void setup()
          Sets user-defined varables to use in the test.
protected  void write(MessageService message)
          Write with the specified message parameter.
 
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

HEX_TABLE

public static final byte[] HEX_TABLE
Define the hex table (byte[]) constant.

Constructor Detail

GpsNmeaTransport

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

Method Detail

processInput

public int processInput(byte[] bytes,
                        int length)
                 throws java.lang.Exception
Process the input bytes and notify listeners of any messages found.

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

write

protected void write(MessageService message)
              throws java.lang.Exception
Write with the specified message parameter.

Parameters:
message - The message (MessageService) parameter.
Throws:
Exception.
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