source: javadoc/genius/core/BidHistory.html@ 1

Last change on this file since 1 was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 31.6 KB
Line 
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:56 CEST 2018 -->
6<title>BidHistory (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="BidHistory (Genius Core Documentation)";
16 }
17 }
18 catch(err) {
19 }
20//-->
21var 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};
22var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
23var altColor = "altColor";
24var rowColor = "rowColor";
25var tableTab = "tableTab";
26var 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/BidHistory.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/Bid.html" title="class in genius.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53<li><a href="../../genius/core/BidIterator.html" title="class in genius.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
54</ul>
55<ul class="navList">
56<li><a href="../../index.html?genius/core/BidHistory.html" target="_top">Frames</a></li>
57<li><a href="BidHistory.html" target="_top">No&nbsp;Frames</a></li>
58</ul>
59<ul class="navList" id="allclasses_navbar_top">
60<li><a href="../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
77<li>Nested&nbsp;|&nbsp;</li>
78<li>Field&nbsp;|&nbsp;</li>
79<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
80<li><a href="#method.summary">Method</a></li>
81</ul>
82<ul class="subNavList">
83<li>Detail:&nbsp;</li>
84<li>Field&nbsp;|&nbsp;</li>
85<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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</div>
96<h2 title="Class BidHistory" class="title">Class BidHistory</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.BidHistory</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>java.io.Serializable</dd>
113</dl>
114<hr>
115<br>
116<pre>public class <span class="typeNameLabel">BidHistory</span>
117extends java.lang.Object
118implements java.io.Serializable</pre>
119<div class="block">This class contains the bidding history of a negotiation agent.</div>
120<dl>
121<dt><span class="simpleTagLabel">Author:</span></dt>
122<dd>Alex Dirkzwager, Mark Hendrikx, Tim Baarslag</dd>
123<dt><span class="seeLabel">See Also:</span></dt>
124<dd><a href="../../serialized-form.html#genius.core.BidHistory">Serialized Form</a></dd>
125</dl>
126</li>
127</ul>
128</div>
129<div class="summary">
130<ul class="blockList">
131<li class="blockList">
132<!-- ======== CONSTRUCTOR SUMMARY ======== -->
133<ul class="blockList">
134<li class="blockList"><a name="constructor.summary">
135<!-- -->
136</a>
137<h3>Constructor Summary</h3>
138<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
139<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
140<tr>
141<th class="colOne" scope="col">Constructor and Description</th>
142</tr>
143<tr class="altColor">
144<td class="colOne"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#BidHistory--">BidHistory</a></span>()</code>
145<div class="block">Creates an empty bid history.</div>
146</td>
147</tr>
148<tr class="rowColor">
149<td class="colOne"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#BidHistory-java.util.List-">BidHistory</a></span>(java.util.List&lt;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&gt;&nbsp;bids)</code>
150<div class="block">Creates a bid history given an array of bids offered by the negotiation
151 agent.</div>
152</td>
153</tr>
154</table>
155</li>
156</ul>
157<!-- ========== METHOD SUMMARY =========== -->
158<ul class="blockList">
159<li class="blockList"><a name="method.summary">
160<!-- -->
161</a>
162<h3>Method Summary</h3>
163<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
164<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
165<tr>
166<th class="colFirst" scope="col">Modifier and Type</th>
167<th class="colLast" scope="col">Method and Description</th>
168</tr>
169<tr id="i0" class="altColor">
170<td class="colFirst"><code>void</code></td>
171<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#add-genius.core.bidding.BidDetails-">add</a></span>(<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;bid)</code>
172<div class="block">Add an offered bid o the history.</div>
173</td>
174</tr>
175<tr id="i1" class="rowColor">
176<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
177<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#discountedFilterBetween-double-double-double-double-genius.core.utility.AbstractUtilitySpace-">discountedFilterBetween</a></span>(double&nbsp;minU,
178 double&nbsp;maxU,
179 double&nbsp;minT,
180 double&nbsp;maxT,
181 <a href="../../genius/core/utility/AbstractUtilitySpace.html" title="class in genius.core.utility">AbstractUtilitySpace</a>&nbsp;utilSpace)</code>
182<div class="block">Returns the set of bids offered between time instances t1 and t2: (t1,
183 t2] and with a utility in (u1, u2].</div>
184</td>
185</tr>
186<tr id="i2" class="altColor">
187<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
188<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#filterBetween-double-double-double-double-">filterBetween</a></span>(double&nbsp;minU,
189 double&nbsp;maxU,
190 double&nbsp;minT,
191 double&nbsp;maxT)</code>
192<div class="block">Returns the set of bids offered between time instances t1 and t2: (t1,
193 t2] and with a utility in (u1, u2].</div>
194</td>
195</tr>
196<tr id="i3" class="rowColor">
197<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
198<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#filterBetweenTime-double-double-">filterBetweenTime</a></span>(double&nbsp;t1,
199 double&nbsp;t2)</code>
200<div class="block">Returns the set of bids offered between time instances t1 and t2: (t1,
201 t2].</div>
202</td>
203</tr>
204<tr id="i4" class="altColor">
205<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
206<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#filterBetweenUtility-double-double-">filterBetweenUtility</a></span>(double&nbsp;minU,
207 double&nbsp;maxU)</code>
208<div class="block">Returns the set of bids with a utility of at least u1 and at most u2:
209 (u1, u2].</div>
210</td>
211</tr>
212<tr id="i5" class="rowColor">
213<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
214<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#filterUtility-double-">filterUtility</a></span>(double&nbsp;u)</code>
215<div class="block">Returns the set of bids with utility u.</div>
216</td>
217</tr>
218<tr id="i6" class="altColor">
219<td class="colFirst"><code>double</code></td>
220<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getAverageDiscountedUtility-genius.core.utility.AbstractUtilitySpace-">getAverageDiscountedUtility</a></span>(<a href="../../genius/core/utility/AbstractUtilitySpace.html" title="class in genius.core.utility">AbstractUtilitySpace</a>&nbsp;utilSpace)</code>&nbsp;</td>
221</tr>
222<tr id="i7" class="rowColor">
223<td class="colFirst"><code>double</code></td>
224<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getAverageUtility--">getAverageUtility</a></span>()</code>&nbsp;</td>
225</tr>
226<tr id="i8" class="altColor">
227<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
228<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getBestBidDetails--">getBestBidDetails</a></span>()</code>
229<div class="block">Returns the bid with the highest utility stored in the history.</div>
230</td>
231</tr>
232<tr id="i9" class="rowColor">
233<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
234<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getBestDiscountedBidDetails-genius.core.utility.AbstractUtilitySpace-">getBestDiscountedBidDetails</a></span>(<a href="../../genius/core/utility/AbstractUtilitySpace.html" title="class in genius.core.utility">AbstractUtilitySpace</a>&nbsp;util)</code>
235<div class="block">Returns the bid with the highest discounted utility stored in the
236 history.</div>
237</td>
238</tr>
239<tr id="i10" class="altColor">
240<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
241<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getFirstBidDetails--">getFirstBidDetails</a></span>()</code>
242<div class="block">Returns the first bid stored in the history</div>
243</td>
244</tr>
245<tr id="i11" class="rowColor">
246<td class="colFirst"><code>java.util.List&lt;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&gt;</code></td>
247<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getHistory--">getHistory</a></span>()</code>
248<div class="block">Returns the full history.</div>
249</td>
250</tr>
251<tr id="i12" class="altColor">
252<td class="colFirst"><code><a href="../../genius/core/Bid.html" title="class in genius.core">Bid</a></code></td>
253<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getLastBid--">getLastBid</a></span>()</code>
254<div class="block">Returns the last bid added to the history.</div>
255</td>
256</tr>
257<tr id="i13" class="rowColor">
258<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
259<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getLastBidDetails--">getLastBidDetails</a></span>()</code>
260<div class="block">Returns the last bid details added to the history.</div>
261</td>
262</tr>
263<tr id="i14" class="altColor">
264<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
265<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getMedianUtilityBid--">getMedianUtilityBid</a></span>()</code>&nbsp;</td>
266</tr>
267<tr id="i15" class="rowColor">
268<td class="colFirst"><code>java.util.List&lt;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&gt;</code></td>
269<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getNBestBids-int-">getNBestBids</a></span>(int&nbsp;count)</code>
270<div class="block">Returns a list of the top N bids which the opponent has offered.</div>
271</td>
272</tr>
273<tr id="i16" class="altColor">
274<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
275<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getRandom--">getRandom</a></span>()</code>&nbsp;</td>
276</tr>
277<tr id="i17" class="rowColor">
278<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
279<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getRandom-java.util.Random-">getRandom</a></span>(java.util.Random&nbsp;rand)</code>&nbsp;</td>
280</tr>
281<tr id="i18" class="altColor">
282<td class="colFirst"><code><a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a></code></td>
283<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#getWorstBidDetails--">getWorstBidDetails</a></span>()</code>
284<div class="block">Returns the bid with the lowest utility stored in the history.</div>
285</td>
286</tr>
287<tr id="i19" class="rowColor">
288<td class="colFirst"><code>boolean</code></td>
289<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#isEmpty--">isEmpty</a></span>()</code>
290<div class="block">Checks if BidHistory (array) is empty or not.</div>
291</td>
292</tr>
293<tr id="i20" class="altColor">
294<td class="colFirst"><code>int</code></td>
295<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#size--">size</a></span>()</code>&nbsp;</td>
296</tr>
297<tr id="i21" class="rowColor">
298<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
299<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#sortToTime--">sortToTime</a></span>()</code>
300<div class="block">Sorts the bids contained in this BidHistory object on time.</div>
301</td>
302</tr>
303<tr id="i22" class="altColor">
304<td class="colFirst"><code><a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a></code></td>
305<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/BidHistory.html#sortToUtility--">sortToUtility</a></span>()</code>
306<div class="block">Sorts the bids contained in this BidHistory object on utility.</div>
307</td>
308</tr>
309</table>
310<ul class="blockList">
311<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
312<!-- -->
313</a>
314<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
315<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
316</ul>
317</li>
318</ul>
319</li>
320</ul>
321</div>
322<div class="details">
323<ul class="blockList">
324<li class="blockList">
325<!-- ========= CONSTRUCTOR DETAIL ======== -->
326<ul class="blockList">
327<li class="blockList"><a name="constructor.detail">
328<!-- -->
329</a>
330<h3>Constructor Detail</h3>
331<a name="BidHistory-java.util.List-">
332<!-- -->
333</a>
334<ul class="blockList">
335<li class="blockList">
336<h4>BidHistory</h4>
337<pre>public&nbsp;BidHistory(java.util.List&lt;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&gt;&nbsp;bids)</pre>
338<div class="block">Creates a bid history given an array of bids offered by the negotiation
339 agent.</div>
340<dl>
341<dt><span class="paramLabel">Parameters:</span></dt>
342<dd><code>bids</code> - </dd>
343</dl>
344</li>
345</ul>
346<a name="BidHistory--">
347<!-- -->
348</a>
349<ul class="blockListLast">
350<li class="blockList">
351<h4>BidHistory</h4>
352<pre>public&nbsp;BidHistory()</pre>
353<div class="block">Creates an empty bid history.</div>
354</li>
355</ul>
356</li>
357</ul>
358<!-- ============ METHOD DETAIL ========== -->
359<ul class="blockList">
360<li class="blockList"><a name="method.detail">
361<!-- -->
362</a>
363<h3>Method Detail</h3>
364<a name="filterBetweenTime-double-double-">
365<!-- -->
366</a>
367<ul class="blockList">
368<li class="blockList">
369<h4>filterBetweenTime</h4>
370<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;filterBetweenTime(double&nbsp;t1,
371 double&nbsp;t2)</pre>
372<div class="block">Returns the set of bids offered between time instances t1 and t2: (t1,
373 t2].</div>
374<dl>
375<dt><span class="paramLabel">Parameters:</span></dt>
376<dd><code>t1</code> - </dd>
377<dd><code>t2</code> - </dd>
378<dt><span class="returnLabel">Returns:</span></dt>
379<dd>bids done in (t1, t2]</dd>
380</dl>
381</li>
382</ul>
383<a name="filterBetweenUtility-double-double-">
384<!-- -->
385</a>
386<ul class="blockList">
387<li class="blockList">
388<h4>filterBetweenUtility</h4>
389<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;filterBetweenUtility(double&nbsp;minU,
390 double&nbsp;maxU)</pre>
391<div class="block">Returns the set of bids with a utility of at least u1 and at most u2:
392 (u1, u2]. If u1 = u2, then it returns all bids with utility u1.</div>
393<dl>
394<dt><span class="paramLabel">Parameters:</span></dt>
395<dd><code>minU</code> - minimum utility.</dd>
396<dd><code>maxU</code> - maximum utility.</dd>
397<dt><span class="returnLabel">Returns:</span></dt>
398<dd>bids with a utility in (u1, u2]</dd>
399</dl>
400</li>
401</ul>
402<a name="filterBetween-double-double-double-double-">
403<!-- -->
404</a>
405<ul class="blockList">
406<li class="blockList">
407<h4>filterBetween</h4>
408<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;filterBetween(double&nbsp;minU,
409 double&nbsp;maxU,
410 double&nbsp;minT,
411 double&nbsp;maxT)</pre>
412<div class="block">Returns the set of bids offered between time instances t1 and t2: (t1,
413 t2] and with a utility in (u1, u2].</div>
414<dl>
415<dt><span class="paramLabel">Parameters:</span></dt>
416<dd><code>minU</code> - minimum utility.</dd>
417<dd><code>maxU</code> - maximum utility.</dd>
418<dd><code>minT</code> - minimum time.</dd>
419<dd><code>maxT</code> - maximum time.</dd>
420<dt><span class="returnLabel">Returns:</span></dt>
421<dd>bids with utility (minU, maxU] made in the time (minT, maxT].</dd>
422</dl>
423</li>
424</ul>
425<a name="filterUtility-double-">
426<!-- -->
427</a>
428<ul class="blockList">
429<li class="blockList">
430<h4>filterUtility</h4>
431<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;filterUtility(double&nbsp;u)</pre>
432<div class="block">Returns the set of bids with utility u.</div>
433<dl>
434<dt><span class="paramLabel">Parameters:</span></dt>
435<dd><code>u</code> - utility.</dd>
436<dt><span class="returnLabel">Returns:</span></dt>
437<dd>set of bids with utility u.</dd>
438</dl>
439</li>
440</ul>
441<a name="discountedFilterBetween-double-double-double-double-genius.core.utility.AbstractUtilitySpace-">
442<!-- -->
443</a>
444<ul class="blockList">
445<li class="blockList">
446<h4>discountedFilterBetween</h4>
447<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;discountedFilterBetween(double&nbsp;minU,
448 double&nbsp;maxU,
449 double&nbsp;minT,
450 double&nbsp;maxT,
451 <a href="../../genius/core/utility/AbstractUtilitySpace.html" title="class in genius.core.utility">AbstractUtilitySpace</a>&nbsp;utilSpace)</pre>
452<div class="block">Returns the set of bids offered between time instances t1 and t2: (t1,
453 t2] and with a utility in (u1, u2].</div>
454<dl>
455<dt><span class="paramLabel">Parameters:</span></dt>
456<dd><code>minU</code> - minimum discounted utility.</dd>
457<dd><code>maxU</code> - maximum discounted utility.</dd>
458<dd><code>minT</code> - minimum time.</dd>
459<dd><code>maxT</code> - maximum time.</dd>
460<dd><code>utilSpace</code> - preference profile used to find the discounted utility.</dd>
461<dt><span class="returnLabel">Returns:</span></dt>
462<dd>bids with discounted utility (minU, maxU] made in the time (minT,
463 maxT].</dd>
464</dl>
465</li>
466</ul>
467<a name="add-genius.core.bidding.BidDetails-">
468<!-- -->
469</a>
470<ul class="blockList">
471<li class="blockList">
472<h4>add</h4>
473<pre>public&nbsp;void&nbsp;add(<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;bid)</pre>
474<div class="block">Add an offered bid o the history.</div>
475<dl>
476<dt><span class="paramLabel">Parameters:</span></dt>
477<dd><code>bid</code> - offered bid.</dd>
478</dl>
479</li>
480</ul>
481<a name="getHistory--">
482<!-- -->
483</a>
484<ul class="blockList">
485<li class="blockList">
486<h4>getHistory</h4>
487<pre>public&nbsp;java.util.List&lt;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&gt;&nbsp;getHistory()</pre>
488<div class="block">Returns the full history.</div>
489<dl>
490<dt><span class="returnLabel">Returns:</span></dt>
491<dd>history</dd>
492</dl>
493</li>
494</ul>
495<a name="getLastBidDetails--">
496<!-- -->
497</a>
498<ul class="blockList">
499<li class="blockList">
500<h4>getLastBidDetails</h4>
501<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getLastBidDetails()</pre>
502<div class="block">Returns the last bid details added to the history.</div>
503<dl>
504<dt><span class="returnLabel">Returns:</span></dt>
505<dd>last added bid details</dd>
506</dl>
507</li>
508</ul>
509<a name="getLastBid--">
510<!-- -->
511</a>
512<ul class="blockList">
513<li class="blockList">
514<h4>getLastBid</h4>
515<pre>public&nbsp;<a href="../../genius/core/Bid.html" title="class in genius.core">Bid</a>&nbsp;getLastBid()</pre>
516<div class="block">Returns the last bid added to the history.</div>
517<dl>
518<dt><span class="returnLabel">Returns:</span></dt>
519<dd>last added bid</dd>
520</dl>
521</li>
522</ul>
523<a name="getFirstBidDetails--">
524<!-- -->
525</a>
526<ul class="blockList">
527<li class="blockList">
528<h4>getFirstBidDetails</h4>
529<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getFirstBidDetails()</pre>
530<div class="block">Returns the first bid stored in the history</div>
531<dl>
532<dt><span class="returnLabel">Returns:</span></dt>
533<dd>first bid of history</dd>
534</dl>
535</li>
536</ul>
537<a name="getBestBidDetails--">
538<!-- -->
539</a>
540<ul class="blockList">
541<li class="blockList">
542<h4>getBestBidDetails</h4>
543<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getBestBidDetails()</pre>
544<div class="block">Returns the bid with the highest utility stored in the history.</div>
545<dl>
546<dt><span class="returnLabel">Returns:</span></dt>
547<dd>bid with highest utility</dd>
548</dl>
549</li>
550</ul>
551<a name="getBestDiscountedBidDetails-genius.core.utility.AbstractUtilitySpace-">
552<!-- -->
553</a>
554<ul class="blockList">
555<li class="blockList">
556<h4>getBestDiscountedBidDetails</h4>
557<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getBestDiscountedBidDetails(<a href="../../genius/core/utility/AbstractUtilitySpace.html" title="class in genius.core.utility">AbstractUtilitySpace</a>&nbsp;util)</pre>
558<div class="block">Returns the bid with the highest discounted utility stored in the
559 history.</div>
560<dl>
561<dt><span class="paramLabel">Parameters:</span></dt>
562<dd><code>util</code> - preference profile used to determine the discounted utility of
563 a bid.</dd>
564<dt><span class="returnLabel">Returns:</span></dt>
565<dd>bid with highest utility</dd>
566</dl>
567</li>
568</ul>
569<a name="getWorstBidDetails--">
570<!-- -->
571</a>
572<ul class="blockList">
573<li class="blockList">
574<h4>getWorstBidDetails</h4>
575<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getWorstBidDetails()</pre>
576<div class="block">Returns the bid with the lowest utility stored in the history.</div>
577<dl>
578<dt><span class="returnLabel">Returns:</span></dt>
579<dd>bid with lowest utility</dd>
580</dl>
581</li>
582</ul>
583<a name="getNBestBids-int-">
584<!-- -->
585</a>
586<ul class="blockList">
587<li class="blockList">
588<h4>getNBestBids</h4>
589<pre>public&nbsp;java.util.List&lt;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&gt;&nbsp;getNBestBids(int&nbsp;count)</pre>
590<div class="block">Returns a list of the top N bids which the opponent has offered.</div>
591<dl>
592<dt><span class="paramLabel">Parameters:</span></dt>
593<dd><code>count</code> - amount of N best bids.</dd>
594<dt><span class="returnLabel">Returns:</span></dt>
595<dd>a list of bids.</dd>
596</dl>
597</li>
598</ul>
599<a name="size--">
600<!-- -->
601</a>
602<ul class="blockList">
603<li class="blockList">
604<h4>size</h4>
605<pre>public&nbsp;int&nbsp;size()</pre>
606<dl>
607<dt><span class="returnLabel">Returns:</span></dt>
608<dd>amount of bids stored.</dd>
609</dl>
610</li>
611</ul>
612<a name="getAverageUtility--">
613<!-- -->
614</a>
615<ul class="blockList">
616<li class="blockList">
617<h4>getAverageUtility</h4>
618<pre>public&nbsp;double&nbsp;getAverageUtility()</pre>
619<dl>
620<dt><span class="returnLabel">Returns:</span></dt>
621<dd>average utility of bids stored.</dd>
622</dl>
623</li>
624</ul>
625<a name="getAverageDiscountedUtility-genius.core.utility.AbstractUtilitySpace-">
626<!-- -->
627</a>
628<ul class="blockList">
629<li class="blockList">
630<h4>getAverageDiscountedUtility</h4>
631<pre>public&nbsp;double&nbsp;getAverageDiscountedUtility(<a href="../../genius/core/utility/AbstractUtilitySpace.html" title="class in genius.core.utility">AbstractUtilitySpace</a>&nbsp;utilSpace)</pre>
632<dl>
633<dt><span class="paramLabel">Parameters:</span></dt>
634<dd><code>utilSpace</code> - preference profile used to determine the discounted utility of
635 a bid.</dd>
636<dt><span class="returnLabel">Returns:</span></dt>
637<dd>average discounted utility of bids stored.</dd>
638</dl>
639</li>
640</ul>
641<a name="sortToUtility--">
642<!-- -->
643</a>
644<ul class="blockList">
645<li class="blockList">
646<h4>sortToUtility</h4>
647<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;sortToUtility()</pre>
648<div class="block">Sorts the bids contained in this BidHistory object on utility.</div>
649<dl>
650<dt><span class="returnLabel">Returns:</span></dt>
651<dd>sorted BidHistory.</dd>
652</dl>
653</li>
654</ul>
655<a name="sortToTime--">
656<!-- -->
657</a>
658<ul class="blockList">
659<li class="blockList">
660<h4>sortToTime</h4>
661<pre>public&nbsp;<a href="../../genius/core/BidHistory.html" title="class in genius.core">BidHistory</a>&nbsp;sortToTime()</pre>
662<div class="block">Sorts the bids contained in this BidHistory object on time.</div>
663<dl>
664<dt><span class="returnLabel">Returns:</span></dt>
665<dd>sorted BidHistory.</dd>
666</dl>
667</li>
668</ul>
669<a name="getRandom--">
670<!-- -->
671</a>
672<ul class="blockList">
673<li class="blockList">
674<h4>getRandom</h4>
675<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getRandom()</pre>
676<dl>
677<dt><span class="returnLabel">Returns:</span></dt>
678<dd>random bid from this BidHistory.</dd>
679</dl>
680</li>
681</ul>
682<a name="getRandom-java.util.Random-">
683<!-- -->
684</a>
685<ul class="blockList">
686<li class="blockList">
687<h4>getRandom</h4>
688<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getRandom(java.util.Random&nbsp;rand)</pre>
689<dl>
690<dt><span class="paramLabel">Parameters:</span></dt>
691<dd><code>rand</code> - random generator.</dd>
692<dt><span class="returnLabel">Returns:</span></dt>
693<dd>random bid from this BidHistory using the given random generator.</dd>
694</dl>
695</li>
696</ul>
697<a name="isEmpty--">
698<!-- -->
699</a>
700<ul class="blockList">
701<li class="blockList">
702<h4>isEmpty</h4>
703<pre>public&nbsp;boolean&nbsp;isEmpty()</pre>
704<div class="block">Checks if BidHistory (array) is empty or not.</div>
705<dl>
706<dt><span class="returnLabel">Returns:</span></dt>
707<dd>true if no bids are stored.</dd>
708</dl>
709</li>
710</ul>
711<a name="getMedianUtilityBid--">
712<!-- -->
713</a>
714<ul class="blockListLast">
715<li class="blockList">
716<h4>getMedianUtilityBid</h4>
717<pre>public&nbsp;<a href="../../genius/core/bidding/BidDetails.html" title="class in genius.core.bidding">BidDetails</a>&nbsp;getMedianUtilityBid()</pre>
718</li>
719</ul>
720</li>
721</ul>
722</li>
723</ul>
724</div>
725</div>
726<!-- ========= END OF CLASS DATA ========= -->
727<!-- ======= START OF BOTTOM NAVBAR ====== -->
728<div class="bottomNav"><a name="navbar.bottom">
729<!-- -->
730</a>
731<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
732<a name="navbar.bottom.firstrow">
733<!-- -->
734</a>
735<ul class="navList" title="Navigation">
736<li><a href="../../overview-summary.html">Overview</a></li>
737<li><a href="package-summary.html">Package</a></li>
738<li class="navBarCell1Rev">Class</li>
739<li><a href="class-use/BidHistory.html">Use</a></li>
740<li><a href="package-tree.html">Tree</a></li>
741<li><a href="../../deprecated-list.html">Deprecated</a></li>
742<li><a href="../../index-all.html">Index</a></li>
743<li><a href="../../help-doc.html">Help</a></li>
744</ul>
745</div>
746<div class="subNav">
747<ul class="navList">
748<li><a href="../../genius/core/Bid.html" title="class in genius.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
749<li><a href="../../genius/core/BidIterator.html" title="class in genius.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
750</ul>
751<ul class="navList">
752<li><a href="../../index.html?genius/core/BidHistory.html" target="_top">Frames</a></li>
753<li><a href="BidHistory.html" target="_top">No&nbsp;Frames</a></li>
754</ul>
755<ul class="navList" id="allclasses_navbar_bottom">
756<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
757</ul>
758<div>
759<script type="text/javascript"><!--
760 allClassesLink = document.getElementById("allclasses_navbar_bottom");
761 if(window==top) {
762 allClassesLink.style.display = "block";
763 }
764 else {
765 allClassesLink.style.display = "none";
766 }
767 //-->
768</script>
769</div>
770<div>
771<ul class="subNavList">
772<li>Summary:&nbsp;</li>
773<li>Nested&nbsp;|&nbsp;</li>
774<li>Field&nbsp;|&nbsp;</li>
775<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
776<li><a href="#method.summary">Method</a></li>
777</ul>
778<ul class="subNavList">
779<li>Detail:&nbsp;</li>
780<li>Field&nbsp;|&nbsp;</li>
781<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
782<li><a href="#method.detail">Method</a></li>
783</ul>
784</div>
785<a name="skip.navbar.bottom">
786<!-- -->
787</a></div>
788<!-- ======== END OF BOTTOM NAVBAR ======= -->
789</body>
790</html>
Note: See TracBrowser for help on using the repository browser.