1.0.0

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

java.lang.Object
  extended by AsciiMessage
      extended by org.eclipse.soda.dk.gps.nmea.transport.GpsNmeaMessage

public class GpsNmeaMessage
extends AsciiMessage

The GpsNmeaMessage class implements the MessageService interface.

Version:
1.0.0
See Also:
Cloneable, org.eclipse.soda.dk.message.service.MessageService, org.eclipse.soda.dk.parameter.service.ParameterService

Constructor Summary
GpsNmeaMessage()
          Constructs a standard GpsNmeaMessage object.
GpsNmeaMessage(byte[] bytes)
          Constructs an GpsNmeaMessage object using the input parameter(s).
 
Method Summary
 java.lang.Object get(java.lang.Object fieldName)
          Get with the specified field name parameter and return the Object result.
 java.lang.Object getData(int index)
          Perform the getData method and return the Object result.
 int getFieldCount()
          Gets the int fieldCount property value.
 int[] getFieldInfo()
          Gets the int [] fieldInfo property value.
 int getFieldPosition()
          Gets the field position (int) value.
 LatitudeData getLatitude()
          Gets the latitude (LatitudeData) value.
 LongitudeData getLongitude()
          Gets the longitude (LongitudeData) value.
 boolean isChecksumValid()
          Gets the boolean checksumValid property value.
 boolean isValid()
          Gets the boolean valid property value.
 void setBytes(byte[] bytes)
          Sets the bytes property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpsNmeaMessage

public GpsNmeaMessage()
Constructs a standard GpsNmeaMessage object.

See Also:
GpsNmeaMessage(byte[])

GpsNmeaMessage

public GpsNmeaMessage(byte[] bytes)
Constructs an GpsNmeaMessage object using the input parameter(s).

Parameters:
bytes - byte[]
See Also:
GpsNmeaMessage()
Method Detail

get

public java.lang.Object get(java.lang.Object fieldName)
Get with the specified field name parameter and return the Object result.

Parameters:
fieldName - The field name (Object) parameter.
Returns:
Results of the get (Object) value.

getData

public java.lang.Object getData(int index)
Perform the getData method and return the Object result.

Parameters:
index - int
Returns:
Results of the get data (Object) value.

getFieldCount

public int getFieldCount()
Gets the int fieldCount property value.

Returns:
Results of the get field count (int) value.

getFieldInfo

public int[] getFieldInfo()
Gets the int [] fieldInfo property value.

Returns:
Results of the get field info (int[]) value.

getFieldPosition

public int getFieldPosition()
                     throws java.lang.RuntimeException
Gets the field position (int) value.

Returns:
The field position (int) value.
Throws:
java.lang.RuntimeException - Runtime Exception.

getLatitude

public LatitudeData getLatitude()
Gets the latitude (LatitudeData) value.

Returns:
The latitude (LatitudeData) value.

getLongitude

public LongitudeData getLongitude()
Gets the longitude (LongitudeData) value.

Returns:
The longitude (LongitudeData) value.

isChecksumValid

public boolean isChecksumValid()
Gets the boolean checksumValid property value.

Returns:
Results of the is checksum valid (boolean) value.

isValid

public boolean isValid()
Gets the boolean valid property value.

Returns:
Results of the is valid (boolean) value.
See Also:
isChecksumValid()

setBytes

public void setBytes(byte[] bytes)
Sets the bytes property.

Parameters:
bytes - The bytes (byte[]) parameter.

1.0.0

Copyright (c) 2007 IBM