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.

Author:
Kimmo Tuukkanen

Field Summary
 
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, 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
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, 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-2014 Java Marine API authors. All Rights Reserved.