Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg8
- Defined in:
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb
Instance Attribute Summary collapse
-
#ais_version ⇒ Object
readonly
The field defined by 2 bits starting at bit 38 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#application_data_2b ⇒ Object
readonly
The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_d().
-
#application_data_6b ⇒ Object
readonly
The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_6b_string().
-
#application_data_8b ⇒ Object
readonly
The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_8b_data_string().
-
#callsign ⇒ Object
readonly
The field defined by 42 bits starting at bit 70 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().
-
#designated_area_code ⇒ Object
readonly
The field defined by 10 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#destination ⇒ Object
readonly
The field defined by 120 bits starting at bit 302 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().
-
#dte? ⇒ Object
readonly
The field defined by 1 bits starting at bit 422 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
-
#epfd_type ⇒ Object
readonly
The field defined by 4 bits starting at bit 270 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_e().
- #eta ⇒ Time readonly
-
#functional_id ⇒ Object
readonly
The field defined by 6 bits starting at bit 50 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#imo_number ⇒ Object
readonly
The field defined by 30 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#name ⇒ Object
readonly
The field defined by 120 bits starting at bit 112 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().
-
#ship_cargo_type ⇒ Object
readonly
The field defined by 8 bits starting at bit 232 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_e().
-
#ship_dimension_to_bow ⇒ Object
readonly
The field defined by 9 bits starting at bit 240 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#ship_dimension_to_port ⇒ Object
readonly
The field defined by 6 bits starting at bit 258 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#ship_dimension_to_starboard ⇒ Object
readonly
The field defined by 6 bits starting at bit 264 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#ship_dimension_to_stern ⇒ Object
readonly
The field defined by 9 bits starting at bit 249 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#static_draught ⇒ Object
readonly
The field defined by 8 bits starting at bit 294 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_U(1).
Attributes inherited from VDMMsg
#fill_bits, #message_type, #payload_bitstring, #repeat_indicator, #source_mmsi
Method Summary
Methods inherited from VDMMsg
#_2b_data_string, #_6b_ascii, #_6b_boolean, #_6b_integer, #_6b_integer_scaled, #_6b_string, #_6b_string_nullterminated, #_6b_twoscomplement, #_6b_unsigned_integer, #_6b_unsigned_integer_scaled, #_8b_data_string, #_access, #_bit_slices, payload_reader
Instance Attribute Details
#ais_version ⇒ Object (readonly)
Returns The field defined by 2 bits starting at bit 38 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
14 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 14 payload_reader :ais_version, 38, 2, :_u |
#application_data_2b ⇒ Object (readonly)
Returns The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_d().
10 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 10 payload_reader :application_data_2b, 56, 952, :_d |
#application_data_6b ⇒ Object (readonly)
Returns The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_6b_string().
11 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 11 payload_reader :application_data_6b, 56, 952, :_6b_string |
#application_data_8b ⇒ Object (readonly)
Returns The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_8b_data_string().
12 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 12 payload_reader :application_data_8b, 56, 952, :_8b_data_string |
#callsign ⇒ Object (readonly)
Returns The field defined by 42 bits starting at bit 70 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().
16 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 16 payload_reader :callsign, 70, 42, :_t |
#designated_area_code ⇒ Object (readonly)
Returns The field defined by 10 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
8 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 8 payload_reader :designated_area_code, 40, 10, :_u |
#destination ⇒ Object (readonly)
Returns The field defined by 120 bits starting at bit 302 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().
38 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 38 payload_reader :destination, 302, 120, :_t |
#dte? ⇒ Object (readonly)
Returns The field defined by 1 bits starting at bit 422 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
39 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 39 payload_reader :dte?, 422, 1, :_b |
#epfd_type ⇒ Object (readonly)
Returns The field defined by 4 bits starting at bit 270 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_e().
23 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 23 payload_reader :epfd_type, 270, 4, :_e |
#eta ⇒ Time (readonly)
27 28 29 30 31 32 33 34 35 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 27 def eta now = Time.now Time.new(now.year, _u(274, 4), _u(278, 5), _u(283, 5), _u(288, 6), 0) end |
#functional_id ⇒ Object (readonly)
Returns The field defined by 6 bits starting at bit 50 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
9 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 9 payload_reader :functional_id, 50, 6, :_u |
#imo_number ⇒ Object (readonly)
Returns The field defined by 30 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
15 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 15 payload_reader :imo_number, 40, 30, :_u |
#name ⇒ Object (readonly)
Returns The field defined by 120 bits starting at bit 112 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().
17 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 17 payload_reader :name, 112, 120, :_t |
#ship_cargo_type ⇒ Object (readonly)
Returns The field defined by 8 bits starting at bit 232 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_e().
18 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 18 payload_reader :ship_cargo_type, 232, 8, :_e |
#ship_dimension_to_bow ⇒ Object (readonly)
Returns The field defined by 9 bits starting at bit 240 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
19 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 19 payload_reader :ship_dimension_to_bow, 240, 9, :_u |
#ship_dimension_to_port ⇒ Object (readonly)
Returns The field defined by 6 bits starting at bit 258 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
21 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 21 payload_reader :ship_dimension_to_port, 258, 6, :_u |
#ship_dimension_to_starboard ⇒ Object (readonly)
Returns The field defined by 6 bits starting at bit 264 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
22 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 22 payload_reader :ship_dimension_to_starboard, 264, 6, :_u |
#ship_dimension_to_stern ⇒ Object (readonly)
Returns The field defined by 9 bits starting at bit 249 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
20 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 20 payload_reader :ship_dimension_to_stern, 249, 9, :_u |
#static_draught ⇒ Object (readonly)
Returns The field defined by 8 bits starting at bit 294 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_U(1).
37 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 37 payload_reader :static_draught, 294, 8, :_U, 1 |