source: javadoc/genius/core/misc/ScoreKeeper.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: 24.2 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:57 CEST 2018 -->
6<title>ScoreKeeper (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="ScoreKeeper (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};
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/ScoreKeeper.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/misc/ScenarioLauncher.html" title="class in genius.core.misc"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53<li><a href="../../../genius/core/misc/SetTools.html" title="class in genius.core.misc"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
54</ul>
55<ul class="navList">
56<li><a href="../../../index.html?genius/core/misc/ScoreKeeper.html" target="_top">Frames</a></li>
57<li><a href="ScoreKeeper.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><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&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.misc</div>
96<h2 title="Class ScoreKeeper" class="title">Class ScoreKeeper&lt;A&gt;</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.misc.ScoreKeeper&lt;A&gt;</li>
104</ul>
105</li>
106</ul>
107<div class="description">
108<ul class="blockList">
109<li class="blockList">
110<dl>
111<dt><span class="paramLabel">Type Parameters:</span></dt>
112<dd><code>A</code> - key of the hashmap, for example a Value-object</dd>
113</dl>
114<dl>
115<dt>All Implemented Interfaces:</dt>
116<dd>java.io.Serializable, java.util.Comparator&lt;A&gt;</dd>
117</dl>
118<hr>
119<br>
120<pre>public class <span class="typeNameLabel">ScoreKeeper&lt;A&gt;</span>
121extends java.lang.Object
122implements java.util.Comparator&lt;A&gt;, java.io.Serializable</pre>
123<div class="block">Simple class which can be used to keep track of the score of a set of
124 objects. An example of using this class is to count how many times a set of
125 values has been offered by the opponent.</div>
126<dl>
127<dt><span class="simpleTagLabel">Author:</span></dt>
128<dd>Tim Baarslag, Mark Hendrikx</dd>
129<dt><span class="seeLabel">See Also:</span></dt>
130<dd><a href="../../../serialized-form.html#genius.core.misc.ScoreKeeper">Serialized Form</a></dd>
131</dl>
132</li>
133</ul>
134</div>
135<div class="summary">
136<ul class="blockList">
137<li class="blockList">
138<!-- =========== FIELD SUMMARY =========== -->
139<ul class="blockList">
140<li class="blockList"><a name="field.summary">
141<!-- -->
142</a>
143<h3>Field Summary</h3>
144<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
145<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
146<tr>
147<th class="colFirst" scope="col">Modifier and Type</th>
148<th class="colLast" scope="col">Field and Description</th>
149</tr>
150<tr class="altColor">
151<td class="colFirst"><code>protected java.util.Map&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>,java.lang.Integer&gt;</code></td>
152<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#m">m</a></span></code>
153<div class="block">Map of objects and their score</div>
154</td>
155</tr>
156<tr class="rowColor">
157<td class="colFirst"><code>protected int</code></td>
158<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#max">max</a></span></code>
159<div class="block">The highest score in the map</div>
160</td>
161</tr>
162<tr class="altColor">
163<td class="colFirst"><code>protected int</code></td>
164<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#total">total</a></span></code>
165<div class="block">The sum of all scores in the map</div>
166</td>
167</tr>
168</table>
169</li>
170</ul>
171<!-- ======== CONSTRUCTOR SUMMARY ======== -->
172<ul class="blockList">
173<li class="blockList"><a name="constructor.summary">
174<!-- -->
175</a>
176<h3>Constructor Summary</h3>
177<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
178<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
179<tr>
180<th class="colOne" scope="col">Constructor and Description</th>
181</tr>
182<tr class="altColor">
183<td class="colOne"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#ScoreKeeper--">ScoreKeeper</a></span>()</code>
184<div class="block">Creates a ScoreKeeper object by initializing the hashmap.</div>
185</td>
186</tr>
187<tr class="rowColor">
188<td class="colOne"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#ScoreKeeper-genius.core.misc.ScoreKeeper-">ScoreKeeper</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="class in genius.core.misc">ScoreKeeper</a>&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&gt;&nbsp;sk)</code>
189<div class="block">Clones the given scorekeeper-object.</div>
190</td>
191</tr>
192</table>
193</li>
194</ul>
195<!-- ========== METHOD SUMMARY =========== -->
196<ul class="blockList">
197<li class="blockList"><a name="method.summary">
198<!-- -->
199</a>
200<h3>Method Summary</h3>
201<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
202<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>
203<tr>
204<th class="colFirst" scope="col">Modifier and Type</th>
205<th class="colLast" scope="col">Method and Description</th>
206</tr>
207<tr id="i0" class="altColor">
208<td class="colFirst"><code>int</code></td>
209<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#compare-A-A-">compare</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;o1,
210 <a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;o2)</code>
211<div class="block">Comparator to compare the score of two objects.</div>
212</td>
213</tr>
214<tr id="i1" class="rowColor">
215<td class="colFirst"><code>java.util.Set&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&gt;</code></td>
216<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getElements--">getElements</a></span>()</code>
217<div class="block">Returns the objects from which the score is registered.</div>
218</td>
219</tr>
220<tr id="i2" class="altColor">
221<td class="colFirst"><code>int</code></td>
222<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getMaxValue--">getMaxValue</a></span>()</code>
223<div class="block">Returns the highest score in the map.</div>
224</td>
225</tr>
226<tr id="i3" class="rowColor">
227<td class="colFirst"><code>double</code></td>
228<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getNormalizedScore-A-">getNormalizedScore</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</code>
229<div class="block">Returns the normalized score of the given object.</div>
230</td>
231</tr>
232<tr id="i4" class="altColor">
233<td class="colFirst"><code>double</code></td>
234<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getRelativeScore-A-">getRelativeScore</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</code>
235<div class="block">Returns the relative score of a given object.</div>
236</td>
237</tr>
238<tr id="i5" class="rowColor">
239<td class="colFirst"><code>int</code></td>
240<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getScore-A-">getScore</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</code>
241<div class="block">Returns the score of the given object.</div>
242</td>
243</tr>
244<tr id="i6" class="altColor">
245<td class="colFirst"><code>java.util.TreeMap&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>,java.lang.Integer&gt;</code></td>
246<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getSortedCopy--">getSortedCopy</a></span>()</code>&nbsp;</td>
247</tr>
248<tr id="i7" class="rowColor">
249<td class="colFirst"><code>int</code></td>
250<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#getTotal--">getTotal</a></span>()</code>
251<div class="block">Returns the sum of all scores.</div>
252</td>
253</tr>
254<tr id="i8" class="altColor">
255<td class="colFirst"><code>void</code></td>
256<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#score-A-">score</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</code>
257<div class="block">Adds one to the score of the given object.</div>
258</td>
259</tr>
260<tr id="i9" class="rowColor">
261<td class="colFirst"><code>void</code></td>
262<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#score-A-int-">score</a></span>(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a,
263 int&nbsp;score)</code>
264<div class="block">Method used to add a given score to a given object.</div>
265</td>
266</tr>
267<tr id="i10" class="altColor">
268<td class="colFirst"><code>java.lang.String</code></td>
269<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#toMathematicaListPlot--">toMathematicaListPlot</a></span>()</code>
270<div class="block">Returns a Mathematica list plot of the map.</div>
271</td>
272</tr>
273<tr id="i11" class="rowColor">
274<td class="colFirst"><code>java.lang.String</code></td>
275<td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/misc/ScoreKeeper.html#toString--">toString</a></span>()</code>&nbsp;</td>
276</tr>
277</table>
278<ul class="blockList">
279<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
280<!-- -->
281</a>
282<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
283<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
284</ul>
285<ul class="blockList">
286<li class="blockList"><a name="methods.inherited.from.class.java.util.Comparator">
287<!-- -->
288</a>
289<h3>Methods inherited from interface&nbsp;java.util.Comparator</h3>
290<code>comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong</code></li>
291</ul>
292</li>
293</ul>
294</li>
295</ul>
296</div>
297<div class="details">
298<ul class="blockList">
299<li class="blockList">
300<!-- ============ FIELD DETAIL =========== -->
301<ul class="blockList">
302<li class="blockList"><a name="field.detail">
303<!-- -->
304</a>
305<h3>Field Detail</h3>
306<a name="m">
307<!-- -->
308</a>
309<ul class="blockList">
310<li class="blockList">
311<h4>m</h4>
312<pre>protected&nbsp;java.util.Map&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>,java.lang.Integer&gt; m</pre>
313<div class="block">Map of objects and their score</div>
314</li>
315</ul>
316<a name="max">
317<!-- -->
318</a>
319<ul class="blockList">
320<li class="blockList">
321<h4>max</h4>
322<pre>protected&nbsp;int max</pre>
323<div class="block">The highest score in the map</div>
324</li>
325</ul>
326<a name="total">
327<!-- -->
328</a>
329<ul class="blockListLast">
330<li class="blockList">
331<h4>total</h4>
332<pre>protected&nbsp;int total</pre>
333<div class="block">The sum of all scores in the map</div>
334</li>
335</ul>
336</li>
337</ul>
338<!-- ========= CONSTRUCTOR DETAIL ======== -->
339<ul class="blockList">
340<li class="blockList"><a name="constructor.detail">
341<!-- -->
342</a>
343<h3>Constructor Detail</h3>
344<a name="ScoreKeeper--">
345<!-- -->
346</a>
347<ul class="blockList">
348<li class="blockList">
349<h4>ScoreKeeper</h4>
350<pre>public&nbsp;ScoreKeeper()</pre>
351<div class="block">Creates a ScoreKeeper object by initializing the hashmap.</div>
352</li>
353</ul>
354<a name="ScoreKeeper-genius.core.misc.ScoreKeeper-">
355<!-- -->
356</a>
357<ul class="blockListLast">
358<li class="blockList">
359<h4>ScoreKeeper</h4>
360<pre>public&nbsp;ScoreKeeper(<a href="../../../genius/core/misc/ScoreKeeper.html" title="class in genius.core.misc">ScoreKeeper</a>&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&gt;&nbsp;sk)</pre>
361<div class="block">Clones the given scorekeeper-object.</div>
362<dl>
363<dt><span class="paramLabel">Parameters:</span></dt>
364<dd><code>sk</code> - object keeper which is cloned.</dd>
365</dl>
366</li>
367</ul>
368</li>
369</ul>
370<!-- ============ METHOD DETAIL ========== -->
371<ul class="blockList">
372<li class="blockList"><a name="method.detail">
373<!-- -->
374</a>
375<h3>Method Detail</h3>
376<a name="score-java.lang.Object-">
377<!-- -->
378</a><a name="score-A-">
379<!-- -->
380</a>
381<ul class="blockList">
382<li class="blockList">
383<h4>score</h4>
384<pre>public&nbsp;void&nbsp;score(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</pre>
385<div class="block">Adds one to the score of the given object.</div>
386<dl>
387<dt><span class="paramLabel">Parameters:</span></dt>
388<dd><code>a</code> - object to which one must be added to its score.</dd>
389</dl>
390</li>
391</ul>
392<a name="score-java.lang.Object-int-">
393<!-- -->
394</a><a name="score-A-int-">
395<!-- -->
396</a>
397<ul class="blockList">
398<li class="blockList">
399<h4>score</h4>
400<pre>public&nbsp;void&nbsp;score(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a,
401 int&nbsp;score)</pre>
402<div class="block">Method used to add a given score to a given object.</div>
403<dl>
404<dt><span class="paramLabel">Parameters:</span></dt>
405<dd><code>a</code> - object to which the given score must be added.</dd>
406<dd><code>score</code> - to be added to the object.</dd>
407</dl>
408</li>
409</ul>
410<a name="getScore-java.lang.Object-">
411<!-- -->
412</a><a name="getScore-A-">
413<!-- -->
414</a>
415<ul class="blockList">
416<li class="blockList">
417<h4>getScore</h4>
418<pre>public&nbsp;int&nbsp;getScore(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</pre>
419<div class="block">Returns the score of the given object.</div>
420<dl>
421<dt><span class="paramLabel">Parameters:</span></dt>
422<dd><code>a</code> - object from which the score must be returned.</dd>
423<dt><span class="returnLabel">Returns:</span></dt>
424<dd>score of the object.</dd>
425</dl>
426</li>
427</ul>
428<a name="getNormalizedScore-java.lang.Object-">
429<!-- -->
430</a><a name="getNormalizedScore-A-">
431<!-- -->
432</a>
433<ul class="blockList">
434<li class="blockList">
435<h4>getNormalizedScore</h4>
436<pre>public&nbsp;double&nbsp;getNormalizedScore(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</pre>
437<div class="block">Returns the normalized score of the given object. The normalized score is
438 defined as the score divided by the highest score in the map.</div>
439<dl>
440<dt><span class="paramLabel">Parameters:</span></dt>
441<dd><code>a</code> - the object from which the score is requested.</dd>
442<dt><span class="returnLabel">Returns:</span></dt>
443<dd>score of the object divided by the highest score.</dd>
444</dl>
445</li>
446</ul>
447<a name="getRelativeScore-java.lang.Object-">
448<!-- -->
449</a><a name="getRelativeScore-A-">
450<!-- -->
451</a>
452<ul class="blockList">
453<li class="blockList">
454<h4>getRelativeScore</h4>
455<pre>public&nbsp;double&nbsp;getRelativeScore(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;a)</pre>
456<div class="block">Returns the relative score of a given object. The relative score is the
457 score of the object divided by the sum of all scores in the map.</div>
458<dl>
459<dt><span class="paramLabel">Parameters:</span></dt>
460<dd><code>a</code> - object from which the score must be returned</dd>
461<dt><span class="returnLabel">Returns:</span></dt>
462<dd>score of the object divided by the sum of all scores</dd>
463</dl>
464</li>
465</ul>
466<a name="compare-java.lang.Object-java.lang.Object-">
467<!-- -->
468</a><a name="compare-A-A-">
469<!-- -->
470</a>
471<ul class="blockList">
472<li class="blockList">
473<h4>compare</h4>
474<pre>public&nbsp;int&nbsp;compare(<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;o1,
475 <a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&nbsp;o2)</pre>
476<div class="block">Comparator to compare the score of two objects.</div>
477<dl>
478<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
479<dd><code>compare</code>&nbsp;in interface&nbsp;<code>java.util.Comparator&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&gt;</code></dd>
480<dt><span class="returnLabel">Returns:</span></dt>
481<dd>-1 iff score o1 &gt; o2, 1 if vice versa, else 0.</dd>
482</dl>
483</li>
484</ul>
485<a name="toString--">
486<!-- -->
487</a>
488<ul class="blockList">
489<li class="blockList">
490<h4>toString</h4>
491<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
492<dl>
493<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
494<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
495<dt><span class="returnLabel">Returns:</span></dt>
496<dd>string representation of the ScoreKeeper.</dd>
497</dl>
498</li>
499</ul>
500<a name="getSortedCopy--">
501<!-- -->
502</a>
503<ul class="blockList">
504<li class="blockList">
505<h4>getSortedCopy</h4>
506<pre>public&nbsp;java.util.TreeMap&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>,java.lang.Integer&gt;&nbsp;getSortedCopy()</pre>
507<dl>
508<dt><span class="returnLabel">Returns:</span></dt>
509<dd>sorted version of the ScoreKeeper based on the score of the
510 elements.</dd>
511</dl>
512</li>
513</ul>
514<a name="getMaxValue--">
515<!-- -->
516</a>
517<ul class="blockList">
518<li class="blockList">
519<h4>getMaxValue</h4>
520<pre>public&nbsp;int&nbsp;getMaxValue()</pre>
521<div class="block">Returns the highest score in the map.</div>
522<dl>
523<dt><span class="returnLabel">Returns:</span></dt>
524<dd>score of the object with the highest score.</dd>
525</dl>
526</li>
527</ul>
528<a name="getTotal--">
529<!-- -->
530</a>
531<ul class="blockList">
532<li class="blockList">
533<h4>getTotal</h4>
534<pre>public&nbsp;int&nbsp;getTotal()</pre>
535<div class="block">Returns the sum of all scores.</div>
536<dl>
537<dt><span class="returnLabel">Returns:</span></dt>
538<dd>sum of all scores</dd>
539</dl>
540</li>
541</ul>
542<a name="getElements--">
543<!-- -->
544</a>
545<ul class="blockList">
546<li class="blockList">
547<h4>getElements</h4>
548<pre>public&nbsp;java.util.Set&lt;<a href="../../../genius/core/misc/ScoreKeeper.html" title="type parameter in ScoreKeeper">A</a>&gt;&nbsp;getElements()</pre>
549<div class="block">Returns the objects from which the score is registered.</div>
550<dl>
551<dt><span class="returnLabel">Returns:</span></dt>
552<dd>objects in the scoring map</dd>
553</dl>
554</li>
555</ul>
556<a name="toMathematicaListPlot--">
557<!-- -->
558</a>
559<ul class="blockListLast">
560<li class="blockList">
561<h4>toMathematicaListPlot</h4>
562<pre>public&nbsp;java.lang.String&nbsp;toMathematicaListPlot()</pre>
563<div class="block">Returns a Mathematica list plot of the map.</div>
564<dl>
565<dt><span class="returnLabel">Returns:</span></dt>
566<dd>Mathematica list plot of the map.</dd>
567</dl>
568</li>
569</ul>
570</li>
571</ul>
572</li>
573</ul>
574</div>
575</div>
576<!-- ========= END OF CLASS DATA ========= -->
577<!-- ======= START OF BOTTOM NAVBAR ====== -->
578<div class="bottomNav"><a name="navbar.bottom">
579<!-- -->
580</a>
581<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
582<a name="navbar.bottom.firstrow">
583<!-- -->
584</a>
585<ul class="navList" title="Navigation">
586<li><a href="../../../overview-summary.html">Overview</a></li>
587<li><a href="package-summary.html">Package</a></li>
588<li class="navBarCell1Rev">Class</li>
589<li><a href="class-use/ScoreKeeper.html">Use</a></li>
590<li><a href="package-tree.html">Tree</a></li>
591<li><a href="../../../deprecated-list.html">Deprecated</a></li>
592<li><a href="../../../index-all.html">Index</a></li>
593<li><a href="../../../help-doc.html">Help</a></li>
594</ul>
595</div>
596<div class="subNav">
597<ul class="navList">
598<li><a href="../../../genius/core/misc/ScenarioLauncher.html" title="class in genius.core.misc"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
599<li><a href="../../../genius/core/misc/SetTools.html" title="class in genius.core.misc"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
600</ul>
601<ul class="navList">
602<li><a href="../../../index.html?genius/core/misc/ScoreKeeper.html" target="_top">Frames</a></li>
603<li><a href="ScoreKeeper.html" target="_top">No&nbsp;Frames</a></li>
604</ul>
605<ul class="navList" id="allclasses_navbar_bottom">
606<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
607</ul>
608<div>
609<script type="text/javascript"><!--
610 allClassesLink = document.getElementById("allclasses_navbar_bottom");
611 if(window==top) {
612 allClassesLink.style.display = "block";
613 }
614 else {
615 allClassesLink.style.display = "none";
616 }
617 //-->
618</script>
619</div>
620<div>
621<ul class="subNavList">
622<li>Summary:&nbsp;</li>
623<li>Nested&nbsp;|&nbsp;</li>
624<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
625<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
626<li><a href="#method.summary">Method</a></li>
627</ul>
628<ul class="subNavList">
629<li>Detail:&nbsp;</li>
630<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
631<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
632<li><a href="#method.detail">Method</a></li>
633</ul>
634</div>
635<a name="skip.navbar.bottom">
636<!-- -->
637</a></div>
638<!-- ======== END OF BOTTOM NAVBAR ======= -->
639</body>
640</html>
Note: See TracBrowser for help on using the repository browser.