Class: NoSE::Search::Constraint
- Defined in:
- lib/nose/search/constraints.rb
Overview
Base class for constraints
Direct Known Subclasses
CompletePlanConstraints, IndexPresenceConstraints, SpaceConstraint
Class Method Summary collapse
-
.apply(problem) ⇒ void
If this is not overridden, apply query-specific constraints.
-
.apply_query(*_args) ⇒ void
To be implemented in subclasses for query-specific constraints.
Class Method Details
.apply(problem) ⇒ void
This method returns an undefined value.
If this is not overridden, apply query-specific constraints
9 10 11 12 13 |
# File 'lib/nose/search/constraints.rb', line 9 def self.apply(problem) problem.queries.each_with_index do |query, q| apply_query query, q, problem end end |
.apply_query(*_args) ⇒ void
This method returns an undefined value.
To be implemented in subclasses for query-specific constraints
17 18 |
# File 'lib/nose/search/constraints.rb', line 17 def self.apply_query(*_args) end |