Package AIS
Class AISDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
AIS.AISDataUnit
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAISDataUnit
(long timeMilliseconds) Constructor used in data collection - doesn't do muchAISDataUnit
(long timeMillis, String charData, int fillBits) Constructor used when reading back from binary files. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPositionReport
(AISPositionReport positionReport) boolean
Decode the binary data which are currently in a character stringfindPositionReport
(long timeMillis) boolean
void
setStaticData
(AISStaticData staticData) void
update
(AISDataUnit newAISUnit) Update an existing AIS data unit with new data.Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
-
Field Details
-
mmsiNumber
public int mmsiNumber
-
-
Constructor Details
-
AISDataUnit
public AISDataUnit(long timeMilliseconds) Constructor used in data collection - doesn't do much -
AISDataUnit
Constructor used when reading back from binary files.- Parameters:
timeMillis
- time millischarData
- 6 bit character data stringfillBits
- fill bits to ignore at end of string
-
-
Method Details
-
getStationtypeString
-
decodeMessage
public boolean decodeMessage()Decode the binary data which are currently in a character string- Returns:
- true if the message was decoded successfully
-
isComplete
public boolean isComplete() -
update
Update an existing AIS data unit with new data.- Parameters:
newAISUnit
-
-
getPositionReport
-
findPositionReport
-
getStaticData
-
getPositionReports
-
addPositionReport
-
setStaticData
-