Enum AisMessageType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AisMessageType>

    public enum AisMessageType
    extends java.lang.Enum<AisMessageType>
    The AIS message types as per 1371-4.pdf. Not all are listed here.
    Author:
    dxm
    • Enum Constant Detail

      • POSITION_REPORT_SCHEDULED

        public static final AisMessageType POSITION_REPORT_SCHEDULED
      • POSITION_REPORT_ASSIGNED

        public static final AisMessageType POSITION_REPORT_ASSIGNED
      • POSITION_REPORT_SPECIAL

        public static final AisMessageType POSITION_REPORT_SPECIAL
      • BASE_STATION_REPORT

        public static final AisMessageType BASE_STATION_REPORT
      • STATIC_AND_VOYAGE_RELATED_DATA

        public static final AisMessageType STATIC_AND_VOYAGE_RELATED_DATA
      • ADDRESSED_BINARY_MESSAGE

        public static final AisMessageType ADDRESSED_BINARY_MESSAGE
      • BINARY_ACKNOWLEDGE

        public static final AisMessageType BINARY_ACKNOWLEDGE
      • BINARY_BROADCAST_MESSAGE

        public static final AisMessageType BINARY_BROADCAST_MESSAGE
      • STANDARD_SAR_AIRCRAFT_POSITION_REPORT

        public static final AisMessageType STANDARD_SAR_AIRCRAFT_POSITION_REPORT
      • UTC_AND_DATE_INQUIRY

        public static final AisMessageType UTC_AND_DATE_INQUIRY
      • UTC_AND_DATE_RESPONSE

        public static final AisMessageType UTC_AND_DATE_RESPONSE
      • ADDRESSED_SAFETY_RELATED_MESSAGE

        public static final AisMessageType ADDRESSED_SAFETY_RELATED_MESSAGE
      • POSITION_REPORT_CLASS_B

        public static final AisMessageType POSITION_REPORT_CLASS_B
      • POSITION_REPORT_CLASS_B_EXTENDED

        public static final AisMessageType POSITION_REPORT_CLASS_B_EXTENDED
      • STATIC_DATA_REPORT

        public static final AisMessageType STATIC_DATA_REPORT
    • Method Detail

      • values

        public static AisMessageType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AisMessageType c : AisMessageType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AisMessageType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public int getId()
        Returns the message id as per 1371-3.pdf.
        Returns: