Module imo_001_22_area_notice :: Class AreaNotice
[hide private]
[frames] | no frames]

Class AreaNotice

source code

object --+        
         |        
     AIVDM --+    
             |    
           BBM --+
                 |
                AreaNotice

Instance Methods [hide private]
 
__init__(self, area_type=None, when=None, duration=None, link_id=0, nmea_strings=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__unicode__(self, verbose=False) source code
 
__str__(self, verbose=False)
str(x)
source code
 
html(self, efactory=False)
return an embeddable html representation
source code
 
add_subarea(self, area) source code
 
get_bits(self, include_bin_hdr=False, mmsi=None, no_include_dac_fi=False)
Child classes must implement this.
source code

Inherited from BBM: get_bbm

Inherited from AIVDM: get_aivdm, get_bits_header, kml

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from BBM: max_payload_char

Properties [hide private]
  __geo_interface__
Return dictionary compatible with GeoJSON-AIVD

Inherited from object: __class__

Method Details [hide private]

__init__(self, area_type=None, when=None, duration=None, link_id=0, nmea_strings=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • area_type - 0..127 based on table 11.10
  • when (datetime (UTC)) - when the notice starts
  • duration - minutes for the notice to be in effect
  • nmea_strings - Pass 1 or more nmea strings as a list
Overrides: object.__init__

__str__(self, verbose=False)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

html(self, efactory=False)

source code 

return an embeddable html representation

Parameters:
  • efactory - return lxml E-factory

get_bits(self, include_bin_hdr=False, mmsi=None, no_include_dac_fi=False)

source code 

Child classes must implement this. Return a BitVector representation. Child classes do NOT include the Message ID, repeat indicator, or source mmsi

Parameters:
  • include_bin_hdr - If true, include the standard message header with source mmsi
Overrides: AIVDM.get_bits

Property Details [hide private]

__geo_interface__

Return dictionary compatible with GeoJSON-AIVD

Get Method:
unreachable.__geo_interface__(self) - Return dictionary compatible with GeoJSON-AIVD