Class: Roby::Queries::NotMatcher::Tasks
- Inherits:
-
Roby::Queries::NotMatcher
- Object
- MatcherBase
- Roby::Queries::NotMatcher
- Roby::Queries::NotMatcher::Tasks
- 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 Attribute Summary
Attributes inherited from MatcherBase
Instance Method Summary collapse
-
#each_in_plan(plan, &block) ⇒ Object
Enumerate the objects matching self in the plan.
- #evaluate(plan) ⇒ Object
Methods inherited from Roby::Queries::NotMatcher
Methods included from DRoby::V5::Queries::NotMatcherDumper
Methods inherited from MatcherBase
#&, #add_neg_predicate, #add_predicate, declare_class_methods, #describe_failed_match, #each, #indexed_query?, #match, match_predicate, match_predicates, #negate, #reset, #to_a, #to_set, #|
Constructor Details
This class inherits a constructor from Roby::Queries::NotMatcher
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 |