1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!-- NewPage -->
|
---|
3 | <html lang="en">
|
---|
4 | <head>
|
---|
5 | <!-- Generated by javadoc (1.8.0_112) on Thu Jun 21 12:05:58 CEST 2018 -->
|
---|
6 | <title>EvaluatorDiscrete (Genius Core Documentation)</title>
|
---|
7 | <meta name="date" content="2018-06-21">
|
---|
8 | <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
---|
9 | <script type="text/javascript" src="../../../script.js"></script>
|
---|
10 | </head>
|
---|
11 | <body>
|
---|
12 | <script type="text/javascript"><!--
|
---|
13 | try {
|
---|
14 | if (location.href.indexOf('is-external=true') == -1) {
|
---|
15 | parent.document.title="EvaluatorDiscrete (Genius Core Documentation)";
|
---|
16 | }
|
---|
17 | }
|
---|
18 | catch(err) {
|
---|
19 | }
|
---|
20 | //-->
|
---|
21 | var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10};
|
---|
22 | var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
---|
23 | var altColor = "altColor";
|
---|
24 | var rowColor = "rowColor";
|
---|
25 | var tableTab = "tableTab";
|
---|
26 | var activeTableTab = "activeTableTab";
|
---|
27 | </script>
|
---|
28 | <noscript>
|
---|
29 | <div>JavaScript is disabled on your browser.</div>
|
---|
30 | </noscript>
|
---|
31 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
32 | <div class="topNav"><a name="navbar.top">
|
---|
33 | <!-- -->
|
---|
34 | </a>
|
---|
35 | <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
---|
36 | <a name="navbar.top.firstrow">
|
---|
37 | <!-- -->
|
---|
38 | </a>
|
---|
39 | <ul class="navList" title="Navigation">
|
---|
40 | <li><a href="../../../overview-summary.html">Overview</a></li>
|
---|
41 | <li><a href="package-summary.html">Package</a></li>
|
---|
42 | <li class="navBarCell1Rev">Class</li>
|
---|
43 | <li><a href="class-use/EvaluatorDiscrete.html">Use</a></li>
|
---|
44 | <li><a href="package-tree.html">Tree</a></li>
|
---|
45 | <li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
---|
46 | <li><a href="../../../index-all.html">Index</a></li>
|
---|
47 | <li><a href="../../../help-doc.html">Help</a></li>
|
---|
48 | </ul>
|
---|
49 | </div>
|
---|
50 | <div class="subNav">
|
---|
51 | <ul class="navList">
|
---|
52 | <li><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility"><span class="typeNameLink">Prev Class</span></a></li>
|
---|
53 | <li><a href="../../../genius/core/utility/EvaluatorInteger.html" title="class in genius.core.utility"><span class="typeNameLink">Next Class</span></a></li>
|
---|
54 | </ul>
|
---|
55 | <ul class="navList">
|
---|
56 | <li><a href="../../../index.html?genius/core/utility/EvaluatorDiscrete.html" target="_top">Frames</a></li>
|
---|
57 | <li><a href="EvaluatorDiscrete.html" target="_top">No Frames</a></li>
|
---|
58 | </ul>
|
---|
59 | <ul class="navList" id="allclasses_navbar_top">
|
---|
60 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
---|
61 | </ul>
|
---|
62 | <div>
|
---|
63 | <script type="text/javascript"><!--
|
---|
64 | allClassesLink = document.getElementById("allclasses_navbar_top");
|
---|
65 | if(window==top) {
|
---|
66 | allClassesLink.style.display = "block";
|
---|
67 | }
|
---|
68 | else {
|
---|
69 | allClassesLink.style.display = "none";
|
---|
70 | }
|
---|
71 | //-->
|
---|
72 | </script>
|
---|
73 | </div>
|
---|
74 | <div>
|
---|
75 | <ul class="subNavList">
|
---|
76 | <li>Summary: </li>
|
---|
77 | <li>Nested | </li>
|
---|
78 | <li>Field | </li>
|
---|
79 | <li><a href="#constructor.summary">Constr</a> | </li>
|
---|
80 | <li><a href="#method.summary">Method</a></li>
|
---|
81 | </ul>
|
---|
82 | <ul class="subNavList">
|
---|
83 | <li>Detail: </li>
|
---|
84 | <li>Field | </li>
|
---|
85 | <li><a href="#constructor.detail">Constr</a> | </li>
|
---|
86 | <li><a href="#method.detail">Method</a></li>
|
---|
87 | </ul>
|
---|
88 | </div>
|
---|
89 | <a name="skip.navbar.top">
|
---|
90 | <!-- -->
|
---|
91 | </a></div>
|
---|
92 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
93 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
94 | <div class="header">
|
---|
95 | <div class="subTitle">genius.core.utility</div>
|
---|
96 | <h2 title="Class EvaluatorDiscrete" class="title">Class EvaluatorDiscrete</h2>
|
---|
97 | </div>
|
---|
98 | <div class="contentContainer">
|
---|
99 | <ul class="inheritance">
|
---|
100 | <li>java.lang.Object</li>
|
---|
101 | <li>
|
---|
102 | <ul class="inheritance">
|
---|
103 | <li>genius.core.utility.EvaluatorDiscrete</li>
|
---|
104 | </ul>
|
---|
105 | </li>
|
---|
106 | </ul>
|
---|
107 | <div class="description">
|
---|
108 | <ul class="blockList">
|
---|
109 | <li class="blockList">
|
---|
110 | <dl>
|
---|
111 | <dt>All Implemented Interfaces:</dt>
|
---|
112 | <dd><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a>, java.io.Serializable</dd>
|
---|
113 | </dl>
|
---|
114 | <hr>
|
---|
115 | <br>
|
---|
116 | <pre>public class <span class="typeNameLabel">EvaluatorDiscrete</span>
|
---|
117 | extends java.lang.Object
|
---|
118 | implements <a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></pre>
|
---|
119 | <div class="block">This class is used to convert the value of a discrete issue to a utility.
|
---|
120 | This object stores a mapping from each discrete value to a positive double,
|
---|
121 | the evaluation of the value.
|
---|
122 |
|
---|
123 | When a <a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue"><code>ValueDiscrete</code></a> is evaluated, there are two possibilities:
|
---|
124 | <ul>
|
---|
125 | <li>One or more utilities in the map are > 1.0. Then, the evaluation of
|
---|
126 | the value is divided by the highest evaluation in the map.
|
---|
127 | <li>All utilities are ≤1.0. Then, the evaluation of the value is the same
|
---|
128 | as the utility stored in the map. This is useful to store absolute utilities,
|
---|
129 | which is needed for example in the PocketNegotiator.
|
---|
130 | </ul>
|
---|
131 |
|
---|
132 | Note that most functions here are working with <code>Integer</code> utilities.
|
---|
133 | This is because we need to stay backwards compatible with older versions of
|
---|
134 | Genius.</div>
|
---|
135 | <dl>
|
---|
136 | <dt><span class="seeLabel">See Also:</span></dt>
|
---|
137 | <dd><a href="../../../serialized-form.html#genius.core.utility.EvaluatorDiscrete">Serialized Form</a></dd>
|
---|
138 | </dl>
|
---|
139 | </li>
|
---|
140 | </ul>
|
---|
141 | </div>
|
---|
142 | <div class="summary">
|
---|
143 | <ul class="blockList">
|
---|
144 | <li class="blockList">
|
---|
145 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
146 | <ul class="blockList">
|
---|
147 | <li class="blockList"><a name="constructor.summary">
|
---|
148 | <!-- -->
|
---|
149 | </a>
|
---|
150 | <h3>Constructor Summary</h3>
|
---|
151 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
---|
152 | <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
---|
153 | <tr>
|
---|
154 | <th class="colOne" scope="col">Constructor and Description</th>
|
---|
155 | </tr>
|
---|
156 | <tr class="altColor">
|
---|
157 | <td class="colOne"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#EvaluatorDiscrete--">EvaluatorDiscrete</a></span>()</code>
|
---|
158 | <div class="block">Creates a new discrete evaluator with weight 0 and no values.</div>
|
---|
159 | </td>
|
---|
160 | </tr>
|
---|
161 | </table>
|
---|
162 | </li>
|
---|
163 | </ul>
|
---|
164 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
165 | <ul class="blockList">
|
---|
166 | <li class="blockList"><a name="method.summary">
|
---|
167 | <!-- -->
|
---|
168 | </a>
|
---|
169 | <h3>Method Summary</h3>
|
---|
170 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
---|
171 | <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
---|
172 | <tr>
|
---|
173 | <th class="colFirst" scope="col">Modifier and Type</th>
|
---|
174 | <th class="colLast" scope="col">Method and Description</th>
|
---|
175 | </tr>
|
---|
176 | <tr id="i0" class="altColor">
|
---|
177 | <td class="colFirst"><code>void</code></td>
|
---|
178 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#addEvaluation-genius.core.issue.ValueDiscrete-java.lang.Integer-">addEvaluation</a></span>(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value,
|
---|
179 | java.lang.Integer evaluation)</code>
|
---|
180 | <div class="block">Add a new possible value to the issue.</div>
|
---|
181 | </td>
|
---|
182 | </tr>
|
---|
183 | <tr id="i1" class="rowColor">
|
---|
184 | <td class="colFirst"><code>void</code></td>
|
---|
185 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#clear--">clear</a></span>()</code>
|
---|
186 | <div class="block">wipe evaluation values.</div>
|
---|
187 | </td>
|
---|
188 | </tr>
|
---|
189 | <tr id="i2" class="altColor">
|
---|
190 | <td class="colFirst"><code><a href="../../../genius/core/utility/EvaluatorDiscrete.html" title="class in genius.core.utility">EvaluatorDiscrete</a></code></td>
|
---|
191 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#clone--">clone</a></span>()</code> </td>
|
---|
192 | </tr>
|
---|
193 | <tr id="i3" class="rowColor">
|
---|
194 | <td class="colFirst"><code>boolean</code></td>
|
---|
195 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object obj)</code> </td>
|
---|
196 | </tr>
|
---|
197 | <tr id="i4" class="altColor">
|
---|
198 | <td class="colFirst"><code>java.lang.Double</code></td>
|
---|
199 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getDoubleValue-genius.core.issue.ValueDiscrete-">getDoubleValue</a></span>(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)</code> </td>
|
---|
200 | </tr>
|
---|
201 | <tr id="i5" class="rowColor">
|
---|
202 | <td class="colFirst"><code>java.lang.Integer</code></td>
|
---|
203 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getEvalMax--">getEvalMax</a></span>()</code> </td>
|
---|
204 | </tr>
|
---|
205 | <tr id="i6" class="altColor">
|
---|
206 | <td class="colFirst"><code>java.lang.Double</code></td>
|
---|
207 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getEvaluation-genius.core.utility.AdditiveUtilitySpace-genius.core.Bid-int-">getEvaluation</a></span>(<a href="../../../genius/core/utility/AdditiveUtilitySpace.html" title="class in genius.core.utility">AdditiveUtilitySpace</a> uspace,
|
---|
208 | <a href="../../../genius/core/Bid.html" title="class in genius.core">Bid</a> bid,
|
---|
209 | int issueID)</code>
|
---|
210 | <div class="block">This method returns the utility of the value of an issue.</div>
|
---|
211 | </td>
|
---|
212 | </tr>
|
---|
213 | <tr id="i7" class="rowColor">
|
---|
214 | <td class="colFirst"><code>java.lang.Double</code></td>
|
---|
215 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getEvaluation-genius.core.issue.ValueDiscrete-">getEvaluation</a></span>(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)</code> </td>
|
---|
216 | </tr>
|
---|
217 | <tr id="i8" class="altColor">
|
---|
218 | <td class="colFirst"><code>java.lang.Integer</code></td>
|
---|
219 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getEvaluationNotNormalized-genius.core.Bid-int-">getEvaluationNotNormalized</a></span>(<a href="../../../genius/core/Bid.html" title="class in genius.core">Bid</a> bid,
|
---|
220 | int ID)</code> </td>
|
---|
221 | </tr>
|
---|
222 | <tr id="i9" class="rowColor">
|
---|
223 | <td class="colFirst"><code>java.lang.Integer</code></td>
|
---|
224 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getEvaluationNotNormalized-genius.core.issue.ValueDiscrete-">getEvaluationNotNormalized</a></span>(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)</code> </td>
|
---|
225 | </tr>
|
---|
226 | <tr id="i10" class="altColor">
|
---|
227 | <td class="colFirst"><code><a href="../../../genius/core/issue/Value.html" title="class in genius.core.issue">Value</a></code></td>
|
---|
228 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getMaxValue--">getMaxValue</a></span>()</code> </td>
|
---|
229 | </tr>
|
---|
230 | <tr id="i11" class="rowColor">
|
---|
231 | <td class="colFirst"><code><a href="../../../genius/core/issue/Value.html" title="class in genius.core.issue">Value</a></code></td>
|
---|
232 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getMinValue--">getMinValue</a></span>()</code> </td>
|
---|
233 | </tr>
|
---|
234 | <tr id="i12" class="altColor">
|
---|
235 | <td class="colFirst"><code><a href="../../../genius/core/utility/EVALUATORTYPE.html" title="enum in genius.core.utility">EVALUATORTYPE</a></code></td>
|
---|
236 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getType--">getType</a></span>()</code> </td>
|
---|
237 | </tr>
|
---|
238 | <tr id="i13" class="rowColor">
|
---|
239 | <td class="colFirst"><code>java.lang.Integer</code></td>
|
---|
240 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getValue-genius.core.issue.ValueDiscrete-">getValue</a></span>(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)</code> </td>
|
---|
241 | </tr>
|
---|
242 | <tr id="i14" class="altColor">
|
---|
243 | <td class="colFirst"><code>java.util.Set<<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a>></code></td>
|
---|
244 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getValues--">getValues</a></span>()</code> </td>
|
---|
245 | </tr>
|
---|
246 | <tr id="i15" class="rowColor">
|
---|
247 | <td class="colFirst"><code>double</code></td>
|
---|
248 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#getWeight--">getWeight</a></span>()</code> </td>
|
---|
249 | </tr>
|
---|
250 | <tr id="i16" class="altColor">
|
---|
251 | <td class="colFirst"><code>int</code></td>
|
---|
252 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#hashCode--">hashCode</a></span>()</code> </td>
|
---|
253 | </tr>
|
---|
254 | <tr id="i17" class="rowColor">
|
---|
255 | <td class="colFirst"><code>java.lang.String</code></td>
|
---|
256 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#isComplete-genius.core.issue.Objective-">isComplete</a></span>(<a href="../../../genius/core/issue/Objective.html" title="class in genius.core.issue">Objective</a> whichobj)</code>
|
---|
257 | <div class="block">Check whether the evaluator has enough information to make an evaluation.</div>
|
---|
258 | </td>
|
---|
259 | </tr>
|
---|
260 | <tr id="i18" class="altColor">
|
---|
261 | <td class="colFirst"><code>void</code></td>
|
---|
262 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#loadFromXML-genius.core.xml.SimpleElement-">loadFromXML</a></span>(<a href="../../../genius/core/xml/SimpleElement.html" title="class in genius.core.xml">SimpleElement</a> pRoot)</code>
|
---|
263 | <div class="block">Loads <a href="../../../genius/core/utility/EvaluatorDiscrete.html#fEval"><code>fEval</code></a> from a SimpleElement containing something like this:
|
---|
264 | <code><item index="1" description=
|
---|
265 | "Buy bags of chips and party nuts for all guests."
|
---|
266 | value="Chips and Nuts" cost="100.0" evaluation="3"></code>.</div>
|
---|
267 | </td>
|
---|
268 | </tr>
|
---|
269 | <tr id="i19" class="rowColor">
|
---|
270 | <td class="colFirst"><code>void</code></td>
|
---|
271 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#lockWeight--">lockWeight</a></span>()</code>
|
---|
272 | <div class="block">lockWeight is a flag affecting the behaviour of the normalize function in
|
---|
273 | the utility space.</div>
|
---|
274 | </td>
|
---|
275 | </tr>
|
---|
276 | <tr id="i20" class="altColor">
|
---|
277 | <td class="colFirst"><code>java.lang.Double</code></td>
|
---|
278 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#normalize-java.lang.Integer-">normalize</a></span>(java.lang.Integer EvalValueL)</code> </td>
|
---|
279 | </tr>
|
---|
280 | <tr id="i21" class="rowColor">
|
---|
281 | <td class="colFirst"><code>void</code></td>
|
---|
282 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#setEvaluation-genius.core.issue.Value-int-">setEvaluation</a></span>(<a href="../../../genius/core/issue/Value.html" title="class in genius.core.issue">Value</a> val,
|
---|
283 | int evaluation)</code>
|
---|
284 | <div class="block">Sets the evaluation for Value <code>val</code>.</div>
|
---|
285 | </td>
|
---|
286 | </tr>
|
---|
287 | <tr id="i22" class="altColor">
|
---|
288 | <td class="colFirst"><code>void</code></td>
|
---|
289 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#setEvaluationDouble-genius.core.issue.ValueDiscrete-double-">setEvaluationDouble</a></span>(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> val,
|
---|
290 | double evaluation)</code>
|
---|
291 | <div class="block">identical to <a href="../../../genius/core/utility/EvaluatorDiscrete.html#setEvaluation-genius.core.issue.Value-int-"><code>setEvaluation(Value, int)</code></a> but accepts double.</div>
|
---|
292 | </td>
|
---|
293 | </tr>
|
---|
294 | <tr id="i23" class="rowColor">
|
---|
295 | <td class="colFirst"><code>void</code></td>
|
---|
296 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#setWeight-double-">setWeight</a></span>(double wt)</code>
|
---|
297 | <div class="block">Sets the weigth with which an Objective or Issue is evaluated.</div>
|
---|
298 | </td>
|
---|
299 | </tr>
|
---|
300 | <tr id="i24" class="altColor">
|
---|
301 | <td class="colFirst"><code><a href="../../../genius/core/xml/SimpleElement.html" title="class in genius.core.xml">SimpleElement</a></code></td>
|
---|
302 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#setXML-genius.core.xml.SimpleElement-">setXML</a></span>(<a href="../../../genius/core/xml/SimpleElement.html" title="class in genius.core.xml">SimpleElement</a> evalObj)</code>
|
---|
303 | <div class="block">Sets weights and evaluator properties for the object in SimpleElement
|
---|
304 | representation that is passed to it.</div>
|
---|
305 | </td>
|
---|
306 | </tr>
|
---|
307 | <tr id="i25" class="rowColor">
|
---|
308 | <td class="colFirst"><code>java.lang.String</code></td>
|
---|
309 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#toString--">toString</a></span>()</code> </td>
|
---|
310 | </tr>
|
---|
311 | <tr id="i26" class="altColor">
|
---|
312 | <td class="colFirst"><code>void</code></td>
|
---|
313 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#unlockWeight--">unlockWeight</a></span>()</code>
|
---|
314 | <div class="block">Method to unlock a weight.</div>
|
---|
315 | </td>
|
---|
316 | </tr>
|
---|
317 | <tr id="i27" class="rowColor">
|
---|
318 | <td class="colFirst"><code>boolean</code></td>
|
---|
319 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/utility/EvaluatorDiscrete.html#weightLocked--">weightLocked</a></span>()</code> </td>
|
---|
320 | </tr>
|
---|
321 | </table>
|
---|
322 | <ul class="blockList">
|
---|
323 | <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
---|
324 | <!-- -->
|
---|
325 | </a>
|
---|
326 | <h3>Methods inherited from class java.lang.Object</h3>
|
---|
327 | <code>finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
|
---|
328 | </ul>
|
---|
329 | </li>
|
---|
330 | </ul>
|
---|
331 | </li>
|
---|
332 | </ul>
|
---|
333 | </div>
|
---|
334 | <div class="details">
|
---|
335 | <ul class="blockList">
|
---|
336 | <li class="blockList">
|
---|
337 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
338 | <ul class="blockList">
|
---|
339 | <li class="blockList"><a name="constructor.detail">
|
---|
340 | <!-- -->
|
---|
341 | </a>
|
---|
342 | <h3>Constructor Detail</h3>
|
---|
343 | <a name="EvaluatorDiscrete--">
|
---|
344 | <!-- -->
|
---|
345 | </a>
|
---|
346 | <ul class="blockListLast">
|
---|
347 | <li class="blockList">
|
---|
348 | <h4>EvaluatorDiscrete</h4>
|
---|
349 | <pre>public EvaluatorDiscrete()</pre>
|
---|
350 | <div class="block">Creates a new discrete evaluator with weight 0 and no values.</div>
|
---|
351 | </li>
|
---|
352 | </ul>
|
---|
353 | </li>
|
---|
354 | </ul>
|
---|
355 | <!-- ============ METHOD DETAIL ========== -->
|
---|
356 | <ul class="blockList">
|
---|
357 | <li class="blockList"><a name="method.detail">
|
---|
358 | <!-- -->
|
---|
359 | </a>
|
---|
360 | <h3>Method Detail</h3>
|
---|
361 | <a name="getWeight--">
|
---|
362 | <!-- -->
|
---|
363 | </a>
|
---|
364 | <ul class="blockList">
|
---|
365 | <li class="blockList">
|
---|
366 | <h4>getWeight</h4>
|
---|
367 | <pre>public double getWeight()</pre>
|
---|
368 | <dl>
|
---|
369 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
370 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#getWeight--">getWeight</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
371 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
372 | <dd>the weight associated with this, a value in [0,1]</dd>
|
---|
373 | </dl>
|
---|
374 | </li>
|
---|
375 | </ul>
|
---|
376 | <a name="setWeight-double-">
|
---|
377 | <!-- -->
|
---|
378 | </a>
|
---|
379 | <ul class="blockList">
|
---|
380 | <li class="blockList">
|
---|
381 | <h4>setWeight</h4>
|
---|
382 | <pre>public void setWeight(double wt)</pre>
|
---|
383 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/utility/Evaluator.html#setWeight-double-">Evaluator</a></code></span></div>
|
---|
384 | <div class="block">Sets the weigth with which an Objective or Issue is evaluated.</div>
|
---|
385 | <dl>
|
---|
386 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
387 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#setWeight-double-">setWeight</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
388 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
389 | <dd><code>wt</code> - The new weight, a value in [0,1].</dd>
|
---|
390 | </dl>
|
---|
391 | </li>
|
---|
392 | </ul>
|
---|
393 | <a name="lockWeight--">
|
---|
394 | <!-- -->
|
---|
395 | </a>
|
---|
396 | <ul class="blockList">
|
---|
397 | <li class="blockList">
|
---|
398 | <h4>lockWeight</h4>
|
---|
399 | <pre>public void lockWeight()</pre>
|
---|
400 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/utility/Evaluator.html#lockWeight--">Evaluator</a></code></span></div>
|
---|
401 | <div class="block">lockWeight is a flag affecting the behaviour of the normalize function in
|
---|
402 | the utility space. This is used to change behaviour when users drag
|
---|
403 | sliders</div>
|
---|
404 | <dl>
|
---|
405 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
406 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#lockWeight--">lockWeight</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
407 | </dl>
|
---|
408 | </li>
|
---|
409 | </ul>
|
---|
410 | <a name="unlockWeight--">
|
---|
411 | <!-- -->
|
---|
412 | </a>
|
---|
413 | <ul class="blockList">
|
---|
414 | <li class="blockList">
|
---|
415 | <h4>unlockWeight</h4>
|
---|
416 | <pre>public void unlockWeight()</pre>
|
---|
417 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/utility/Evaluator.html#unlockWeight--">Evaluator</a></code></span></div>
|
---|
418 | <div class="block">Method to unlock a weight. A weight must be unlocked to modify it.</div>
|
---|
419 | <dl>
|
---|
420 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
421 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#unlockWeight--">unlockWeight</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
422 | </dl>
|
---|
423 | </li>
|
---|
424 | </ul>
|
---|
425 | <a name="weightLocked--">
|
---|
426 | <!-- -->
|
---|
427 | </a>
|
---|
428 | <ul class="blockList">
|
---|
429 | <li class="blockList">
|
---|
430 | <h4>weightLocked</h4>
|
---|
431 | <pre>public boolean weightLocked()</pre>
|
---|
432 | <dl>
|
---|
433 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
434 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#weightLocked--">weightLocked</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
435 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
436 | <dd>true if weight is locked.</dd>
|
---|
437 | </dl>
|
---|
438 | </li>
|
---|
439 | </ul>
|
---|
440 | <a name="loadFromXML-genius.core.xml.SimpleElement-">
|
---|
441 | <!-- -->
|
---|
442 | </a>
|
---|
443 | <ul class="blockList">
|
---|
444 | <li class="blockList">
|
---|
445 | <h4>loadFromXML</h4>
|
---|
446 | <pre>public void loadFromXML(<a href="../../../genius/core/xml/SimpleElement.html" title="class in genius.core.xml">SimpleElement</a> pRoot)</pre>
|
---|
447 | <div class="block">Loads <a href="../../../genius/core/utility/EvaluatorDiscrete.html#fEval"><code>fEval</code></a> from a SimpleElement containing something like this:
|
---|
448 | <code><item index="1" description=
|
---|
449 | "Buy bags of chips and party nuts for all guests."
|
---|
450 | value="Chips and Nuts" cost="100.0" evaluation="3"></code>.
|
---|
451 |
|
---|
452 | Only the value and evaluation are used, the rest is ignored. NOTICE: the
|
---|
453 | fWeight of this EvaluatorDiscrete is not set.</div>
|
---|
454 | <dl>
|
---|
455 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
456 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#loadFromXML-genius.core.xml.SimpleElement-">loadFromXML</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
457 | </dl>
|
---|
458 | </li>
|
---|
459 | </ul>
|
---|
460 | <a name="isComplete-genius.core.issue.Objective-">
|
---|
461 | <!-- -->
|
---|
462 | </a>
|
---|
463 | <ul class="blockList">
|
---|
464 | <li class="blockList">
|
---|
465 | <h4>isComplete</h4>
|
---|
466 | <pre>public java.lang.String isComplete(<a href="../../../genius/core/issue/Objective.html" title="class in genius.core.issue">Objective</a> whichobj)</pre>
|
---|
467 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/utility/Evaluator.html#isComplete-genius.core.issue.Objective-">Evaluator</a></code></span></div>
|
---|
468 | <div class="block">Check whether the evaluator has enough information to make an evaluation.</div>
|
---|
469 | <dl>
|
---|
470 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
471 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#isComplete-genius.core.issue.Objective-">isComplete</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
472 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
473 | <dd><code>whichobj</code> - is the objective/issue to which this evaluator is attached.</dd>
|
---|
474 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
475 | <dd>String describing lacking component, or null if the evaluator is
|
---|
476 | complete.</dd>
|
---|
477 | </dl>
|
---|
478 | </li>
|
---|
479 | </ul>
|
---|
480 | <a name="clone--">
|
---|
481 | <!-- -->
|
---|
482 | </a>
|
---|
483 | <ul class="blockList">
|
---|
484 | <li class="blockList">
|
---|
485 | <h4>clone</h4>
|
---|
486 | <pre>public <a href="../../../genius/core/utility/EvaluatorDiscrete.html" title="class in genius.core.utility">EvaluatorDiscrete</a> clone()</pre>
|
---|
487 | <dl>
|
---|
488 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
489 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#clone--">clone</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
490 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
491 | <dd><code>clone</code> in class <code>java.lang.Object</code></dd>
|
---|
492 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
493 | <dd>clone of the current object.</dd>
|
---|
494 | </dl>
|
---|
495 | </li>
|
---|
496 | </ul>
|
---|
497 | <a name="getEvaluation-genius.core.utility.AdditiveUtilitySpace-genius.core.Bid-int-">
|
---|
498 | <!-- -->
|
---|
499 | </a>
|
---|
500 | <ul class="blockList">
|
---|
501 | <li class="blockList">
|
---|
502 | <h4>getEvaluation</h4>
|
---|
503 | <pre>public java.lang.Double getEvaluation(<a href="../../../genius/core/utility/AdditiveUtilitySpace.html" title="class in genius.core.utility">AdditiveUtilitySpace</a> uspace,
|
---|
504 | <a href="../../../genius/core/Bid.html" title="class in genius.core">Bid</a> bid,
|
---|
505 | int issueID)</pre>
|
---|
506 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/utility/Evaluator.html#getEvaluation-genius.core.utility.AdditiveUtilitySpace-genius.core.Bid-int-">Evaluator</a></code></span></div>
|
---|
507 | <div class="block">This method returns the utility of the value of an issue. Note that the
|
---|
508 | value is not multiplied by the issue weight, and is therefore
|
---|
509 | non-normalized.</div>
|
---|
510 | <dl>
|
---|
511 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
512 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#getEvaluation-genius.core.utility.AdditiveUtilitySpace-genius.core.Bid-int-">getEvaluation</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
513 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
514 | <dd><code>uspace</code> - preference profile</dd>
|
---|
515 | <dd><code>bid</code> - in which the value is contained.</dd>
|
---|
516 | <dd><code>issueID</code> - unique ID of the issue in the bid for which we want an
|
---|
517 | evaluation.</dd>
|
---|
518 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
519 | <dd>utility of the value for an issue, not normalized by the issue
|
---|
520 | weight.</dd>
|
---|
521 | </dl>
|
---|
522 | </li>
|
---|
523 | </ul>
|
---|
524 | <a name="getValue-genius.core.issue.ValueDiscrete-">
|
---|
525 | <!-- -->
|
---|
526 | </a>
|
---|
527 | <ul class="blockList">
|
---|
528 | <li class="blockList">
|
---|
529 | <h4>getValue</h4>
|
---|
530 | <pre>public java.lang.Integer getValue(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)</pre>
|
---|
531 | <dl>
|
---|
532 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
533 | <dd><code>value</code> - of which the evaluation is requested. ALways returns rounded
|
---|
534 | values, to be compatible with the old version of PN where
|
---|
535 | values could be only integers.</dd>
|
---|
536 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
537 | <dd>the non-normalized evaluation of the given value. The value is
|
---|
538 | rounded to the nearest integer. Returns 0 for values that are not
|
---|
539 | set or unknown.</dd>
|
---|
540 | </dl>
|
---|
541 | </li>
|
---|
542 | </ul>
|
---|
543 | <a name="getDoubleValue-genius.core.issue.ValueDiscrete-">
|
---|
544 | <!-- -->
|
---|
545 | </a>
|
---|
546 | <ul class="blockList">
|
---|
547 | <li class="blockList">
|
---|
548 | <h4>getDoubleValue</h4>
|
---|
549 | <pre>public java.lang.Double getDoubleValue(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)</pre>
|
---|
550 | <dl>
|
---|
551 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
552 | <dd><code>value</code> - </dd>
|
---|
553 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
554 | <dd>the exact double value/util of a issuevalue</dd>
|
---|
555 | </dl>
|
---|
556 | </li>
|
---|
557 | </ul>
|
---|
558 | <a name="getEvalMax--">
|
---|
559 | <!-- -->
|
---|
560 | </a>
|
---|
561 | <ul class="blockList">
|
---|
562 | <li class="blockList">
|
---|
563 | <h4>getEvalMax</h4>
|
---|
564 | <pre>public java.lang.Integer getEvalMax()</pre>
|
---|
565 | <dl>
|
---|
566 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
567 | <dd>the largest evaluation value available</dd>
|
---|
568 | </dl>
|
---|
569 | </li>
|
---|
570 | </ul>
|
---|
571 | <a name="getEvaluation-genius.core.issue.ValueDiscrete-">
|
---|
572 | <!-- -->
|
---|
573 | </a>
|
---|
574 | <ul class="blockList">
|
---|
575 | <li class="blockList">
|
---|
576 | <h4>getEvaluation</h4>
|
---|
577 | <pre>public java.lang.Double getEvaluation(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)
|
---|
578 | throws java.lang.Exception</pre>
|
---|
579 | <dl>
|
---|
580 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
581 | <dd><code>value</code> - of the issue.</dd>
|
---|
582 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
583 | <dd>normalized utility (between [0,1]) of the given value.</dd>
|
---|
584 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
585 | <dd><code>java.lang.Exception</code> - if value is null.</dd>
|
---|
586 | </dl>
|
---|
587 | </li>
|
---|
588 | </ul>
|
---|
589 | <a name="getEvaluationNotNormalized-genius.core.Bid-int-">
|
---|
590 | <!-- -->
|
---|
591 | </a>
|
---|
592 | <ul class="blockList">
|
---|
593 | <li class="blockList">
|
---|
594 | <h4>getEvaluationNotNormalized</h4>
|
---|
595 | <pre>public java.lang.Integer getEvaluationNotNormalized(<a href="../../../genius/core/Bid.html" title="class in genius.core">Bid</a> bid,
|
---|
596 | int ID)
|
---|
597 | throws java.lang.Exception</pre>
|
---|
598 | <dl>
|
---|
599 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
600 | <dd><code>bid</code> - </dd>
|
---|
601 | <dd><code>ID</code> - of the issue of which we are interested in the value</dd>
|
---|
602 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
603 | <dd>non-normalized evaluation (positive integer) of the given value.</dd>
|
---|
604 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
605 | <dd><code>java.lang.Exception</code> - if bid or value is null.</dd>
|
---|
606 | </dl>
|
---|
607 | </li>
|
---|
608 | </ul>
|
---|
609 | <a name="getEvaluationNotNormalized-genius.core.issue.ValueDiscrete-">
|
---|
610 | <!-- -->
|
---|
611 | </a>
|
---|
612 | <ul class="blockList">
|
---|
613 | <li class="blockList">
|
---|
614 | <h4>getEvaluationNotNormalized</h4>
|
---|
615 | <pre>public java.lang.Integer getEvaluationNotNormalized(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value)
|
---|
616 | throws java.lang.Exception</pre>
|
---|
617 | <dl>
|
---|
618 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
619 | <dd><code>value</code> - of the issue.</dd>
|
---|
620 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
621 | <dd>non-normalized evaluation (positive integer) of the given value.
|
---|
622 | Actually identical to <a href="../../../genius/core/utility/EvaluatorDiscrete.html#getValue-genius.core.issue.ValueDiscrete-"><code>getValue(ValueDiscrete)</code></a>.</dd>
|
---|
623 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
624 | <dd><code>java.lang.Exception</code> - if value is null.</dd>
|
---|
625 | </dl>
|
---|
626 | </li>
|
---|
627 | </ul>
|
---|
628 | <a name="normalize-java.lang.Integer-">
|
---|
629 | <!-- -->
|
---|
630 | </a>
|
---|
631 | <ul class="blockList">
|
---|
632 | <li class="blockList">
|
---|
633 | <h4>normalize</h4>
|
---|
634 | <pre>public java.lang.Double normalize(java.lang.Integer EvalValueL)</pre>
|
---|
635 | <dl>
|
---|
636 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
637 | <dd><code>EvalValueL</code> - </dd>
|
---|
638 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
639 | <dd>normalized EvalValue
|
---|
640 |
|
---|
641 | ASSUMED that Max value is at least 1, because EVERY
|
---|
642 | evaluatordiscrete is at least 1.</dd>
|
---|
643 | </dl>
|
---|
644 | </li>
|
---|
645 | </ul>
|
---|
646 | <a name="getType--">
|
---|
647 | <!-- -->
|
---|
648 | </a>
|
---|
649 | <ul class="blockList">
|
---|
650 | <li class="blockList">
|
---|
651 | <h4>getType</h4>
|
---|
652 | <pre>public <a href="../../../genius/core/utility/EVALUATORTYPE.html" title="enum in genius.core.utility">EVALUATORTYPE</a> getType()</pre>
|
---|
653 | <dl>
|
---|
654 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
655 | <dd><code><a href="../../../genius/core/utility/Evaluator.html#getType--">getType</a></code> in interface <code><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility">Evaluator</a></code></dd>
|
---|
656 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
657 | <dd>type of evaluation function, for example EVALUATORTYPE.LINEAR.</dd>
|
---|
658 | </dl>
|
---|
659 | </li>
|
---|
660 | </ul>
|
---|
661 | <a name="setEvaluation-genius.core.issue.Value-int-">
|
---|
662 | <!-- -->
|
---|
663 | </a>
|
---|
664 | <ul class="blockList">
|
---|
665 | <li class="blockList">
|
---|
666 | <h4>setEvaluation</h4>
|
---|
667 | <pre>public void setEvaluation(<a href="../../../genius/core/issue/Value.html" title="class in genius.core.issue">Value</a> val,
|
---|
668 | int evaluation)</pre>
|
---|
669 | <div class="block">Sets the evaluation for Value <code>val</code>. If this value doesn't
|
---|
670 | exist yet in this Evaluator, adds it as well.</div>
|
---|
671 | <dl>
|
---|
672 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
673 | <dd><code>val</code> - The value to add or have its evaluation modified.</dd>
|
---|
674 | <dd><code>evaluation</code> - The new evaluation. only POSITIVE integer values acceptable as
|
---|
675 | evaluation</dd>
|
---|
676 | </dl>
|
---|
677 | </li>
|
---|
678 | </ul>
|
---|
679 | <a name="setEvaluationDouble-genius.core.issue.ValueDiscrete-double-">
|
---|
680 | <!-- -->
|
---|
681 | </a>
|
---|
682 | <ul class="blockList">
|
---|
683 | <li class="blockList">
|
---|
684 | <h4>setEvaluationDouble</h4>
|
---|
685 | <pre>public void setEvaluationDouble(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> val,
|
---|
686 | double evaluation)</pre>
|
---|
687 | <div class="block">identical to <a href="../../../genius/core/utility/EvaluatorDiscrete.html#setEvaluation-genius.core.issue.Value-int-"><code>setEvaluation(Value, int)</code></a> but accepts double.</div>
|
---|
688 | <dl>
|
---|
689 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
690 | <dd><code>val</code> - The value to add or have its evaluation modified.</dd>
|
---|
691 | <dd><code>evaluation</code> - The new evaluation. only POSITIVE integer values acceptable as
|
---|
692 | evaluation value</dd>
|
---|
693 | </dl>
|
---|
694 | </li>
|
---|
695 | </ul>
|
---|
696 | <a name="clear--">
|
---|
697 | <!-- -->
|
---|
698 | </a>
|
---|
699 | <ul class="blockList">
|
---|
700 | <li class="blockList">
|
---|
701 | <h4>clear</h4>
|
---|
702 | <pre>public void clear()</pre>
|
---|
703 | <div class="block">wipe evaluation values.</div>
|
---|
704 | </li>
|
---|
705 | </ul>
|
---|
706 | <a name="setXML-genius.core.xml.SimpleElement-">
|
---|
707 | <!-- -->
|
---|
708 | </a>
|
---|
709 | <ul class="blockList">
|
---|
710 | <li class="blockList">
|
---|
711 | <h4>setXML</h4>
|
---|
712 | <pre>public <a href="../../../genius/core/xml/SimpleElement.html" title="class in genius.core.xml">SimpleElement</a> setXML(<a href="../../../genius/core/xml/SimpleElement.html" title="class in genius.core.xml">SimpleElement</a> evalObj)</pre>
|
---|
713 | <div class="block">Sets weights and evaluator properties for the object in SimpleElement
|
---|
714 | representation that is passed to it.</div>
|
---|
715 | <dl>
|
---|
716 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
717 | <dd><code>evalObj</code> - The object of which to set the evaluation properties.</dd>
|
---|
718 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
719 | <dd>The modified simpleElement with all evaluator properties set.</dd>
|
---|
720 | </dl>
|
---|
721 | </li>
|
---|
722 | </ul>
|
---|
723 | <a name="addEvaluation-genius.core.issue.ValueDiscrete-java.lang.Integer-">
|
---|
724 | <!-- -->
|
---|
725 | </a>
|
---|
726 | <ul class="blockList">
|
---|
727 | <li class="blockList">
|
---|
728 | <h4>addEvaluation</h4>
|
---|
729 | <pre>public void addEvaluation(<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a> value,
|
---|
730 | java.lang.Integer evaluation)</pre>
|
---|
731 | <div class="block">Add a new possible value to the issue. Same as
|
---|
732 | <a href="../../../genius/core/utility/EvaluatorDiscrete.html#setEvaluation-genius.core.issue.Value-int-"><code>setEvaluation(Value, int)</code></a>. To set Double values, use
|
---|
733 | <a href="../../../genius/core/utility/EvaluatorDiscrete.html#setEvaluationDouble-genius.core.issue.ValueDiscrete-double-"><code>setEvaluationDouble(ValueDiscrete, double)</code></a>.</div>
|
---|
734 | <dl>
|
---|
735 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
736 | <dd><code>value</code> - to be added to the issue.</dd>
|
---|
737 | <dd><code>evaluation</code> - of the value.</dd>
|
---|
738 | </dl>
|
---|
739 | </li>
|
---|
740 | </ul>
|
---|
741 | <a name="getMaxValue--">
|
---|
742 | <!-- -->
|
---|
743 | </a>
|
---|
744 | <ul class="blockList">
|
---|
745 | <li class="blockList">
|
---|
746 | <h4>getMaxValue</h4>
|
---|
747 | <pre>public <a href="../../../genius/core/issue/Value.html" title="class in genius.core.issue">Value</a> getMaxValue()</pre>
|
---|
748 | <dl>
|
---|
749 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
750 | <dd>value with the highest evaluation.</dd>
|
---|
751 | </dl>
|
---|
752 | </li>
|
---|
753 | </ul>
|
---|
754 | <a name="getMinValue--">
|
---|
755 | <!-- -->
|
---|
756 | </a>
|
---|
757 | <ul class="blockList">
|
---|
758 | <li class="blockList">
|
---|
759 | <h4>getMinValue</h4>
|
---|
760 | <pre>public <a href="../../../genius/core/issue/Value.html" title="class in genius.core.issue">Value</a> getMinValue()</pre>
|
---|
761 | <dl>
|
---|
762 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
763 | <dd>value with the lowest evaluation.</dd>
|
---|
764 | </dl>
|
---|
765 | </li>
|
---|
766 | </ul>
|
---|
767 | <a name="getValues--">
|
---|
768 | <!-- -->
|
---|
769 | </a>
|
---|
770 | <ul class="blockList">
|
---|
771 | <li class="blockList">
|
---|
772 | <h4>getValues</h4>
|
---|
773 | <pre>public java.util.Set<<a href="../../../genius/core/issue/ValueDiscrete.html" title="class in genius.core.issue">ValueDiscrete</a>> getValues()</pre>
|
---|
774 | <dl>
|
---|
775 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
776 | <dd>valid values for this issue.</dd>
|
---|
777 | </dl>
|
---|
778 | </li>
|
---|
779 | </ul>
|
---|
780 | <a name="hashCode--">
|
---|
781 | <!-- -->
|
---|
782 | </a>
|
---|
783 | <ul class="blockList">
|
---|
784 | <li class="blockList">
|
---|
785 | <h4>hashCode</h4>
|
---|
786 | <pre>public int hashCode()</pre>
|
---|
787 | <dl>
|
---|
788 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
789 | <dd><code>hashCode</code> in class <code>java.lang.Object</code></dd>
|
---|
790 | </dl>
|
---|
791 | </li>
|
---|
792 | </ul>
|
---|
793 | <a name="equals-java.lang.Object-">
|
---|
794 | <!-- -->
|
---|
795 | </a>
|
---|
796 | <ul class="blockList">
|
---|
797 | <li class="blockList">
|
---|
798 | <h4>equals</h4>
|
---|
799 | <pre>public boolean equals(java.lang.Object obj)</pre>
|
---|
800 | <dl>
|
---|
801 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
802 | <dd><code>equals</code> in class <code>java.lang.Object</code></dd>
|
---|
803 | </dl>
|
---|
804 | </li>
|
---|
805 | </ul>
|
---|
806 | <a name="toString--">
|
---|
807 | <!-- -->
|
---|
808 | </a>
|
---|
809 | <ul class="blockListLast">
|
---|
810 | <li class="blockList">
|
---|
811 | <h4>toString</h4>
|
---|
812 | <pre>public java.lang.String toString()</pre>
|
---|
813 | <dl>
|
---|
814 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
815 | <dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
---|
816 | </dl>
|
---|
817 | </li>
|
---|
818 | </ul>
|
---|
819 | </li>
|
---|
820 | </ul>
|
---|
821 | </li>
|
---|
822 | </ul>
|
---|
823 | </div>
|
---|
824 | </div>
|
---|
825 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
826 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
827 | <div class="bottomNav"><a name="navbar.bottom">
|
---|
828 | <!-- -->
|
---|
829 | </a>
|
---|
830 | <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
---|
831 | <a name="navbar.bottom.firstrow">
|
---|
832 | <!-- -->
|
---|
833 | </a>
|
---|
834 | <ul class="navList" title="Navigation">
|
---|
835 | <li><a href="../../../overview-summary.html">Overview</a></li>
|
---|
836 | <li><a href="package-summary.html">Package</a></li>
|
---|
837 | <li class="navBarCell1Rev">Class</li>
|
---|
838 | <li><a href="class-use/EvaluatorDiscrete.html">Use</a></li>
|
---|
839 | <li><a href="package-tree.html">Tree</a></li>
|
---|
840 | <li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
---|
841 | <li><a href="../../../index-all.html">Index</a></li>
|
---|
842 | <li><a href="../../../help-doc.html">Help</a></li>
|
---|
843 | </ul>
|
---|
844 | </div>
|
---|
845 | <div class="subNav">
|
---|
846 | <ul class="navList">
|
---|
847 | <li><a href="../../../genius/core/utility/Evaluator.html" title="interface in genius.core.utility"><span class="typeNameLink">Prev Class</span></a></li>
|
---|
848 | <li><a href="../../../genius/core/utility/EvaluatorInteger.html" title="class in genius.core.utility"><span class="typeNameLink">Next Class</span></a></li>
|
---|
849 | </ul>
|
---|
850 | <ul class="navList">
|
---|
851 | <li><a href="../../../index.html?genius/core/utility/EvaluatorDiscrete.html" target="_top">Frames</a></li>
|
---|
852 | <li><a href="EvaluatorDiscrete.html" target="_top">No Frames</a></li>
|
---|
853 | </ul>
|
---|
854 | <ul class="navList" id="allclasses_navbar_bottom">
|
---|
855 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
---|
856 | </ul>
|
---|
857 | <div>
|
---|
858 | <script type="text/javascript"><!--
|
---|
859 | allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
---|
860 | if(window==top) {
|
---|
861 | allClassesLink.style.display = "block";
|
---|
862 | }
|
---|
863 | else {
|
---|
864 | allClassesLink.style.display = "none";
|
---|
865 | }
|
---|
866 | //-->
|
---|
867 | </script>
|
---|
868 | </div>
|
---|
869 | <div>
|
---|
870 | <ul class="subNavList">
|
---|
871 | <li>Summary: </li>
|
---|
872 | <li>Nested | </li>
|
---|
873 | <li>Field | </li>
|
---|
874 | <li><a href="#constructor.summary">Constr</a> | </li>
|
---|
875 | <li><a href="#method.summary">Method</a></li>
|
---|
876 | </ul>
|
---|
877 | <ul class="subNavList">
|
---|
878 | <li>Detail: </li>
|
---|
879 | <li>Field | </li>
|
---|
880 | <li><a href="#constructor.detail">Constr</a> | </li>
|
---|
881 | <li><a href="#method.detail">Method</a></li>
|
---|
882 | </ul>
|
---|
883 | </div>
|
---|
884 | <a name="skip.navbar.bottom">
|
---|
885 | <!-- -->
|
---|
886 | </a></div>
|
---|
887 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
888 | </body>
|
---|
889 | </html>
|
---|