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
|
|||
|
Testshipdata Use testvalue tag text from each type to build test case the shipdata message |
|
|||
BitVector
|
encode(params,
validate=False) Create a shipdata binary message payload to pack into an AIS Msg shipdata. |
||
dict
|
decode(bv,
validate=False) Unpack a shipdata message |
||
| decodeMessageID(bv, validate=False) | ||
| decodeRepeatIndicator(bv, validate=False) | ||
| decodeUserID(bv, validate=False) | ||
| decodeAISversion(bv, validate=False) | ||
| decodeIMOnumber(bv, validate=False) | ||
| decodecallsign(bv, validate=False) | ||
| decodename(bv, validate=False) | ||
| decodeshipandcargo(bv, validate=False) | ||
| decodedimA(bv, validate=False) | ||
| decodedimB(bv, validate=False) | ||
| decodedimC(bv, validate=False) | ||
| decodedimD(bv, validate=False) | ||
| decodefixtype(bv, validate=False) | ||
| decodeETA(bv, validate=False) | ||
| decodedraught(bv, validate=False) | ||
| decodedestination(bv, validate=False) | ||
| decodedte(bv, validate=False) | ||
| decodeSpare(bv, validate=False) | ||
| printHtml(params, out=sys.stdout) | ||
stdout
|
printFields(params,
out=sys.stdout,
format='std',
fieldList=None) Print a Spare 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 0x2289ab0> Why always rebuild the True bit? This should speed things up a bunch |
||
|
FalseBV = <ais.BitVector.BitVector object at 0x2289910> Why always rebuild the False bit? This should speed things up a bunch |
||
|
fieldList = ['MessageID', 'RepeatIndicator', 'UserID', 'AISversi...
|
||
|
RepeatIndicatorEncodeLut = {'default': '0', 'do not repeat any more': '3'}
|
||
|
RepeatIndicatorDecodeLut = {'0': 'default', '3': 'do not repeat any more'}
|
||
|
fixtypeEncodeLut = {'combined GPS/GLONASS': '3', 'integrated navigation...
|
||
|
fixtypeDecodeLut = {'1': 'GPS', '0': 'undefined', '3': 'combined GPS/GL...
|
||
|
dteEncodeLut = {'available': '0', 'not available': '1'}
|
||
|
dteDecodeLut = {'1': 'not available', '0': 'available'}
|
||
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
||
|
outputChoices = 'std', 'html', 'csv'
|
||
|
outfile = file(options.outputFileName, 'w')
|
||
|
msgDict = {'MessageID': '5', 'RepeatIndicator': options.Repeat...
|
||
|
bitLen = len(bits)
|
||
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
||
|
buf = StringIO.StringIO()
|
||
|
result = buf.getvalue()
|
|
Create a shipdata binary message payload to pack into an AIS Msg shipdata. Fields in params:
|
Unpack a shipdata message Fields in params:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Print a Spare 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
|
fieldListNone
|
RepeatIndicatorEncodeLutNone
|
RepeatIndicatorDecodeLutNone
|
fixtypeEncodeLutNone
|
fixtypeDecodeLutNone
|
dteEncodeLutNone
|
dteDecodeLutNone
|
typeChoicesNone
|
outputChoicesNone
|
outfileNone
|
msgDictNone
|
bitLenNone
|
bitsNone
|
bufNone
|
resultNone
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Thu Jan 18 18:38:05 2007 | http://epydoc.sourceforge.net |