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
|
|||
|
Testwaterlevel Use testvalue tag text from each type to build test case the waterlevel message |
|
|||
BitVector
|
encode(params,
validate=False) Create a waterlevel binary message payload to pack into an AIS Msg waterlevel. |
||
dict
|
decode(bv,
validate=False) Unpack a waterlevel message |
||
| decodedac(bv, validate=False) | ||
| decodefid(bv, validate=False) | ||
| decodeefid(bv, validate=False) | ||
| decodetimetag_month(bv, validate=False) | ||
| decodetimetag_day(bv, validate=False) | ||
| decodetimetag_hour(bv, validate=False) | ||
| decodetimetag_min(bv, validate=False) | ||
| decodetimetag_sec(bv, validate=False) | ||
| decodestationid(bv, validate=False) | ||
| decodestationloc_longitude(bv, validate=False) | ||
| decodestationloc_latitude(bv, validate=False) | ||
| decodewaterlevel(bv, validate=False) | ||
| decodedatum(bv, validate=False) | ||
| decodesigma(bv, validate=False) | ||
| decodeo(bv, validate=False) | ||
| decodelevelinferred(bv, validate=False) | ||
| decodeflat_tolerance_exceeded(bv, validate=False) | ||
| decoderate_tolerance_exceeded(bv, validate=False) | ||
| decodetemp_tolerance_exceeded(bv, validate=False) | ||
| decodeexpected_height_exceeded(bv, validate=False) | ||
| decodelink_down(bv, validate=False) | ||
| decodetimeLastMeasured_month(bv, validate=False) | ||
| decodetimeLastMeasured_day(bv, validate=False) | ||
| decodetimeLastMeasured_hour(bv, validate=False) | ||
| decodetimeLastMeasured_min(bv, validate=False) | ||
| decodetimeLastMeasured_sec(bv, validate=False) | ||
stdout
|
printFields(params,
out=sys.stdout,
format='std') Print a waterlevel message to stdout. |
||
dict
|
testParams() Return a params file base on the testvalue tags. |
||
| addMsgOptions(parser) |
|
|||
|
__date__ = '2007-01-04' Date of last svn commit |
||
|
TrueBV = <ais.BitVector.BitVector object at 0x29952b0> Why always rebuild the True bit? This should speed things up a bunch |
||
|
FalseBV = <ais.BitVector.BitVector object at 0x2995330> Why always rebuild the False bit? This should speed things up a bunch |
||
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
||
|
msgDict = {'dac': '366', 'fid': '1', 'efid': '1', 'timetag_mon...
|
||
|
bitLen = len(bits)
|
||
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
|
Create a waterlevel binary message payload to pack into an AIS Msg waterlevel. Fields in params:
|
Unpack a waterlevel message Fields in params:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print a waterlevel 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
|
msgDictNone
|
bitLenNone
|
bitsNone
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Thu Jan 4 10:57:47 2007 | http://epydoc.sourceforge.net |