| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
MessageFactory
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Add message class(es) to the message factory. The parameters to this method must be subclasses of BaseMessage. A MessageError will be raised if a message already exists in this factory with an identical name or MessageTypeID. |
Obtain a message class by specifying the packets MessageTypeID. If the message cannot be found a MessageError exception is raised. |
Obtain a message class by specifying the packets name. If the message cannot be found a MessageError exception is raised. |
Determine if message_instance is an instance of the named message class. Example: >>> tp = TestPacket1() >>> message_factory.is_a(tp, 'TestPacket1') True |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 13 20:33:07 2011 | http://epydoc.sourceforge.net |