Autogenerated python functions to serialize/deserialize binary
messages.
Need to then wrap these functions with the outer AIS packet and then
convert the whole binary blob to a NMEA string. Those functions are not
currently provided in this file.
Requires:
Author:
xmlbinmsg
Version:
4791
Status:
under development
License:
Generated code has no license
To Do:
FIX: put in a description of the message here with fields and
types.
Date:
2007-03-31
BitVector
|
encode(params,
validate=False)
Create a ChanMngmt binary message payload to pack into an AIS Msg
ChanMngmt. |
source code
|
|
dict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stdout
|
printFields(params,
out=sys.stdout,
format=' std ' ,
fieldList=None,
dbType=' postgres ' )
Print a ChanMngmt message to stdout. |
source code
|
|
str
|
sqlCreateStr(outfile=sys.stdout,
fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType=' postgres ' )
Return the SQL CREATE command for this message type |
source code
|
|
sqlhelp.create
|
sqlCreate(fields=None,
extraFields=None,
addCoastGuardFields=True,
dbType=' postgres ' )
Return the sqlhelp object to create the table. |
source code
|
|
str
|
sqlInsertStr(params,
outfile=sys.stdout,
extraParams=None,
dbType=' postgres ' )
Return the SQL INSERT command for this message type |
source code
|
|
sqlhelp.insert
|
|
str
|
|
dict
|
|
|
|
|
TrueBV = BitVector(bitstring= "1")
Why always rebuild the True bit? This should speed things up a
bunch
|
|
FalseBV = BitVector(bitstring= "0")
Why always rebuild the False bit? This should speed things up a
bunch
|
|
fieldList = ( ' MessageID ' , ' RepeatIndicator ' , ' UserID ' , ' Spare ' ...
|
|
fieldListPostgres = ( ' MessageID ' , ' RepeatIndicator ' , ' UserID ' , ...
|
|
toPgFields = { ' corner1_lat ' : ' corner1 ' , ' corner1_lon ' : ' corner ...
Go to the Postgis field names from the straight field name
|
|
fromPgFields = { ' corner1 ' : ( ' corner1_lon ' , ' corner1_lat ' ) , ' co ...
Go from the Postgis field names to the straight field name
|
|
pgTypes = { ' corner1 ' : ' POINT ' , ' corner2 ' : ' POINT ' }
Lookup table for each postgis field name to get its type.
|
|
RepeatIndicatorEncodeLut = { ' default ' : ' 0 ' , ' do not repeat any ...
|
|
RepeatIndicatorDecodeLut = { ' 0 ' : ' default ' , ' 3 ' : ' do not repea ...
|
|
TxRxModeEncodeLut = { ' Tx A, Rx A/Rx B ' : ' 1 ' , ' Tx A/Tx B, Rx A/ ...
|
|
TxRxModeDecodeLut = { ' 0 ' : ' Tx A/Tx B, Rx A/RX B ' , ' 1 ' : ' Tx A, ...
|
|
powerEncodeLut = { ' high ' : ' 0 ' , ' low ' : ' 1 ' }
|
|
powerDecodeLut = { ' 0 ' : ' high ' , ' 1 ' : ' low ' }
|
|
IndicatorTypeEncodeLut = { ' addressed ' : ' 1 ' , ' broadcast ' : ' 0 ' }
|
|
IndicatorTypeDecodeLut = { ' 0 ' : ' broadcast ' , ' 1 ' : ' addressed ' }
|
|
ChanABandwidthEncodeLut = { ' 12.5kHz ' : ' 1 ' , ' specified by chann ...
|
|
ChanABandwidthDecodeLut = { ' 0 ' : ' specified by channel number ' , ...
|
|
ChanBBandwidthEncodeLut = { ' 12.5kHz ' : ' 1 ' , ' specified by chann ...
|
|
ChanBBandwidthDecodeLut = { ' 0 ' : ' specified by channel number ' , ...
|
|
TransZoneSizeEncodeLut = { ' 1 ' : ' 0 ' , ' 2 ' : ' 1 ' , ' 3 ' : ' 2 ' , ' 4 ' : ' ...
|
|
TransZoneSizeDecodeLut = { ' 0 ' : ' 1 ' , ' 1 ' : ' 2 ' , ' 2 ' : ' 3 ' , ' 3 ' : ' ...
|