Package rocon_gateway :: Module master_api :: Class ConnectionCache
[frames] | no frames]

Class ConnectionCache

source code

object --+
         |
        ConnectionCache

Instance Methods
 
__init__(self, get_system_state)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
update(self, new_system_state=None)
Currently completely regenerating the connections dictionary and then taking diffs.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, get_system_state)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

update(self, new_system_state=None)

source code 

Currently completely regenerating the connections dictionary and then taking
diffs. Could be faster if we took diffs on the system state instead, but that's
a bit more awkward since each element has a variable list of nodes that we'd have
to check against to get good diffs. e.g.
  old_publishers = ['/chatter', ['/talker']]
  new_publishers = ['/chatter', ['/talker', '/babbler']]