Lines Matching refs:node
458 def is_sim_object(self, node):
459 return isinstance(node, dict) and 'path' in node
461 def find_all_objects(self, node):
462 if self.is_sim_object(node):
463 self.object_dicts[node['path']] = node
465 if isinstance(node, list):
466 for elem in node:
468 elif isinstance(node, dict):
469 for elem in node.values():
480 def parse_param_string(self, node):
481 if node is None:
483 elif self.is_sim_object(node):
484 return node['path']
486 return str(node)
500 JSON file as there is no explicit 'children' node. Take any
508 for name, node in obj.items():
509 if self.is_sim_object(node):
510 children.append((name, node['path']))
511 elif isinstance(node, list) and node != [] and all([
512 self.is_sim_object(e) for e in node ]):
513 children.append((name, [ e['path'] for e in node ]))
518 """Get the 'peer' element of any node with 'peer' and 'role'