Class v.c.b.Behaviour(Modal):

Part of vmc.common.behaviour View In Hierarchy

Known subclasses: vmc.cli.behaviour.CLIBehaviour, vmc.gtk.behaviour.GTKBehaviour

Implements interfaces: vmc.common.interfaces.INotificationListener

I am a meta-statemachine that synchronizes different state machines

I will make sure that each state machine is called in order and will notify any registered errback about any possible error that might occur during the process. Basically this process can succeed, or fail because one of the following reasons: In adittion, you can connect to several signals that I will emit when I transition from one state machine to another: For example, GTKBehaviour connects to PostInitExit and shows the main UI, this is done because NetReg can be a potentially expensive (time) operation and its better to show the UI asap. GTKBehaviour also connects to NetRegExit to stop the throbber and show the result.
Method __init__ Undocumented
Method __repr__ Undocumented
Method register_callback_for_signal Register callback for signal
Method register_errback_for_signal Register errback for signal
Method on_notification_received Called whenever a notification is received
Method error_handler Executed whenever an error occurs on one of my sub-state machines
Method start Undocumented
Class PreInit PreInit is the initial state, here we will set up the communication
Class Auth Auth is the second state, here we will authenticate against the device
Class PostInit PostInit is the third state, after successfully authenticating with
Class NetReg NetReg tries to register with the network and do the right thing.
Class ImDone final state

Inherited from Modal:

Class nil Undocumented
Method transitionTo Undocumented
def __init__(self, device, dialer, sm_callbacks, sm_errbacks):
Undocumented
def __repr__(self):
Undocumented
def _try_execute_callback(self, cb_name, *args, **kwds):
Undocumented
def register_callback_for_signal(self, signal, callback):
Register callback for signal
def register_errback_for_signal(self, signal, errback):
Register errback for signal
def on_notification_received(self, notification):

Called whenever a notification is received

I will notify the current SM about it
def _transition_to(self, _mode, *args, **kwds):

Transitions to state mode

I will try to execute my registered exit and enter callbacks with *args and **kwds
def error_handler(self, failure):

Executed whenever an error occurs on one of my sub-state machines

If I receive a FooError, I will try to execute the registered errback for FooError.
def start(self):
Undocumented
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.