Class: NMEAPlus::Message::AIS::VDMPayload::SubArea2
- Inherits:
-
SubAreaAnchored
- Object
- Payload
- SubArea
- SubAreaScaled
- SubAreaAnchored
- NMEAPlus::Message::AIS::VDMPayload::SubArea2
- Defined in:
- lib/nmea_plus/message/ais/vdm_payload/sub_area.rb
Overview
SubArea structure type 2: Sector
Instance Attribute Summary collapse
-
#boundary_left ⇒ Object
readonly
The field defined by the 9 bits starting at payload bit 69, formatted with the function Payload#_u(, , ).
-
#boundary_right ⇒ Object
readonly
The field defined by the 9 bits starting at payload bit 78, formatted with the function Payload#_u(, , ).
-
#radius ⇒ Object
readonly
The field defined by the 12 bits starting at payload bit 57, formatted with the function Payload#_u(, , ).
-
#radius_meters ⇒ Integer
readonly
Radius in meters, according to scale factor.
Attributes inherited from SubAreaAnchored
#latitude, #longitude, #precision
Attributes inherited from SubAreaScaled
Attributes inherited from SubArea
Attributes inherited from Payload
#fill_bits, #payload_bitstring
Method Summary
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
#boundary_left ⇒ Object (readonly)
Returns The field defined by the 9 bits starting at payload bit 69, formatted with the function Payload#_u(, , ).
82 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 82 payload_reader :boundary_left, 69, 9, :_u |
#boundary_right ⇒ Object (readonly)
Returns The field defined by the 9 bits starting at payload bit 78, formatted with the function Payload#_u(, , ).
83 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 83 payload_reader :boundary_right, 78, 9, :_u |
#radius ⇒ Object (readonly)
Returns The field defined by the 12 bits starting at payload bit 57, formatted with the function Payload#_u(, , ).
81 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 81 payload_reader :radius, 57, 12, :_u |
#radius_meters ⇒ Integer (readonly)
Returns Radius in meters, according to scale factor.
87 88 89 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 87 def radius_meters radius * scale_meters end |