nl.esi.metis.aisparser.impl.AISMessage20UnitImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of EsiAisParser Show documentation
Show all versions of EsiAisParser Show documentation
This package supports the parsing of AIS messages in Java. AIS, the Automatic Identification System, is a system aiming at improving maritime safety by exchanging messages between ships, other vehicles in particular aircraft involved in search-and-rescue (SAR), and (fixed) base stations. To be precise, this package support the ITU-R M.1371-4 AIS standard.
See our extensive javadoc and in particular the class AISParser for more information on how to use this package.
The parser was used in the Poseidon project, and is improved in the Metis project to better handle uncertain information. Both projects were led by the Embedded Systems Institute. In both projects Thales Nederlands was the carrying industrial partner, and multiple Dutch universities participated.
The newest version!
package nl.esi.metis.aisparser.impl;
import nl.esi.metis.aisparser.AISMessage20Unit;
import nl.esi.metis.aisparser.Sixbit;
class AISMessage20UnitImpl implements AISMessage20Unit {
private int offsetNumber;
/** offsetNumber
* @return int value of offsetNumber (12 bits)
*/
public int getOffsetNumber() { return offsetNumber; }
private int numberOfSlots;
/** numberOfSlots
* @return int value of numberOfSlots (4 bits)
*/
public int getNumberOfSlots() { return numberOfSlots; }
private int timeOut;
/** timeOut
* @return int value of timeOut (3 bits)
*/
public int getTimeOut() { return timeOut; }
private int increment;
/** increment
* @return int value of increment (11 bits)
*/
public int getIncrement() { return increment; }
public AISMessage20UnitImpl (int offset, Sixbit content)
{
assert(content.length() >= offset + 29);
offsetNumber = content.getIntFromTo(offset,offset+11);
numberOfSlots = content.getIntFromTo(offset+12,offset+15);
timeOut = content.getIntFromTo(offset+16,offset+18);
increment = content.getIntFromTo(offset+19,offset+29);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy