public class GpsNavigationMessage extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<GpsNavigationMessage> |
CREATOR |
static short |
STATUS_PARITY_PASSED
The Navigation Message was received without any parity error in its navigation words.
|
static short |
STATUS_PARITY_REBUILT
The Navigation Message was received with words that failed parity check, but the receiver was
able to correct those words.
|
static short |
STATUS_UNKNOWN
The Navigation Message Status is 'unknown'.
|
static byte |
TYPE_CNAV2
The Navigation Message is of type CNAV-2.
|
static byte |
TYPE_L1CA
The Navigation Message is of type L1 C/A.
|
static byte |
TYPE_L2CNAV
The Navigation Message is of type L1-CNAV.
|
static byte |
TYPE_L5CNAV
The Navigation Message is of type L5-CNAV.
|
static byte |
TYPE_UNKNOWN
The type of the navigation message is not available or unknown.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
byte[] |
getData()
Gets the data associated with the Navigation Message.
|
short |
getMessageId()
Gets the Message Identifier.
|
byte |
getPrn()
Gets the Pseudo-random number.
|
short |
getStatus()
Gets the Status of the navigation message contained in the object.
|
short |
getSubmessageId()
Gets the Sub-message Identifier.
|
byte |
getType()
Gets the type of the navigation message contained in the object.
|
void |
reset()
Resets all the contents to its original state.
|
void |
set(GpsNavigationMessage navigationMessage)
Sets all contents to the values stored in the provided object.
|
void |
setData(byte[] value)
Sets the data associated with the Navigation Message.
|
void |
setMessageId(short value)
Sets the Message Identifier.
|
void |
setPrn(byte value)
Sets the Pseud-random number.
|
void |
setStatus(short value)
Sets the status of the navigation message.
|
void |
setSubmessageId(short value)
Sets the Sub-message identifier.
|
void |
setType(byte value)
Sets the type of the navigation message.
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel parcel,
int flags)
Flatten this object in to a Parcel.
|
public static final byte TYPE_UNKNOWN
public static final byte TYPE_L1CA
public static final byte TYPE_L2CNAV
public static final byte TYPE_L5CNAV
public static final byte TYPE_CNAV2
public static final short STATUS_UNKNOWN
public static final short STATUS_PARITY_PASSED
public static final short STATUS_PARITY_REBUILT
public static final Parcelable.Creator<GpsNavigationMessage> CREATOR
public void set(GpsNavigationMessage navigationMessage)
public void reset()
public byte getType()
public void setType(byte value)
public byte getPrn()
public void setPrn(byte value)
public short getMessageId()
public void setMessageId(short value)
public short getSubmessageId()
getType()
, this value contains a sub-index within the current message
(or frame) that is being transmitted. i.e. for L1 C/A the sub-message identifier corresponds
to the sub-frame Id of the navigation message.public void setSubmessageId(short value)
public byte[] getData()
public void setData(byte[] value)
public short getStatus()
public void setStatus(short value)
public void writeToParcel(Parcel parcel, int flags)
Parcelable
writeToParcel
in interface Parcelable
parcel
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())