class Roby::DRoby::V5::BidirectionalGraphDumper::DRoby
Attributes
edges[R]
vertices[R]
Public Class Methods
new(vertices, edges)
click to toggle source
# File lib/roby/droby/v5/droby_dump.rb, line 9 def initialize(vertices, edges) @vertices = vertices @edges = edges end
Public Instance Methods
proxy(peer)
click to toggle source
# File lib/roby/droby/v5/droby_dump.rb, line 14 def proxy(peer) graph = Relations::BidirectionalDirectedAdjacencyGraph.new peer.load_groups(vertices) do |vertices| vertices.each { |v| graph.add_vertex(v) } edges.each_slice(3) do |u, v, info| graph.add_edge( peer.local_object(u), peer.local_object(v), peer.local_object(info)) end end graph end