Class w.c.p.BufferingStateMachine(Object, protocol.Protocol):

Part of wader.common.protocol View In Hierarchy

Known subclasses: wader.common.protocol.SIMProtocol

A simple SM that handles low level communication with the device
Method __init__ Undocumented
Method cancel_current_delayed_call Cancels current ATCmd dellayed call if active
Method notify_success Notify success to current ATCmd callbacks
Method notify_failure Notify failure to current ATCmd errbacks
Method set_cmd Sets self.cmd to cmd
Method set_state Sets and logs the new state
Method transition_to_idle Transitions to idle state and
Method send_splitcmd Used to send the second part of a split command after prompt appears
Method emit_signal Emits a signal
Method dataReceived See twisted.internet.protocol.Protocol.dataReceived
Method process_notifications Processes unsolicited notifications in _buffer
Method handle_idle See the method comments
Method handle_waiting Undocumented
def __init__(self, device, udi):
Undocumented
def _timeout_eb(self):
Executed when a command exceeds its timeout
def cancel_current_delayed_call(self):
Cancels current ATCmd dellayed call if active
def notify_success(self, result):
Notify success to current ATCmd callbacks
def notify_failure(self, failure):
Notify failure to current ATCmd errbacks
def set_cmd(self, cmd):
Sets self.cmd to cmd
def set_state(self, state):
Sets and logs the new state
def transition_to_idle(self):
Transitions to idle state and
def send_splitcmd(self):
Used to send the second part of a split command after prompt appears
def emit_signal(self, signal, *args, **kwds):
Emits a signal
ParameterssignalThe name of the signal to emit
argsThe arguments for the signal signal
def dataReceived(self, data):
See twisted.internet.protocol.Protocol.dataReceived
def process_notifications(self, _buffer):
Processes unsolicited notifications in _buffer
Parameters_bufferBuffer to scan (type: str )
def handle_idle(self, data):
See the method comments
def handle_waiting(self, data):
Undocumented
API Documentation for wader-core, generated by pydoctor at 2008-08-27 16:53:37.