net.sf.marineapi.nmea.sentence
Interface PositionSentence

All Superinterfaces:
Sentence
All Known Subinterfaces:
GGASentence, GLLSentence, RMCSentence

public interface PositionSentence
extends Sentence

Common interface for sentences that contain geographic position.

Version:
$Revision: 34 $
Author:
Kimmo Tuukkanen

Field Summary
 
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence
ADDRESS_FIELD, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
 
Method Summary
 Position getPosition()
          Gets the geographic position.
 void setPosition(Position pos)
          Set the geographic position.
 
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence
getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, setTalkerId, toSentence, toString
 

Method Detail

getPosition

Position getPosition()
Gets the geographic position.

Returns:
Position
Throws:
DataNotAvailableException - If any of the position related fields is empty.
ParseException - If any of the position related fields contains unexpected value.

setPosition

void setPosition(Position pos)
Set the geographic position.

Parameters:
pos - Position to set


Copyright (C) 2010-2011 Java Marine API author(s). All Rights Reserved.