All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.esi.metis.aisparser.annotations.ChannelIdAnnotation Maven / Gradle / Ivy

Go to download

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.annotations;

public class ChannelIdAnnotation implements Annotation{
	private String channelId;
	
	public ChannelIdAnnotation (String channelId)
	{
		this.channelId = channelId;
	}
	
	public String toString()
	{
		if ("1".equals(channelId))
		{
			return "Well known deviation from standard: Use of '1' instead of 'A' as channel identifier.";
		}
		else if ( "2".equals(channelId))
		{
			return "Well known deviation from standard: Use of '2' instead of 'B' as channel identifier.";
		}
		else
		{
			return "Deviation from standard: Use of '" + channelId + "' instead of ('A' or 'B') as channel identifiers.";
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy