Package joy :: Module scratch :: Class Board
[hide private]
[frames] | no frames]

Class Board

source code


Instance Methods [hide private]
 
__init__(self, host="127.0.0.1", port=42001)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_doSensorUpdate(self, tok, upd) source code
 
close(self) source code
 
_autoConnect(self) source code
 
poll(self) source code
 
sensorUpdate(self, **kw) source code
 
broadcast(self, *arg) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_tokenize(cls, msg) source code
Class Variables [hide private]
  REX_STR = re.compile('\s*(?:"(([^"]|"")*)")\s*')
  REX_VAL = re.compile('\s*((?:-?\d*(.\d+)?)|(?:\w[-A-Za-z0-9_]*...
  REX_CMD = re.compile('\s*((?:sensor-update)|(?:broadcast))\s*')
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, host="127.0.0.1", port=42001)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

REX_VAL

Value:
re.compile('\s*((?:-?\d*(.\d+)?)|(?:\w[-A-Za-z0-9_]*))\s*')