Class: Roby::Queries::NotMatcher::Tasks

Inherits:
NotMatcher
  • Object
show all
Defined in:
lib/roby/queries/not_matcher.rb

Overview

Version of Roby::Queries::NotMatcher specialized for TaskMatcher

Do not create directly, use TaskMatcher#negate instead

Instance Method Summary collapse

Instance Method Details

#each_in_plan(plan, &block) ⇒ Object

Enumerate the objects matching self in the plan



30
31
32
33
34
# File 'lib/roby/queries/not_matcher.rb', line 30

def each_in_plan(plan, &block)
    return enum_for(__method__, plan) unless block_given?

    evaluate(plan).each_in_plan(plan, &block)
end

#evaluate(plan) ⇒ Object



25
26
27
# File 'lib/roby/queries/not_matcher.rb', line 25

def evaluate(plan)
    @op.evaluate(plan).negate
end