Class: CSP::Algorithms::Lookahead::NoAlgorithm
- Inherits:
-
Object
- Object
- CSP::Algorithms::Lookahead::NoAlgorithm
- Defined in:
- lib/csp/algorithms/lookahead/no_algorithm.rb
Instance Attribute Summary collapse
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
Instance Method Summary collapse
-
#call(variables:, assignment:, domains:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#initialize(problem) ⇒ NoAlgorithm
constructor
A new instance of NoAlgorithm.
Constructor Details
#initialize(problem) ⇒ NoAlgorithm
Returns a new instance of NoAlgorithm.
9 10 11 |
# File 'lib/csp/algorithms/lookahead/no_algorithm.rb', line 9 def initialize(problem) @problem = problem end |
Instance Attribute Details
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
7 8 9 |
# File 'lib/csp/algorithms/lookahead/no_algorithm.rb', line 7 def problem @problem end |
Instance Method Details
#call(variables:, assignment:, domains:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
13 14 15 |
# File 'lib/csp/algorithms/lookahead/no_algorithm.rb', line 13 def call(variables:, assignment:, domains:) # rubocop:disable Lint/UnusedMethodArgument domains end |