|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamguardMVC.PamDataUnit
AIS.AISDataUnit
public class AISDataUnit
| Field Summary | |
|---|---|
protected java.lang.String |
aisChannel
When provided, the AIS channel is indicated as either "1" or "2." This channel indication is relative to the operating conditions of the transponder when the packet is received. |
(package private) AISLocalisation |
aisLocalisation
|
(package private) NMEABitArray |
bitData
|
protected java.lang.String |
charData
Contents of the M.1371 radio message using the six-bit field type |
protected java.lang.String |
dataType
AIVDM, etc. |
protected int |
fillBits
Number of "fill-bits" added to complete the last six-bit character |
protected boolean |
isInRange
Flag used when a limit is placed on range. |
protected int |
messageID
Pulled out from the start of the AIVDM string. |
private static int |
MINIMUMBITS
|
int |
mmsiNumber
|
protected boolean |
newUnit
|
private static int |
POSITIONREPORTBITS
|
private java.util.ArrayList<AISPositionReport> |
positionReports
|
protected int |
sentenceNumber
Message sentence number |
protected int |
sequentialIdentifier
The "message sequential identifier" is a number from 0 to 9 that is sequentially assigned as needed. |
(package private) static long |
serialVersionUID
|
private AISStaticData |
staticData
|
private static int |
STATICDATABITS
|
protected int |
totalSentences
Total number of sentences needed to transfer the message |
| Fields inherited from class PamguardMVC.PamDataUnit |
|---|
absBlockIndex, channelBitmap, localisation, oLL, timeMilliseconds |
| Constructor Summary | |
|---|---|
AISDataUnit(long timeMilliseconds)
Constructor used in data collection - doesn't do much |
|
AISDataUnit(long timeMillis,
java.lang.String charData,
int fillBits)
Constructor used when reading back from binary files. |
|
| Method Summary | |
|---|---|
void |
addPositionReport(AISPositionReport positionReport)
|
protected AISDataUnit |
clone()
|
boolean |
decodeMessage()
Decode the binary data which are currently in a character string |
AISPositionReport |
findPositionReport(long timeMillis)
|
AISPositionReport |
getPositionReport()
|
java.util.ArrayList<AISPositionReport> |
getPositionReports()
|
AISStaticData |
getStaticData()
|
boolean |
isComplete()
|
void |
setStaticData(AISStaticData staticData)
|
void |
update(AISDataUnit newAISUnit)
Update an existing AIS data unit with new data. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
AISLocalisation aisLocalisation
static final long serialVersionUID
protected boolean isInRange
the flag can be set false again if new position data come within range.
protected boolean newUnit
protected java.lang.String dataType
protected int messageID
protected int totalSentences
protected int sentenceNumber
protected int sequentialIdentifier
protected java.lang.String aisChannel
protected java.lang.String charData
The maximum string length of encapsulation is limited such that the total number of sentence characters does not exceed 82. This field supports a maximum of 62 valid characters for messages transferred using multiple sentences, and 63 valid characters for messages using a single sentence.
protected int fillBits
Each character in the preceding six-bit coded character string represents six binary bits. This parameter indicates the number of bits that were added to the end of the binary packet as a result of creating the last character of the string. When the coding of the last six-bit character of the message packet does not create additional "fill-bits," this value shall be set to zero. The value "0" indicates that no "fill-bits" were added. This field may not be null.
public int mmsiNumber
private java.util.ArrayList<AISPositionReport> positionReports
private AISStaticData staticData
transient NMEABitArray bitData
private static final int MINIMUMBITS
private static final int POSITIONREPORTBITS
private static final int STATICDATABITS
| Constructor Detail |
|---|
public AISDataUnit(long timeMilliseconds)
public AISDataUnit(long timeMillis,
java.lang.String charData,
int fillBits)
timeMillis - time millischarData - 6 bit character data stringfillBits - fill bits to ignore at end of string| Method Detail |
|---|
public boolean decodeMessage()
public boolean isComplete()
public void update(AISDataUnit newAISUnit)
newAISUnit - protected AISDataUnit clone()
clone in class java.lang.Objectpublic AISPositionReport getPositionReport()
public AISPositionReport findPositionReport(long timeMillis)
public AISStaticData getStaticData()
public java.util.ArrayList<AISPositionReport> getPositionReports()
public void addPositionReport(AISPositionReport positionReport)
public void setStaticData(AISStaticData staticData)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||