Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg12

Inherits:
VDMMsg
  • Object
show all
Defined in:
lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb

Overview

AIS Type 12: Addressed Safety-Related Message

Instance Attribute Summary collapse

Attributes inherited from VDMMsg

#message_type, #repeat_indicator, #source_mmsi, #source_mmsi_info

Attributes inherited from Payload

#fill_bits, #payload_bitstring

Method Summary

Methods inherited from VDMMsg

#auxiliary_craft?, #get_navigational_status_description, #get_ship_cargo_type_description

Methods inherited from Payload

#_2b_data_string, #_6b_ascii, #_6b_boolean, #_6b_integer, #_6b_integer_scaled, #_6b_integer_scaled_shifted, #_6b_negated_boolean, #_6b_string, #_6b_string_nullterminated, #_6b_unsigned_integer, #_6b_unsigned_integer_scaled, #_6b_unsigned_integer_scaled_shifted, #_8b_data_string, #_access, #_bit_slices, #_get_date_mdhm, #_object_by_name, #initialize, payload_reader

Constructor Details

This class inherits a constructor from NMEAPlus::Message::AIS::VDMPayload::Payload

Instance Attribute Details

#dataObject (readonly)

Safety message as data

Returns:

  • The field defined by the 936 bits starting at payload bit 72, formatted with the function Payload#_tt(, , )



18
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 18

payload_reader :data, 72, 936, :_tt

#destination_mmsiObject (readonly)

Returns The field defined by the 30 bits starting at payload bit 40, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 30 bits starting at payload bit 40, formatted with the function Payload#_u(, , )



11
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 11

payload_reader :destination_mmsi, 40, 30, :_u

#retransmit?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 70, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 70, formatted with the function Payload#_b(, , )



12
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 12

payload_reader :retransmit?, 70, 1, :_b

#sequence_numberObject (readonly)

Returns The field defined by the 2 bits starting at payload bit 38, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 2 bits starting at payload bit 38, formatted with the function Payload#_u(, , )



10
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 10

payload_reader :sequence_number, 38, 2, :_u

#textObject (readonly)

Safety message as a null-terminated string

Returns:

  • The field defined by the 936 bits starting at payload bit 72, formatted with the function Payload#_t(, , )



15
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb', line 15

payload_reader :text, 72, 936, :_t