class Roby::DRoby::V5::Queries::QueryDumper::DRoby

An intermediate representation of Query objects suitable to be sent to our peers.

Attributes

neg_plan_predicates[R]
plan_id[RW]
plan_predicates[R]
scope[RW]

Public Class Methods

new(*args) click to toggle source
# File lib/roby/droby/v5/droby_dump.rb, line 994
def initialize(*args)
    super
    @plan_predicates, @neg_plan_predicates = Set.new, Set.new
end

Public Instance Methods

proxy(peer) click to toggle source
# File lib/roby/droby/v5/droby_dump.rb, line 999
def proxy(peer)
    query = peer.local_plan(plan_id).find_tasks
    super(peer, matcher: query)
    query.plan_predicates.merge(plan_predicates)
    query.neg_plan_predicates.merge(neg_plan_predicates)
    if scope == :local
        query.local_scope
    else query.global_scope
    end
    query
end