Class: NMEAPlus::Message::AIS::VDMPayload::SubArea1

Inherits:
SubAreaAnchored show all
Defined in:
lib/nmea_plus/message/ais/vdm_payload/sub_area.rb

Overview

SubArea structure type 1: Rectangle

Instance Attribute Summary collapse

Attributes inherited from SubAreaAnchored

#latitude, #longitude, #precision

Attributes inherited from SubAreaScaled

#scale_factor, #scale_meters

Attributes inherited from SubArea

#shape_description, #shape_id

Attributes inherited from Payload

#fill_bits, #payload_bitstring

Instance Method Summary collapse

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

#dimension_eastObject (readonly)

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

Returns:

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



61
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 61

payload_reader :dimension_east, 57, 8, :_u

#dimension_east_metersInteger (readonly)

Returns Box dimension in meters, according to scale factor.

Returns:

  • (Integer)

    Box dimension in meters, according to scale factor



68
69
70
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 68

def dimension_east_meters
  dimension_east * scale_meters
end

#dimension_northObject (readonly)

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

Returns:

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



62
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 62

payload_reader :dimension_north, 65, 8, :_u

#orientationObject (readonly)

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

Returns:

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



64
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 64

payload_reader :orientation, 73, 9, :_u

Instance Method Details

#dimension_north_metersInteger

Returns Box dimension in meters, according to scale factor.

Returns:

  • (Integer)

    Box dimension in meters, according to scale factor



74
75
76
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 74

def dimension_north_meters
  dimension_north * scale_meters
end