Class ConstraintSolver::ConstraintList
In: lib/ConstraintList.rb
Parent: Array
Test::Unit::TestCase AllDifferentConstraintTest SolutionTest ConstraintSolverTest ConstraintListTest VariableTest DomainTest BinaryConstraintTest ProblemTest BinaryRelationTest Exception DomainWipeoutException UndoStackEmptyException AbstractConstraint BinaryConstraint AllDifferentConstraint Array ConstraintList BinaryRelation Variable Solution ConstraintSolver Problem Domain test/DomainTest.rb test/SolutionTest.rb lib/BinaryConstraint.rb lib/Variable.rb test/ConstraintListTest.rb lib/ConstraintList.rb test/ProblemTest.rb lib/Solution.rb test/BinaryConstraintTest.rb lib/ConstraintSolver.rb test/VariableTest.rb test/AllDifferentConstraintTest.rb lib/AllDifferentConstraint.rb lib/Problem.rb test/ConstraintSolverTest.rb lib/Domain.rb lib/AbstractConstraint.rb ConstraintSolver dot/m_19_0.png

This class represents a list of constraints.

Methods

Public Instance methods

Returns the ConstraintList that contains all constraints that involve variable and have values assigned to not all variables involved.

[Source]

# File lib/ConstraintList.rb, line 8
        def notAllAssignedWithVariable(variable)
            ConstraintList.new(self.select { |constraint|
                constraint.include?(variable) and not constraint.allAssigned?
            })
        end

[Validate]