public class AISMessageParser extends Object implements AISMessage
Modifier and Type | Field and Description |
---|---|
protected List<Violation> |
fViolations |
Modifier | Constructor and Description |
---|---|
|
AISMessageParser()
Default constructor.
|
protected |
AISMessageParser(Sixbit sb)
Constucor with Sixbit content decoder.
|
Modifier and Type | Method and Description |
---|---|
void |
addViolation(Violation v)
Add a new rule violation to this message
|
void |
append(String fragment,
int fragmentIndex,
int fillBits)
Append a paylod fragment to combine messages devivered over multiple
sentences.
|
Sixbit |
getMessageBody()
Returns the message sixbit decoder.
|
int |
getMessageType()
Returns the message type.
|
int |
getMMSI()
Returns the unique identifier of the transmitting ship (MMSI, Maritime
Mobile Service Identity).
|
int |
getNrOfViolations()
Returns the number of violations.
|
int |
getRepeatIndicator()
Tells how many times the message has been repeated.
|
List<Violation> |
getViolations()
Returns list of discoverd data violations.
|
public AISMessageParser()
protected AISMessageParser(Sixbit sb)
sb
- Content decoderpublic void addViolation(Violation v)
public int getNrOfViolations()
public int getMessageType()
AISMessage
getMessageType
in interface AISMessage
public int getRepeatIndicator()
AISMessage
getRepeatIndicator
in interface AISMessage
public int getMMSI()
AISMessage
getMMSI
in interface AISMessage
public Sixbit getMessageBody()
public void append(String fragment, int fragmentIndex, int fillBits)
fragment
- Data fragment in sixbit encoded formatfragmentIndex
- Fragment number within the fragments sequencefillBits
- Number of additional fill-bitsCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.