Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg5

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

Overview

AIS Type 5: Static and Voyage Related Data

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

#ais_versionObject (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(, , )



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

payload_reader :ais_version, 38, 2, :_u

#callsignObject (readonly)

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

Returns:

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



13
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 13

payload_reader :callsign, 70, 42, :_t

#destinationObject (readonly)

Returns The field defined by the 120 bits starting at payload bit 302, formatted with the function Payload#_t(, , ).

Returns:

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



33
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 33

payload_reader :destination, 302, 120, :_t

#dte_ready?Object (readonly)

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

Returns:

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



34
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 34

payload_reader :dte_ready?, 422, 1, :_nb

#epfd_typeObject (readonly)

Returns The field defined by the 4 bits starting at payload bit 270, formatted with the function Payload#_e(, , ).

Returns:

  • The field defined by the 4 bits starting at payload bit 270, formatted with the function Payload#_e(, , )



20
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 20

payload_reader :epfd_type, 270, 4, :_e

#etaTime (readonly)

Returns Estimated Time of Arrival, in UTC.

Returns:

  • (Time)

    Estimated Time of Arrival, in UTC



24
25
26
27
28
29
30
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 24

def eta
  month  = _u(274, 4)
  day    = _u(278, 5)
  hour   = _u(283, 5)
  minute = _u(288, 6)
  _get_date_mdhm(month, day, hour, minute)
end

#imo_numberObject (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(, , )



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

payload_reader :imo_number, 40, 30, :_u

#nameObject (readonly)

Returns The field defined by the 120 bits starting at payload bit 112, formatted with the function Payload#_t(, , ).

Returns:

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



14
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 14

payload_reader :name, 112, 120, :_t

#ship_cargo_typeObject (readonly)

Returns The field defined by the 8 bits starting at payload bit 232, formatted with the function Payload#_e(, , ).

Returns:

  • The field defined by the 8 bits starting at payload bit 232, formatted with the function Payload#_e(, , )



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

payload_reader :ship_cargo_type, 232, 8, :_e

#ship_cargo_type_descriptionString (readonly)

Returns Cargo type description.

Returns:

  • (String)

    Cargo type description



38
39
40
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 38

def ship_cargo_type_description
  get_ship_cargo_type_description(ship_cargo_type)
end

#ship_dimension_to_bowObject (readonly)

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

Returns:

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



16
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 16

payload_reader :ship_dimension_to_bow, 240, 9, :_u

#ship_dimension_to_portObject (readonly)

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

Returns:

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



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

payload_reader :ship_dimension_to_port, 258, 6, :_u

#ship_dimension_to_starboardObject (readonly)

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

Returns:

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



19
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 19

payload_reader :ship_dimension_to_starboard, 264, 6, :_u

#ship_dimension_to_sternObject (readonly)

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

Returns:

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



17
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 17

payload_reader :ship_dimension_to_stern, 249, 9, :_u

#static_draughtObject (readonly)

Returns The field defined by the 8 bits starting at payload bit 294, formatted with the function Payload#_U(10, , ).

Returns:

  • The field defined by the 8 bits starting at payload bit 294, formatted with the function Payload#_U(10, , )



32
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb', line 32

payload_reader :static_draught, 294, 8, :_U, 10