2009-06-02 1.2.0

org.eclipse.soda.dk.gps.nmea.position.profile
Class GpsNmeaPositionProfile

java.lang.Object
  extended by PositionProfile
      extended by org.eclipse.soda.dk.gps.nmea.position.profile.GpsNmeaPositionProfile
All Implemented Interfaces:
GpsNmeaPositionProfileService

public class GpsNmeaPositionProfile
extends PositionProfile
implements GpsNmeaPositionProfileService

Gps Nmea Profile. The GpsNmeaPositionProfile class implements the GpsNmeaPositionProfileService and provides the controls for the profile.

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
GpsNmeaPositionProfileService, org.eclipse.soda.dk.profile.service.ProfileService

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
protected  SignalService gpsNmeaDeviceServiceGPGGA
          Defines the GPGGA signalref.
protected  SignalService gpsNmeaDeviceServiceGPGLL
          Defines the GPGLL signalref.
 
Fields inherited from interface org.eclipse.soda.dk.gps.nmea.position.profile.service.GpsNmeaPositionProfileService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, FACTORY_SERVICE_NAME, GpsNmeaPositionProfile, MANAGED_SERVICE_NAME, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY
 
Constructor Summary
GpsNmeaPositionProfile()
          Constructs a new instance of the GpsNmeaPositionProfile class.
 
Method Summary
 AdapterService getAdapter()
          Gets the get adapter value.
 DeviceService getDefaultDevice()
          Gets the default DeviceService.
 java.lang.String getDefaultKey()
          Gets the default key of the profile.
protected  void handleGpsNmeaDeviceServiceGPGGA(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Handle gps nmea device service gpgga with the specified source, timestamp and data parameters.
protected  void handleGpsNmeaDeviceServiceGPGLL(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Handle gps nmea device service gpgll with the specified source, timestamp and data parameters.
 void handleSignal(java.lang.Object timestamp, java.lang.Object data)
          Handle signal with the specified timestamp and data parameters.
 boolean isAdapterNeeded()
          Is adapter needed.
 boolean isDeviceNeeded()
          Is device needed.
 void setAdapter(AdapterService adapter)
          Set adapter.
 void setDevice(DeviceService device)
          Set device.
 void setup()
           
 void signalOccurred(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Signal occurred.
 
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.1
See Also:
Constant Field Values

gpsNmeaDeviceServiceGPGLL

protected SignalService gpsNmeaDeviceServiceGPGLL
Defines the GPGLL signalref.

Since:
1.1

gpsNmeaDeviceServiceGPGGA

protected SignalService gpsNmeaDeviceServiceGPGGA
Defines the GPGGA signalref.

Since:
1.1
Constructor Detail

GpsNmeaPositionProfile

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

Since:
1.1
Method Detail

setDevice

public void setDevice(DeviceService device)
Set device.

Parameters:
device - device.
Since:
1.1

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Signal occurred.

Parameters:
source - source.
timestamp - time stamp.
data - data.
Since:
1.1

getDefaultKey

public java.lang.String getDefaultKey()
Gets the default key of the profile.

Returns:
String The default key
Since:
1.1

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default DeviceService.

Returns:
DeviceService The default DeviceService.
Since:
1.1

isDeviceNeeded

public boolean isDeviceNeeded()
Is device needed.

Returns:
The results of this method.
Since:
1.1

setup

public void setup()
Since:
1.2
See Also:
org.eclipse.soda.dk.device.Container#setup()

getAdapter

public AdapterService getAdapter()
Gets the get adapter value.

Returns:
The adapter value.
Since:
1.1

setAdapter

public void setAdapter(AdapterService adapter)
Set adapter.

Parameters:
adapter - adapter.
Since:
1.1

isAdapterNeeded

public boolean isAdapterNeeded()
Is adapter needed.

Returns:
The results of this method.
Since:
1.1

handleGpsNmeaDeviceServiceGPGGA

protected void handleGpsNmeaDeviceServiceGPGGA(SignalService source,
                                               java.lang.Object timestamp,
                                               java.lang.Object data)
Handle gps nmea device service gpgga with the specified source, timestamp and data parameters.

Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.

handleGpsNmeaDeviceServiceGPGLL

protected void handleGpsNmeaDeviceServiceGPGLL(SignalService source,
                                               java.lang.Object timestamp,
                                               java.lang.Object data)
Handle gps nmea device service gpgll with the specified source, timestamp and data parameters.

Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.

handleSignal

public void handleSignal(java.lang.Object timestamp,
                         java.lang.Object data)
Handle signal with the specified timestamp and data parameters.

Parameters:
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.

2009-06-02 1.2.0

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