ConstraintSolver 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/ConstraintSolver +24 -0
- data/doc/classes/Array.html +209 -0
- data/doc/classes/ConstraintSolver.html +242 -0
- data/doc/classes/ConstraintSolver/AbstractConstraint.html +317 -0
- data/doc/classes/ConstraintSolver/AllDifferentConstraint.html +451 -0
- data/doc/classes/ConstraintSolver/AllDifferentConstraintTest.html +397 -0
- data/doc/classes/ConstraintSolver/BinaryConstraint.html +483 -0
- data/doc/classes/ConstraintSolver/BinaryConstraintTest.html +367 -0
- data/doc/classes/ConstraintSolver/BinaryRelation.html +276 -0
- data/doc/classes/ConstraintSolver/BinaryRelationTest.html +194 -0
- data/doc/classes/ConstraintSolver/ConstraintList.html +208 -0
- data/doc/classes/ConstraintSolver/ConstraintListTest.html +252 -0
- data/doc/classes/ConstraintSolver/ConstraintSolver.html +353 -0
- data/doc/classes/ConstraintSolver/ConstraintSolverTest.html +403 -0
- data/doc/classes/ConstraintSolver/Domain.html +522 -0
- data/doc/classes/ConstraintSolver/DomainTest.html +356 -0
- data/doc/classes/ConstraintSolver/DomainWipeoutException.html +158 -0
- data/doc/classes/ConstraintSolver/Problem.html +239 -0
- data/doc/classes/ConstraintSolver/ProblemTest.html +227 -0
- data/doc/classes/ConstraintSolver/Solution.html +342 -0
- data/doc/classes/ConstraintSolver/SolutionTest.html +250 -0
- data/doc/classes/ConstraintSolver/UndoStackEmptyException.html +158 -0
- data/doc/classes/ConstraintSolver/Variable.html +418 -0
- data/doc/classes/ConstraintSolver/VariableTest.html +284 -0
- data/doc/classes/ExtensionsTest.html +233 -0
- data/doc/classes/Fixnum.html +153 -0
- data/doc/created.rid +1 -0
- data/doc/dot/f_0.dot +38 -0
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +392 -0
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_10.dot +392 -0
- data/doc/dot/f_10.png +0 -0
- data/doc/dot/f_11.dot +38 -0
- data/doc/dot/f_11.png +0 -0
- data/doc/dot/f_12.dot +392 -0
- data/doc/dot/f_12.png +0 -0
- data/doc/dot/f_13.dot +392 -0
- data/doc/dot/f_13.png +0 -0
- data/doc/dot/f_14.dot +392 -0
- data/doc/dot/f_14.png +0 -0
- data/doc/dot/f_15.dot +392 -0
- data/doc/dot/f_15.png +0 -0
- data/doc/dot/f_16.dot +392 -0
- data/doc/dot/f_16.png +0 -0
- data/doc/dot/f_17.dot +392 -0
- data/doc/dot/f_17.png +0 -0
- data/doc/dot/f_18.dot +392 -0
- data/doc/dot/f_18.png +0 -0
- data/doc/dot/f_19.dot +392 -0
- data/doc/dot/f_19.png +0 -0
- data/doc/dot/f_2.dot +392 -0
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/f_3.dot +392 -0
- data/doc/dot/f_3.png +0 -0
- data/doc/dot/f_4.dot +392 -0
- data/doc/dot/f_4.png +0 -0
- data/doc/dot/f_5.dot +392 -0
- data/doc/dot/f_5.png +0 -0
- data/doc/dot/f_6.dot +14 -0
- data/doc/dot/f_6.png +0 -0
- data/doc/dot/f_7.dot +392 -0
- data/doc/dot/f_7.png +0 -0
- data/doc/dot/f_8.dot +392 -0
- data/doc/dot/f_8.png +0 -0
- data/doc/dot/f_9.dot +392 -0
- data/doc/dot/f_9.png +0 -0
- data/doc/dot/m_10_0.dot +392 -0
- data/doc/dot/m_10_0.png +0 -0
- data/doc/dot/m_12_0.dot +392 -0
- data/doc/dot/m_12_0.png +0 -0
- data/doc/dot/m_13_0.dot +392 -0
- data/doc/dot/m_13_0.png +0 -0
- data/doc/dot/m_14_0.dot +392 -0
- data/doc/dot/m_14_0.png +0 -0
- data/doc/dot/m_15_0.dot +392 -0
- data/doc/dot/m_15_0.png +0 -0
- data/doc/dot/m_16_0.dot +392 -0
- data/doc/dot/m_16_0.png +0 -0
- data/doc/dot/m_17_0.dot +392 -0
- data/doc/dot/m_17_0.png +0 -0
- data/doc/dot/m_18_0.dot +392 -0
- data/doc/dot/m_18_0.png +0 -0
- data/doc/dot/m_19_0.dot +392 -0
- data/doc/dot/m_19_0.png +0 -0
- data/doc/dot/m_1_0.dot +392 -0
- data/doc/dot/m_1_0.png +0 -0
- data/doc/dot/m_2_0.dot +392 -0
- data/doc/dot/m_2_0.png +0 -0
- data/doc/dot/m_3_0.dot +392 -0
- data/doc/dot/m_3_0.png +0 -0
- data/doc/dot/m_4_0.dot +392 -0
- data/doc/dot/m_4_0.png +0 -0
- data/doc/dot/m_5_0.dot +392 -0
- data/doc/dot/m_5_0.png +0 -0
- data/doc/dot/m_7_0.dot +392 -0
- data/doc/dot/m_7_0.png +0 -0
- data/doc/dot/m_8_0.dot +392 -0
- data/doc/dot/m_8_0.png +0 -0
- data/doc/dot/m_9_0.dot +392 -0
- data/doc/dot/m_9_0.png +0 -0
- data/doc/files/lib/AbstractConstraint_rb.html +148 -0
- data/doc/files/lib/AllDifferentConstraint_rb.html +156 -0
- data/doc/files/lib/BinaryConstraint_rb.html +155 -0
- data/doc/files/lib/ConstraintList_rb.html +148 -0
- data/doc/files/lib/ConstraintSolver_rb.html +162 -0
- data/doc/files/lib/Domain_rb.html +155 -0
- data/doc/files/lib/Problem_rb.html +148 -0
- data/doc/files/lib/Solution_rb.html +148 -0
- data/doc/files/lib/Variable_rb.html +148 -0
- data/doc/files/lib/extensions_rb.html +108 -0
- data/doc/files/test/AllDifferentConstraintTest_rb.html +158 -0
- data/doc/files/test/BinaryConstraintTest_rb.html +158 -0
- data/doc/files/test/ConstraintListTest_rb.html +160 -0
- data/doc/files/test/ConstraintSolverTest_rb.html +164 -0
- data/doc/files/test/DomainTest_rb.html +156 -0
- data/doc/files/test/ProblemTest_rb.html +160 -0
- data/doc/files/test/SolutionTest_rb.html +159 -0
- data/doc/files/test/TestSuite_rb.html +113 -0
- data/doc/files/test/VariableTest_rb.html +157 -0
- data/doc/files/test/extensionsTest_rb.html +118 -0
- data/doc/fr_class_index.html +51 -0
- data/doc/fr_file_index.html +46 -0
- data/doc/fr_method_index.html +133 -0
- data/doc/index.html +24 -0
- data/examples/example.rb +7 -0
- data/examples/queens.rb +13 -0
- data/examples/soft.rb +14 -0
- data/lib/AbstractConstraint.rb +45 -0
- data/lib/AllDifferentConstraint.rb +160 -0
- data/lib/BinaryConstraint.rb +187 -0
- data/lib/ConstraintList.rb +31 -0
- data/lib/ConstraintSolver.rb +213 -0
- data/lib/Domain.rb +100 -0
- data/lib/GraphUtils.rb +293 -0
- data/lib/OneOfEqualsConstraint.rb +81 -0
- data/lib/Problem.rb +30 -0
- data/lib/Solution.rb +56 -0
- data/lib/TupleConstraint.rb +111 -0
- data/lib/Variable.rb +74 -0
- data/lib/extensions.rb +55 -0
- data/test/AllDifferentConstraintTest.rb +140 -0
- data/test/BinaryConstraintTest.rb +108 -0
- data/test/ConstraintListTest.rb +41 -0
- data/test/ConstraintSolverTest.rb +274 -0
- data/test/DomainTest.rb +83 -0
- data/test/GraphUtilsTest.rb +83 -0
- data/test/OneOfEqualsConstraintTest.rb +82 -0
- data/test/ProblemTest.rb +35 -0
- data/test/SolutionTest.rb +35 -0
- data/test/TestSuite.rb +10 -0
- data/test/TupleConstraintTest.rb +151 -0
- data/test/VariableTest.rb +47 -0
- data/test/extensionsTest.rb +57 -0
- metadata +212 -0
@@ -0,0 +1,158 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: BinaryConstraintTest.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>BinaryConstraintTest.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>test/BinaryConstraintTest.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Thu Apr 12 14:06:15 +0200 2007</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
<div id="diagram">
|
71
|
+
<map id="map" name="map">
|
72
|
+
<area shape="rect" coords="1537,5,1665,53" href="../../classes/Test/Unit/TestCase.html" alt="Test::Unit::TestCase" />
|
73
|
+
<area shape="rect" coords="937,133,1089,181" href="../../classes/ConstraintSolver/AllDifferentConstraintTest.html" alt="AllDifferentConstraintTest" />
|
74
|
+
<area shape="rect" coords="2305,133,2396,181" href="../../classes/ConstraintSolver/SolutionTest.html" alt="SolutionTest" />
|
75
|
+
<area shape="rect" coords="204,133,335,181" href="../../classes/ConstraintSolver/ConstraintSolverTest.html" alt="ConstraintSolverTest" />
|
76
|
+
<area shape="rect" coords="1923,133,2040,181" href="../../classes/ConstraintSolver/ConstraintListTest.html" alt="ConstraintListTest" />
|
77
|
+
<area shape="rect" coords="1123,133,1213,181" href="../../classes/ConstraintSolver/VariableTest.html" alt="VariableTest" />
|
78
|
+
<area shape="rect" coords="2429,133,2517,181" href="../../classes/ConstraintSolver/DomainTest.html" alt="DomainTest" />
|
79
|
+
<area shape="rect" coords="1387,133,1517,181" href="../../classes/ConstraintSolver/BinaryConstraintTest.html" alt="BinaryConstraintTest" />
|
80
|
+
<area shape="rect" coords="1797,133,1888,181" href="../../classes/ConstraintSolver/ProblemTest.html" alt="ProblemTest" />
|
81
|
+
<area shape="rect" coords="1541,133,1661,181" href="../../classes/ConstraintSolver/BinaryRelationTest.html" alt="BinaryRelationTest" />
|
82
|
+
<area shape="rect" coords="589,5,667,53" href="../../classes/Exception.html" alt="Exception" />
|
83
|
+
<area shape="rect" coords="463,133,615,181" href="../../classes/ConstraintSolver/DomainWipeoutException.html" alt="DomainWipeoutException" />
|
84
|
+
<area shape="rect" coords="639,133,799,181" href="../../classes/ConstraintSolver/UndoStackEmptyException.html" alt="UndoStackEmptyException" />
|
85
|
+
<area shape="rect" coords="53,133,171,181" href="../../classes/ConstraintSolver/AbstractConstraint.html" alt="AbstractConstraint" />
|
86
|
+
<area shape="rect" coords="160,237,269,285" href="../../classes/ConstraintSolver/BinaryConstraint.html" alt="BinaryConstraint" />
|
87
|
+
<area shape="rect" coords="301,237,432,285" href="../../classes/ConstraintSolver/AllDifferentConstraint.html" alt="AllDifferentConstraint" />
|
88
|
+
<area shape="rect" coords="2085,5,2157,53" href="../../classes/Array.html" alt="Array" />
|
89
|
+
<area shape="rect" coords="2073,133,2169,181" href="../../classes/ConstraintSolver/ConstraintList.html" alt="ConstraintList" />
|
90
|
+
<area shape="rect" coords="37,237,136,285" href="../../classes/ConstraintSolver/BinaryRelation.html" alt="BinaryRelation" />
|
91
|
+
<area shape="rect" coords="2201,133,2273,181" href="../../classes/ConstraintSolver/Variable.html" alt="Variable" />
|
92
|
+
<area shape="rect" coords="1693,133,1765,181" href="../../classes/ConstraintSolver/Solution.html" alt="Solution" />
|
93
|
+
<area shape="rect" coords="1245,133,1355,181" href="../../classes/ConstraintSolver/ConstraintSolver.html" alt="ConstraintSolver" />
|
94
|
+
<area shape="rect" coords="831,133,903,181" href="../../classes/ConstraintSolver/Problem.html" alt="Problem" />
|
95
|
+
<area shape="rect" coords="367,133,439,181" href="../../classes/ConstraintSolver/Domain.html" alt="Domain" />
|
96
|
+
<area shape="rect" coords="2419,99,2531,192" href="../../classes/ConstraintSolver.html" alt="test/DomainTest.rb" />
|
97
|
+
<area shape="rect" coords="2295,99,2408,192" href="../../classes/ConstraintSolver.html" alt="test/SolutionTest.rb" />
|
98
|
+
<area shape="rect" coords="27,203,280,296" href="../../classes/ConstraintSolver.html" alt="lib/BinaryConstraint.rb" />
|
99
|
+
<area shape="rect" coords="2191,99,2284,192" href="../../classes/ConstraintSolver.html" alt="lib/Variable.rb" />
|
100
|
+
<area shape="rect" coords="1912,99,2052,192" href="../../classes/ConstraintSolver.html" alt="test/ConstraintListTest.rb" />
|
101
|
+
<area shape="rect" coords="2063,99,2180,192" href="../../classes/ConstraintSolver.html" alt="lib/ConstraintList.rb" />
|
102
|
+
<area shape="rect" coords="1787,99,1901,192" href="../../classes/ConstraintSolver.html" alt="test/ProblemTest.rb" />
|
103
|
+
<area shape="rect" coords="1683,99,1776,192" href="../../classes/ConstraintSolver.html" alt="lib/Solution.rb" />
|
104
|
+
<area shape="rect" coords="1376,99,1672,192" href="../../classes/ConstraintSolver.html" alt="test/BinaryConstraintTest.rb" />
|
105
|
+
<area shape="rect" coords="1235,99,1365,192" href="../../classes/ConstraintSolver.html" alt="lib/ConstraintSolver.rb" />
|
106
|
+
<area shape="rect" coords="1111,99,1224,192" href="../../classes/ConstraintSolver.html" alt="test/VariableTest.rb" />
|
107
|
+
<area shape="rect" coords="924,99,1100,192" href="../../classes/ConstraintSolver.html" alt="test/AllDifferentConstraintTest.rb" />
|
108
|
+
<area shape="rect" coords="291,203,443,296" href="../../classes/ConstraintSolver.html" alt="lib/AllDifferentConstraint.rb" />
|
109
|
+
<area shape="rect" coords="820,99,913,192" href="../../classes/ConstraintSolver.html" alt="lib/Problem.rb" />
|
110
|
+
<area shape="rect" coords="192,99,345,192" href="../../classes/ConstraintSolver.html" alt="test/ConstraintSolverTest.rb" />
|
111
|
+
<area shape="rect" coords="356,99,809,192" href="../../classes/ConstraintSolver.html" alt="lib/Domain.rb" />
|
112
|
+
<area shape="rect" coords="43,99,181,192" href="../../classes/ConstraintSolver.html" alt="lib/AbstractConstraint.rb" />
|
113
|
+
<area shape="rect" coords="16,64,2541,307" href="../../classes/ConstraintSolver.html" alt="ConstraintSolver" />
|
114
|
+
</map>
|
115
|
+
<img src="../../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png">
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
<div id="requires-list">
|
120
|
+
<h3 class="section-bar">Required files</h3>
|
121
|
+
|
122
|
+
<div class="name-list">
|
123
|
+
test/unit
|
124
|
+
BinaryConstraint
|
125
|
+
Variable
|
126
|
+
Domain
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
</div>
|
131
|
+
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
<!-- if includes -->
|
137
|
+
|
138
|
+
<div id="section">
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<!-- if method_list -->
|
148
|
+
|
149
|
+
|
150
|
+
</div>
|
151
|
+
|
152
|
+
|
153
|
+
<div id="validator-badges">
|
154
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
</body>
|
158
|
+
</html>
|
@@ -0,0 +1,160 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: ConstraintListTest.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>ConstraintListTest.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>test/ConstraintListTest.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Thu Apr 12 14:06:24 +0200 2007</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
<div id="diagram">
|
71
|
+
<map id="map" name="map">
|
72
|
+
<area shape="rect" coords="1537,5,1665,53" href="../../classes/Test/Unit/TestCase.html" alt="Test::Unit::TestCase" />
|
73
|
+
<area shape="rect" coords="937,133,1089,181" href="../../classes/ConstraintSolver/AllDifferentConstraintTest.html" alt="AllDifferentConstraintTest" />
|
74
|
+
<area shape="rect" coords="2305,133,2396,181" href="../../classes/ConstraintSolver/SolutionTest.html" alt="SolutionTest" />
|
75
|
+
<area shape="rect" coords="204,133,335,181" href="../../classes/ConstraintSolver/ConstraintSolverTest.html" alt="ConstraintSolverTest" />
|
76
|
+
<area shape="rect" coords="1923,133,2040,181" href="../../classes/ConstraintSolver/ConstraintListTest.html" alt="ConstraintListTest" />
|
77
|
+
<area shape="rect" coords="1123,133,1213,181" href="../../classes/ConstraintSolver/VariableTest.html" alt="VariableTest" />
|
78
|
+
<area shape="rect" coords="2429,133,2517,181" href="../../classes/ConstraintSolver/DomainTest.html" alt="DomainTest" />
|
79
|
+
<area shape="rect" coords="1387,133,1517,181" href="../../classes/ConstraintSolver/BinaryConstraintTest.html" alt="BinaryConstraintTest" />
|
80
|
+
<area shape="rect" coords="1797,133,1888,181" href="../../classes/ConstraintSolver/ProblemTest.html" alt="ProblemTest" />
|
81
|
+
<area shape="rect" coords="1541,133,1661,181" href="../../classes/ConstraintSolver/BinaryRelationTest.html" alt="BinaryRelationTest" />
|
82
|
+
<area shape="rect" coords="589,5,667,53" href="../../classes/Exception.html" alt="Exception" />
|
83
|
+
<area shape="rect" coords="463,133,615,181" href="../../classes/ConstraintSolver/DomainWipeoutException.html" alt="DomainWipeoutException" />
|
84
|
+
<area shape="rect" coords="639,133,799,181" href="../../classes/ConstraintSolver/UndoStackEmptyException.html" alt="UndoStackEmptyException" />
|
85
|
+
<area shape="rect" coords="53,133,171,181" href="../../classes/ConstraintSolver/AbstractConstraint.html" alt="AbstractConstraint" />
|
86
|
+
<area shape="rect" coords="160,237,269,285" href="../../classes/ConstraintSolver/BinaryConstraint.html" alt="BinaryConstraint" />
|
87
|
+
<area shape="rect" coords="301,237,432,285" href="../../classes/ConstraintSolver/AllDifferentConstraint.html" alt="AllDifferentConstraint" />
|
88
|
+
<area shape="rect" coords="2085,5,2157,53" href="../../classes/Array.html" alt="Array" />
|
89
|
+
<area shape="rect" coords="2073,133,2169,181" href="../../classes/ConstraintSolver/ConstraintList.html" alt="ConstraintList" />
|
90
|
+
<area shape="rect" coords="37,237,136,285" href="../../classes/ConstraintSolver/BinaryRelation.html" alt="BinaryRelation" />
|
91
|
+
<area shape="rect" coords="2201,133,2273,181" href="../../classes/ConstraintSolver/Variable.html" alt="Variable" />
|
92
|
+
<area shape="rect" coords="1693,133,1765,181" href="../../classes/ConstraintSolver/Solution.html" alt="Solution" />
|
93
|
+
<area shape="rect" coords="1245,133,1355,181" href="../../classes/ConstraintSolver/ConstraintSolver.html" alt="ConstraintSolver" />
|
94
|
+
<area shape="rect" coords="831,133,903,181" href="../../classes/ConstraintSolver/Problem.html" alt="Problem" />
|
95
|
+
<area shape="rect" coords="367,133,439,181" href="../../classes/ConstraintSolver/Domain.html" alt="Domain" />
|
96
|
+
<area shape="rect" coords="2419,99,2531,192" href="../../classes/ConstraintSolver.html" alt="test/DomainTest.rb" />
|
97
|
+
<area shape="rect" coords="2295,99,2408,192" href="../../classes/ConstraintSolver.html" alt="test/SolutionTest.rb" />
|
98
|
+
<area shape="rect" coords="27,203,280,296" href="../../classes/ConstraintSolver.html" alt="lib/BinaryConstraint.rb" />
|
99
|
+
<area shape="rect" coords="2191,99,2284,192" href="../../classes/ConstraintSolver.html" alt="lib/Variable.rb" />
|
100
|
+
<area shape="rect" coords="1912,99,2052,192" href="../../classes/ConstraintSolver.html" alt="test/ConstraintListTest.rb" />
|
101
|
+
<area shape="rect" coords="2063,99,2180,192" href="../../classes/ConstraintSolver.html" alt="lib/ConstraintList.rb" />
|
102
|
+
<area shape="rect" coords="1787,99,1901,192" href="../../classes/ConstraintSolver.html" alt="test/ProblemTest.rb" />
|
103
|
+
<area shape="rect" coords="1683,99,1776,192" href="../../classes/ConstraintSolver.html" alt="lib/Solution.rb" />
|
104
|
+
<area shape="rect" coords="1376,99,1672,192" href="../../classes/ConstraintSolver.html" alt="test/BinaryConstraintTest.rb" />
|
105
|
+
<area shape="rect" coords="1235,99,1365,192" href="../../classes/ConstraintSolver.html" alt="lib/ConstraintSolver.rb" />
|
106
|
+
<area shape="rect" coords="1111,99,1224,192" href="../../classes/ConstraintSolver.html" alt="test/VariableTest.rb" />
|
107
|
+
<area shape="rect" coords="924,99,1100,192" href="../../classes/ConstraintSolver.html" alt="test/AllDifferentConstraintTest.rb" />
|
108
|
+
<area shape="rect" coords="291,203,443,296" href="../../classes/ConstraintSolver.html" alt="lib/AllDifferentConstraint.rb" />
|
109
|
+
<area shape="rect" coords="820,99,913,192" href="../../classes/ConstraintSolver.html" alt="lib/Problem.rb" />
|
110
|
+
<area shape="rect" coords="192,99,345,192" href="../../classes/ConstraintSolver.html" alt="test/ConstraintSolverTest.rb" />
|
111
|
+
<area shape="rect" coords="356,99,809,192" href="../../classes/ConstraintSolver.html" alt="lib/Domain.rb" />
|
112
|
+
<area shape="rect" coords="43,99,181,192" href="../../classes/ConstraintSolver.html" alt="lib/AbstractConstraint.rb" />
|
113
|
+
<area shape="rect" coords="16,64,2541,307" href="../../classes/ConstraintSolver.html" alt="ConstraintSolver" />
|
114
|
+
</map>
|
115
|
+
<img src="../../dot/f_8.png" usemap="#map" border="0" alt="dot/f_8.png">
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
<div id="requires-list">
|
120
|
+
<h3 class="section-bar">Required files</h3>
|
121
|
+
|
122
|
+
<div class="name-list">
|
123
|
+
test/unit
|
124
|
+
ConstraintList
|
125
|
+
BinaryConstraint
|
126
|
+
Variable
|
127
|
+
Domain
|
128
|
+
AllDifferentConstraint
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
|
138
|
+
<!-- if includes -->
|
139
|
+
|
140
|
+
<div id="section">
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<!-- if method_list -->
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
|
155
|
+
<div id="validator-badges">
|
156
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
157
|
+
</div>
|
158
|
+
|
159
|
+
</body>
|
160
|
+
</html>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: ConstraintSolverTest.rb</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>ConstraintSolverTest.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>test/ConstraintSolverTest.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sat Apr 14 16:15:29 +0200 2007</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
<div id="diagram">
|
71
|
+
<map id="map" name="map">
|
72
|
+
<area shape="rect" coords="1537,5,1665,53" href="../../classes/Test/Unit/TestCase.html" alt="Test::Unit::TestCase" />
|
73
|
+
<area shape="rect" coords="937,133,1089,181" href="../../classes/ConstraintSolver/AllDifferentConstraintTest.html" alt="AllDifferentConstraintTest" />
|
74
|
+
<area shape="rect" coords="2305,133,2396,181" href="../../classes/ConstraintSolver/SolutionTest.html" alt="SolutionTest" />
|
75
|
+
<area shape="rect" coords="204,133,335,181" href="../../classes/ConstraintSolver/ConstraintSolverTest.html" alt="ConstraintSolverTest" />
|
76
|
+
<area shape="rect" coords="1923,133,2040,181" href="../../classes/ConstraintSolver/ConstraintListTest.html" alt="ConstraintListTest" />
|
77
|
+
<area shape="rect" coords="1123,133,1213,181" href="../../classes/ConstraintSolver/VariableTest.html" alt="VariableTest" />
|
78
|
+
<area shape="rect" coords="2429,133,2517,181" href="../../classes/ConstraintSolver/DomainTest.html" alt="DomainTest" />
|
79
|
+
<area shape="rect" coords="1387,133,1517,181" href="../../classes/ConstraintSolver/BinaryConstraintTest.html" alt="BinaryConstraintTest" />
|
80
|
+
<area shape="rect" coords="1797,133,1888,181" href="../../classes/ConstraintSolver/ProblemTest.html" alt="ProblemTest" />
|
81
|
+
<area shape="rect" coords="1541,133,1661,181" href="../../classes/ConstraintSolver/BinaryRelationTest.html" alt="BinaryRelationTest" />
|
82
|
+
<area shape="rect" coords="589,5,667,53" href="../../classes/Exception.html" alt="Exception" />
|
83
|
+
<area shape="rect" coords="463,133,615,181" href="../../classes/ConstraintSolver/DomainWipeoutException.html" alt="DomainWipeoutException" />
|
84
|
+
<area shape="rect" coords="639,133,799,181" href="../../classes/ConstraintSolver/UndoStackEmptyException.html" alt="UndoStackEmptyException" />
|
85
|
+
<area shape="rect" coords="53,133,171,181" href="../../classes/ConstraintSolver/AbstractConstraint.html" alt="AbstractConstraint" />
|
86
|
+
<area shape="rect" coords="160,237,269,285" href="../../classes/ConstraintSolver/BinaryConstraint.html" alt="BinaryConstraint" />
|
87
|
+
<area shape="rect" coords="301,237,432,285" href="../../classes/ConstraintSolver/AllDifferentConstraint.html" alt="AllDifferentConstraint" />
|
88
|
+
<area shape="rect" coords="2085,5,2157,53" href="../../classes/Array.html" alt="Array" />
|
89
|
+
<area shape="rect" coords="2073,133,2169,181" href="../../classes/ConstraintSolver/ConstraintList.html" alt="ConstraintList" />
|
90
|
+
<area shape="rect" coords="37,237,136,285" href="../../classes/ConstraintSolver/BinaryRelation.html" alt="BinaryRelation" />
|
91
|
+
<area shape="rect" coords="2201,133,2273,181" href="../../classes/ConstraintSolver/Variable.html" alt="Variable" />
|
92
|
+
<area shape="rect" coords="1693,133,1765,181" href="../../classes/ConstraintSolver/Solution.html" alt="Solution" />
|
93
|
+
<area shape="rect" coords="1245,133,1355,181" href="../../classes/ConstraintSolver/ConstraintSolver.html" alt="ConstraintSolver" />
|
94
|
+
<area shape="rect" coords="831,133,903,181" href="../../classes/ConstraintSolver/Problem.html" alt="Problem" />
|
95
|
+
<area shape="rect" coords="367,133,439,181" href="../../classes/ConstraintSolver/Domain.html" alt="Domain" />
|
96
|
+
<area shape="rect" coords="2419,99,2531,192" href="../../classes/ConstraintSolver.html" alt="test/DomainTest.rb" />
|
97
|
+
<area shape="rect" coords="2295,99,2408,192" href="../../classes/ConstraintSolver.html" alt="test/SolutionTest.rb" />
|
98
|
+
<area shape="rect" coords="27,203,280,296" href="../../classes/ConstraintSolver.html" alt="lib/BinaryConstraint.rb" />
|
99
|
+
<area shape="rect" coords="2191,99,2284,192" href="../../classes/ConstraintSolver.html" alt="lib/Variable.rb" />
|
100
|
+
<area shape="rect" coords="1912,99,2052,192" href="../../classes/ConstraintSolver.html" alt="test/ConstraintListTest.rb" />
|
101
|
+
<area shape="rect" coords="2063,99,2180,192" href="../../classes/ConstraintSolver.html" alt="lib/ConstraintList.rb" />
|
102
|
+
<area shape="rect" coords="1787,99,1901,192" href="../../classes/ConstraintSolver.html" alt="test/ProblemTest.rb" />
|
103
|
+
<area shape="rect" coords="1683,99,1776,192" href="../../classes/ConstraintSolver.html" alt="lib/Solution.rb" />
|
104
|
+
<area shape="rect" coords="1376,99,1672,192" href="../../classes/ConstraintSolver.html" alt="test/BinaryConstraintTest.rb" />
|
105
|
+
<area shape="rect" coords="1235,99,1365,192" href="../../classes/ConstraintSolver.html" alt="lib/ConstraintSolver.rb" />
|
106
|
+
<area shape="rect" coords="1111,99,1224,192" href="../../classes/ConstraintSolver.html" alt="test/VariableTest.rb" />
|
107
|
+
<area shape="rect" coords="924,99,1100,192" href="../../classes/ConstraintSolver.html" alt="test/AllDifferentConstraintTest.rb" />
|
108
|
+
<area shape="rect" coords="291,203,443,296" href="../../classes/ConstraintSolver.html" alt="lib/AllDifferentConstraint.rb" />
|
109
|
+
<area shape="rect" coords="820,99,913,192" href="../../classes/ConstraintSolver.html" alt="lib/Problem.rb" />
|
110
|
+
<area shape="rect" coords="192,99,345,192" href="../../classes/ConstraintSolver.html" alt="test/ConstraintSolverTest.rb" />
|
111
|
+
<area shape="rect" coords="356,99,809,192" href="../../classes/ConstraintSolver.html" alt="lib/Domain.rb" />
|
112
|
+
<area shape="rect" coords="43,99,181,192" href="../../classes/ConstraintSolver.html" alt="lib/AbstractConstraint.rb" />
|
113
|
+
<area shape="rect" coords="16,64,2541,307" href="../../classes/ConstraintSolver.html" alt="ConstraintSolver" />
|
114
|
+
</map>
|
115
|
+
<img src="../../dot/f_9.png" usemap="#map" border="0" alt="dot/f_9.png">
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
<div id="requires-list">
|
120
|
+
<h3 class="section-bar">Required files</h3>
|
121
|
+
|
122
|
+
<div class="name-list">
|
123
|
+
test/unit
|
124
|
+
log4r
|
125
|
+
<a href="../../classes/ConstraintSolver.html">ConstraintSolver</a>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
<!-- if includes -->
|
136
|
+
<div id="includes">
|
137
|
+
<h3 class="section-bar">Included Modules</h3>
|
138
|
+
|
139
|
+
<div id="includes-list">
|
140
|
+
<span class="include-name">Log4r</span>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<div id="section">
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<!-- if method_list -->
|
154
|
+
|
155
|
+
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
<div id="validator-badges">
|
160
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
</body>
|
164
|
+
</html>
|