Module pyinsim :: Class _OutSimPacket
[hide private]
[frames] | no frames]

Class _OutSimPacket

source code

UserDict.UserDict --+
                    |
                   _OutSimPacket

Class to handle an OutSim packet.
Instance Methods [hide private]
 
__init__(self, data, outsim)
Init the _OutSimPacket.
source code
 
outsim(self)
Get a reference to the OutSim object which created the packet.
source code
 
pack(self)
Pack the current packet values into a binary string.
source code

Inherited from UserDict.UserDict: __cmp__, __contains__, __delitem__, __getitem__, __len__, __repr__, __setitem__, clear, copy, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Class Methods [hide private]

Inherited from UserDict.UserDict: fromkeys

Method Details [hide private]

__init__(self, data, outsim)
(Constructor)

source code 

Init the _OutSimPacket.

Args:
data - The packet data as a binary formatted string.
Overrides: UserDict.UserDict.__init__

outsim(self)

source code 

Get a reference to the OutSim object which created the packet.

Returns:
The OutSim object.

pack(self)

source code 

Pack the current packet values into a binary string.

Returns:
A binary formatted string.