Trees | Indices | Help |
---|
|
Autogenerated python functions to serialize/deserialize binary messages.
Generated by: ./aisxmlbinmsg2py.py
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.
serialize: python to ais binary deserialize: ais binary to python
The generated code uses translators.py, binary.py, and aisstring.py which should be packaged with the resulting files.Requires:
Author: xmlbinmsg
Version: 4791
Status: under development
License: Generated code has no license
|
|||
|
Testsls_wind Use testvalue tag text from each type to build test case the sls_wind message |
|
|||
BitVector
|
encode(params,
validate=False) Create a sls_wind binary message payload to pack into an AIS Msg sls_wind. |
||
dict
|
decode(bv,
validate=False) Unpack a sls_wind message |
||
| decodetime_month(bv, validate=False) | ||
| decodetime_day(bv, validate=False) | ||
| decodetime_hour(bv, validate=False) | ||
| decodetime_min(bv, validate=False) | ||
| decodestationid(bv, validate=False) | ||
| decodepos_longitude(bv, validate=False) | ||
| decodepos_latitude(bv, validate=False) | ||
| decodeflow(bv, validate=False) | ||
| decodereserved(bv, validate=False) | ||
| printHtml(params, out=sys.stdout) | ||
|
printKml(params,
out=sys.stdout) KML (Keyhole Markup Language) for Google Earth, but without the header/footer |
||
stdout
|
printFields(params,
out=sys.stdout,
format='std') Print a reserved message to stdout. |
||
dict
|
testParams() Return a params file base on the testvalue tags. |
||
| addMsgOptions(parser) |
|
|||
|
__date__ = '2007-01-18' Date of last svn commit |
||
|
TrueBV = <ais.BitVector.BitVector object at 0x233c3b0> Why always rebuild the True bit? This should speed things up a bunch |
||
|
FalseBV = <ais.BitVector.BitVector object at 0x233c2b0> Why always rebuild the False bit? This should speed things up a bunch |
||
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
||
|
outputChoices = 'std', 'html', 'xml', 'kml', 'kml-full'
|
||
|
outfile = file(options.outputFileName, 'w')
|
||
|
msgDict = {'time_month': options.time_monthField, 'time_day': ...
|
||
|
bitLen = len(bits)
|
||
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
|
Create a sls_wind binary message payload to pack into an AIS Msg sls_wind. Fields in params:
|
Unpack a sls_wind message Fields in params:
|
|
|
|
|
|
|
|
|
|
|
|
Print a reserved message to stdout. Fields in params:
|
|
|
|
__date__Date of last svn commit
|
TrueBVWhy always rebuild the True bit? This should speed things up a bunch
|
FalseBVWhy always rebuild the False bit? This should speed things up a bunch
|
typeChoicesNone
|
outputChoicesNone
|
outfileNone
|
msgDictNone
|
bitLenNone
|
bitsNone
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Thu Jan 18 11:07:49 2007 | http://epydoc.sourceforge.net |