Package org.orekit.gnss.metric.parser
Class MessagesParser
- java.lang.Object
-
- org.orekit.gnss.metric.parser.MessagesParser
-
- Direct Known Subclasses:
IgsSsrMessagesParser
,RtcmMessagesParser
public abstract class MessagesParser extends Object
Parser for IGS encoded messages.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description MessagesParser(List<Integer> messages)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract MessageType
getMessageType(String messageNumber)
Get the message type corresponding to the message number.ParsedMessage
parse(EncodedMessage message, boolean ignoreUnknownMessageTypes)
Parse one message.protected abstract String
parseMessageNumber(EncodedMessage message)
Parse the message number.
-
-
-
Method Detail
-
parse
public ParsedMessage parse(EncodedMessage message, boolean ignoreUnknownMessageTypes)
Parse one message.- Parameters:
message
- encoded message to parseignoreUnknownMessageTypes
- if true, unknown messages types are silently ignored- Returns:
- parsed message, or null if parse not possible and
ignoreUnknownMessageTypes
is true
-
parseMessageNumber
protected abstract String parseMessageNumber(EncodedMessage message)
Parse the message number.- Parameters:
message
- encoded message to parse- Returns:
- the message number
-
getMessageType
protected abstract MessageType getMessageType(String messageNumber)
Get the message type corresponding to the message number.- Parameters:
messageNumber
- String reprensentation of the message number- Returns:
- the message type
-
-