Class: CSP::Algorithms::Lookahead::NoAlgorithm

Inherits:
Object
  • Object
show all
Defined in:
lib/csp/algorithms/lookahead/no_algorithm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#problemObject (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