source: javadoc/genius/core/Global.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: 36.3 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>Global (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="Global (Genius Core Documentation)";
16 }
17 }
18 catch(err) {
19 }
20//-->
21var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9};
22var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/Global.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/Feedback.html" title="enum in genius.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53<li><a href="../../genius/core/LinearBidIterator.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/Global.html" target="_top">Frames</a></li>
57<li><a href="Global.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</div>
96<h2 title="Class Global" class="title">Class Global</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.Global</li>
104</ul>
105</li>
106</ul>
107<div class="description">
108<ul class="blockList">
109<li class="blockList">
110<hr>
111<br>
112<pre>public class <span class="typeNameLabel">Global</span>
113extends java.lang.Object</pre>
114<div class="block">Overview of global variables used throughout the application.</div>
115<dl>
116<dt><span class="simpleTagLabel">Author:</span></dt>
117<dd>dmytro</dd>
118</dl>
119</li>
120</ul>
121</div>
122<div class="summary">
123<ul class="blockList">
124<li class="blockList">
125<!-- =========== FIELD SUMMARY =========== -->
126<ul class="blockList">
127<li class="blockList"><a name="field.summary">
128<!-- -->
129</a>
130<h3>Field Summary</h3>
131<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
132<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
133<tr>
134<th class="colFirst" scope="col">Modifier and Type</th>
135<th class="colLast" scope="col">Field and Description</th>
136</tr>
137<tr class="altColor">
138<td class="colFirst"><code>static java.lang.String</code></td>
139<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#AGENT_REPOSITORY">AGENT_REPOSITORY</a></span></code>
140<div class="block">Path to agent repository</div>
141</td>
142</tr>
143<tr class="rowColor">
144<td class="colFirst"><code>static java.lang.String</code></td>
145<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#DOMAIN_REPOSITORY">DOMAIN_REPOSITORY</a></span></code>
146<div class="block">Path to domain repository</div>
147</td>
148</tr>
149<tr class="altColor">
150<td class="colFirst"><code>static java.lang.String</code></td>
151<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#logPrefix">logPrefix</a></span></code>&nbsp;</td>
152</tr>
153<tr class="rowColor">
154<td class="colFirst"><code>static java.lang.String</code></td>
155<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#logPreset">logPreset</a></span></code>&nbsp;</td>
156</tr>
157<tr class="altColor">
158<td class="colFirst"><code>static java.lang.String</code></td>
159<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#PROTOCOL_REPOSITORY">PROTOCOL_REPOSITORY</a></span></code>
160<div class="block">Path to protocol repository</div>
161</td>
162</tr>
163<tr class="rowColor">
164<td class="colFirst"><code>static java.lang.String</code></td>
165<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#SIMULATOR_REPOSITORY">SIMULATOR_REPOSITORY</a></span></code>
166<div class="block">Path to simulator repository</div>
167</td>
168</tr>
169</table>
170</li>
171</ul>
172<!-- ======== CONSTRUCTOR SUMMARY ======== -->
173<ul class="blockList">
174<li class="blockList"><a name="constructor.summary">
175<!-- -->
176</a>
177<h3>Constructor Summary</h3>
178<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
179<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
180<tr>
181<th class="colOne" scope="col">Constructor and Description</th>
182</tr>
183<tr class="altColor">
184<td class="colOne"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#Global--">Global</a></span>()</code>&nbsp;</td>
185</tr>
186</table>
187</li>
188</ul>
189<!-- ========== METHOD SUMMARY =========== -->
190<ul class="blockList">
191<li class="blockList"><a name="method.summary">
192<!-- -->
193</a>
194<h3>Method Summary</h3>
195<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
196<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static 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>
197<tr>
198<th class="colFirst" scope="col">Modifier and Type</th>
199<th class="colLast" scope="col">Method and Description</th>
200</tr>
201<tr id="i0" class="altColor">
202<td class="colFirst"><code>static <a href="../../genius/core/protocol/Protocol.html" title="class in genius.core.protocol">Protocol</a></code></td>
203<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#createProtocolInstance-genius.core.repository.ProtocolRepItem-genius.core.repository.AgentRepItem:A-genius.core.repository.ProfileRepItem:A-java.util.HashMap:A-">createProtocolInstance</a></span>(<a href="../../genius/core/repository/ProtocolRepItem.html" title="class in genius.core.repository">ProtocolRepItem</a>&nbsp;protRepItem,
204 <a href="../../genius/core/repository/AgentRepItem.html" title="class in genius.core.repository">AgentRepItem</a>[]&nbsp;agentRepItems,
205 <a href="../../genius/core/repository/ProfileRepItem.html" title="class in genius.core.repository">ProfileRepItem</a>[]&nbsp;profileRepItems,
206 java.util.HashMap&lt;<a href="../../genius/core/tournament/VariablesAndValues/AgentParameterVariable.html" title="class in genius.core.tournament.VariablesAndValues">AgentParameterVariable</a>,<a href="../../genius/core/tournament/VariablesAndValues/AgentParamValue.html" title="class in genius.core.tournament.VariablesAndValues">AgentParamValue</a>&gt;[]&nbsp;agentParams)</code>&nbsp;</td>
207</tr>
208<tr id="i1" class="rowColor">
209<td class="colFirst"><code>static &lt;T&gt;&nbsp;T</code></td>
210<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#deserializeObject-java.io.InputStream-">deserializeObject</a></span>(java.io.InputStream&nbsp;is)</code>
211<div class="block">Deserializes an object and casts it to the given type.</div>
212</td>
213</tr>
214<tr id="i2" class="altColor">
215<td class="colFirst"><code>static java.lang.String</code></td>
216<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getAgentDescription-genius.core.Agent-">getAgentDescription</a></span>(<a href="../../genius/core/Agent.html" title="class in genius.core">Agent</a>&nbsp;agent)</code>
217<div class="block">Gives a useful agent name.</div>
218</td>
219</tr>
220<tr id="i3" class="rowColor">
221<td class="colFirst"><code>static java.lang.String</code></td>
222<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getCurrentTime--">getCurrentTime</a></span>()</code>&nbsp;</td>
223</tr>
224<tr id="i4" class="altColor">
225<td class="colFirst"><code>static java.lang.String</code></td>
226<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getDistributedOutcomesFileName--">getDistributedOutcomesFileName</a></span>()</code>&nbsp;</td>
227</tr>
228<tr id="i5" class="rowColor">
229<td class="colFirst"><code>static java.lang.String</code></td>
230<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getExtensiveOutcomesFileName--">getExtensiveOutcomesFileName</a></span>()</code>&nbsp;</td>
231</tr>
232<tr id="i6" class="altColor">
233<td class="colFirst"><code>static java.lang.String</code></td>
234<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getFileNameWithoutExtension-java.lang.String-">getFileNameWithoutExtension</a></span>(java.lang.String&nbsp;fileName)</code>&nbsp;</td>
235</tr>
236<tr id="i7" class="rowColor">
237<td class="colFirst"><code>static java.lang.String</code></td>
238<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getOQMOutcomesFileName--">getOQMOutcomesFileName</a></span>()</code>&nbsp;</td>
239</tr>
240<tr id="i8" class="altColor">
241<td class="colFirst"><code>static java.lang.String</code></td>
242<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getOutcomesFileName--">getOutcomesFileName</a></span>()</code>&nbsp;</td>
243</tr>
244<tr id="i9" class="rowColor">
245<td class="colFirst"><code>static java.lang.Class&lt;<a href="../../genius/core/protocol/Protocol.html" title="class in genius.core.protocol">Protocol</a>&gt;</code></td>
246<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getProtocolClass-genius.core.repository.ProtocolRepItem-">getProtocolClass</a></span>(<a href="../../genius/core/repository/ProtocolRepItem.html" title="class in genius.core.repository">ProtocolRepItem</a>&nbsp;protRepItem)</code>&nbsp;</td>
247</tr>
248<tr id="i10" class="altColor">
249<td class="colFirst"><code>static java.lang.String</code></td>
250<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#getTournamentOutcomeFileName--">getTournamentOutcomeFileName</a></span>()</code>&nbsp;</td>
251</tr>
252<tr id="i11" class="rowColor">
253<td class="colFirst"><code>static <a href="../../genius/core/Agent.html" title="class in genius.core">Agent</a></code></td>
254<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#loadAgent-java.lang.String-">loadAgent</a></span>(java.lang.String&nbsp;path)</code>
255<div class="block">Load an agent using the given classname/filename.</div>
256</td>
257</tr>
258<tr id="i12" class="altColor">
259<td class="colFirst"><code>static <a href="../../genius/core/Agent.html" title="class in genius.core">Agent</a></code></td>
260<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#loadAgent-java.lang.String-java.lang.String-">loadAgent</a></span>(java.lang.String&nbsp;agentClassName,
261 java.lang.String&nbsp;variables)</code>
262<div class="block">load agent and then set the parameters.</div>
263</td>
264</tr>
265<tr id="i13" class="rowColor">
266<td class="colFirst"><code>static java.lang.Object</code></td>
267<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#loadClassFromFile-java.io.File-">loadClassFromFile</a></span>(java.io.File&nbsp;file)</code>
268<div class="block">Load a file as a class.</div>
269</td>
270</tr>
271<tr id="i14" class="altColor">
272<td class="colFirst"><code>static java.lang.Object</code></td>
273<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#loadObject-java.lang.String-">loadObject</a></span>(java.lang.String&nbsp;path)</code>
274<div class="block">Load an object from a given path.</div>
275</td>
276</tr>
277<tr id="i15" class="rowColor">
278<td class="colFirst"><code>static java.lang.Object</code></td>
279<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#loadObject-java.lang.String-java.lang.Class-">loadObject</a></span>(java.lang.String&nbsp;path,
280 java.lang.Class&lt;?&gt;&nbsp;expectedClass)</code>
281<div class="block">Runtime type-checked version of <a href="../../genius/core/Global.html#loadObject-java.lang.String-"><code>loadObject(String)</code></a>.</div>
282</td>
283</tr>
284<tr id="i16" class="altColor">
285<td class="colFirst"><code>static java.lang.String</code></td>
286<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#nameOfClass-java.lang.String-">nameOfClass</a></span>(java.lang.String&nbsp;classname1)</code>&nbsp;</td>
287</tr>
288<tr id="i17" class="rowColor">
289<td class="colFirst"><code>static void</code></td>
290<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#serializeObject-java.io.OutputStream-java.io.Serializable-">serializeObject</a></span>(java.io.OutputStream&nbsp;outputStream,
291 java.io.Serializable&nbsp;object)</code>
292<div class="block">Serialize a serializable object to a outputstream.</div>
293</td>
294</tr>
295<tr id="i18" class="altColor">
296<td class="colFirst"><code>static java.lang.String</code></td>
297<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#shortNameOfClass-java.lang.String-">shortNameOfClass</a></span>(java.lang.String&nbsp;classname1)</code>&nbsp;</td>
298</tr>
299<tr id="i19" class="rowColor">
300<td class="colFirst"><code>static void</code></td>
301<td class="colLast"><code><span class="memberNameLink"><a href="../../genius/core/Global.html#showLoadError-java.io.File-java.lang.Throwable-">showLoadError</a></span>(java.io.File&nbsp;fc,
302 java.lang.Throwable&nbsp;e)</code>
303<div class="block">Show a dialog to the user, explaining the exception that was raised while
304 loading file fc.</div>
305</td>
306</tr>
307</table>
308<ul class="blockList">
309<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
310<!-- -->
311</a>
312<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
313<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
314</ul>
315</li>
316</ul>
317</li>
318</ul>
319</div>
320<div class="details">
321<ul class="blockList">
322<li class="blockList">
323<!-- ============ FIELD DETAIL =========== -->
324<ul class="blockList">
325<li class="blockList"><a name="field.detail">
326<!-- -->
327</a>
328<h3>Field Detail</h3>
329<a name="DOMAIN_REPOSITORY">
330<!-- -->
331</a>
332<ul class="blockList">
333<li class="blockList">
334<h4>DOMAIN_REPOSITORY</h4>
335<pre>public static final&nbsp;java.lang.String DOMAIN_REPOSITORY</pre>
336<div class="block">Path to domain repository</div>
337<dl>
338<dt><span class="seeLabel">See Also:</span></dt>
339<dd><a href="../../constant-values.html#genius.core.Global.DOMAIN_REPOSITORY">Constant Field Values</a></dd>
340</dl>
341</li>
342</ul>
343<a name="AGENT_REPOSITORY">
344<!-- -->
345</a>
346<ul class="blockList">
347<li class="blockList">
348<h4>AGENT_REPOSITORY</h4>
349<pre>public static final&nbsp;java.lang.String AGENT_REPOSITORY</pre>
350<div class="block">Path to agent repository</div>
351<dl>
352<dt><span class="seeLabel">See Also:</span></dt>
353<dd><a href="../../constant-values.html#genius.core.Global.AGENT_REPOSITORY">Constant Field Values</a></dd>
354</dl>
355</li>
356</ul>
357<a name="PROTOCOL_REPOSITORY">
358<!-- -->
359</a>
360<ul class="blockList">
361<li class="blockList">
362<h4>PROTOCOL_REPOSITORY</h4>
363<pre>public static final&nbsp;java.lang.String PROTOCOL_REPOSITORY</pre>
364<div class="block">Path to protocol repository</div>
365<dl>
366<dt><span class="seeLabel">See Also:</span></dt>
367<dd><a href="../../constant-values.html#genius.core.Global.PROTOCOL_REPOSITORY">Constant Field Values</a></dd>
368</dl>
369</li>
370</ul>
371<a name="SIMULATOR_REPOSITORY">
372<!-- -->
373</a>
374<ul class="blockList">
375<li class="blockList">
376<h4>SIMULATOR_REPOSITORY</h4>
377<pre>public static final&nbsp;java.lang.String SIMULATOR_REPOSITORY</pre>
378<div class="block">Path to simulator repository</div>
379<dl>
380<dt><span class="seeLabel">See Also:</span></dt>
381<dd><a href="../../constant-values.html#genius.core.Global.SIMULATOR_REPOSITORY">Constant Field Values</a></dd>
382</dl>
383</li>
384</ul>
385<a name="logPrefix">
386<!-- -->
387</a>
388<ul class="blockList">
389<li class="blockList">
390<h4>logPrefix</h4>
391<pre>public static&nbsp;java.lang.String logPrefix</pre>
392</li>
393</ul>
394<a name="logPreset">
395<!-- -->
396</a>
397<ul class="blockListLast">
398<li class="blockList">
399<h4>logPreset</h4>
400<pre>public static&nbsp;java.lang.String logPreset</pre>
401</li>
402</ul>
403</li>
404</ul>
405<!-- ========= CONSTRUCTOR DETAIL ======== -->
406<ul class="blockList">
407<li class="blockList"><a name="constructor.detail">
408<!-- -->
409</a>
410<h3>Constructor Detail</h3>
411<a name="Global--">
412<!-- -->
413</a>
414<ul class="blockListLast">
415<li class="blockList">
416<h4>Global</h4>
417<pre>public&nbsp;Global()</pre>
418</li>
419</ul>
420</li>
421</ul>
422<!-- ============ METHOD DETAIL ========== -->
423<ul class="blockList">
424<li class="blockList"><a name="method.detail">
425<!-- -->
426</a>
427<h3>Method Detail</h3>
428<a name="getCurrentTime--">
429<!-- -->
430</a>
431<ul class="blockList">
432<li class="blockList">
433<h4>getCurrentTime</h4>
434<pre>public static&nbsp;java.lang.String&nbsp;getCurrentTime()</pre>
435</li>
436</ul>
437<a name="getFileNameWithoutExtension-java.lang.String-">
438<!-- -->
439</a>
440<ul class="blockList">
441<li class="blockList">
442<h4>getFileNameWithoutExtension</h4>
443<pre>public static&nbsp;java.lang.String&nbsp;getFileNameWithoutExtension(java.lang.String&nbsp;fileName)</pre>
444</li>
445</ul>
446<a name="getProtocolClass-genius.core.repository.ProtocolRepItem-">
447<!-- -->
448</a>
449<ul class="blockList">
450<li class="blockList">
451<h4>getProtocolClass</h4>
452<pre>public static&nbsp;java.lang.Class&lt;<a href="../../genius/core/protocol/Protocol.html" title="class in genius.core.protocol">Protocol</a>&gt;&nbsp;getProtocolClass(<a href="../../genius/core/repository/ProtocolRepItem.html" title="class in genius.core.repository">ProtocolRepItem</a>&nbsp;protRepItem)
453 throws java.lang.Exception</pre>
454<dl>
455<dt><span class="throwsLabel">Throws:</span></dt>
456<dd><code>java.lang.Exception</code></dd>
457</dl>
458</li>
459</ul>
460<a name="createProtocolInstance-genius.core.repository.ProtocolRepItem-genius.core.repository.AgentRepItem:A-genius.core.repository.ProfileRepItem:A-java.util.HashMap:A-">
461<!-- -->
462</a>
463<ul class="blockList">
464<li class="blockList">
465<h4>createProtocolInstance</h4>
466<pre>public static&nbsp;<a href="../../genius/core/protocol/Protocol.html" title="class in genius.core.protocol">Protocol</a>&nbsp;createProtocolInstance(<a href="../../genius/core/repository/ProtocolRepItem.html" title="class in genius.core.repository">ProtocolRepItem</a>&nbsp;protRepItem,
467 <a href="../../genius/core/repository/AgentRepItem.html" title="class in genius.core.repository">AgentRepItem</a>[]&nbsp;agentRepItems,
468 <a href="../../genius/core/repository/ProfileRepItem.html" title="class in genius.core.repository">ProfileRepItem</a>[]&nbsp;profileRepItems,
469 java.util.HashMap&lt;<a href="../../genius/core/tournament/VariablesAndValues/AgentParameterVariable.html" title="class in genius.core.tournament.VariablesAndValues">AgentParameterVariable</a>,<a href="../../genius/core/tournament/VariablesAndValues/AgentParamValue.html" title="class in genius.core.tournament.VariablesAndValues">AgentParamValue</a>&gt;[]&nbsp;agentParams)
470 throws <a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
471<dl>
472<dt><span class="throwsLabel">Throws:</span></dt>
473<dd><code><a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code></dd>
474</dl>
475</li>
476</ul>
477<a name="loadObject-java.lang.String-">
478<!-- -->
479</a>
480<ul class="blockList">
481<li class="blockList">
482<h4>loadObject</h4>
483<pre>public static&nbsp;java.lang.Object&nbsp;loadObject(java.lang.String&nbsp;path)
484 throws <a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
485<div class="block">Load an object from a given path. If it's a .class file, figure out the
486 correct class path and use that. If it's not a .class file, we assume
487 it's already in the existing classpath and load it with the standard
488 class loader.
489
490
491 <p>
492 we can't properly typecheck here. Generics fail as we have type erasure,
493 and casting to the given type does NOTHING. So we leave this a general
494 object and leave it to the caller to do the type checking.</div>
495<dl>
496<dt><span class="paramLabel">Parameters:</span></dt>
497<dd><code>path</code> - This can be either a class name or filename.<br>
498 <ul>
499 <li>class name like"agents.anac.y2010.AgentFSEGA.AgentFSEGA".
500 In this case the agent must be already on the JVM's classpath
501 otherwise the agent will not be found. <br>
502 <li>a full path, eg
503 "/Volumes/documents/NegoWorkspace3/NegotiatorGUI/src/agents/anac/y2010/AgentFSEGA/AgentFSEGA.java"
504 . In this case, we can figure out the class path ourselves,
505 but the ref is system dependent (backslashes on windows) and
506 might be absolute path.
507 </ul></dd>
508<dt><span class="returnLabel">Returns:</span></dt>
509<dd>the <code>Object</code> in the given file</dd>
510<dt><span class="throwsLabel">Throws:</span></dt>
511<dd><code><a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code> - if path can not be loaded as object.</dd>
512</dl>
513</li>
514</ul>
515<a name="loadObject-java.lang.String-java.lang.Class-">
516<!-- -->
517</a>
518<ul class="blockList">
519<li class="blockList">
520<h4>loadObject</h4>
521<pre>public static&nbsp;java.lang.Object&nbsp;loadObject(java.lang.String&nbsp;path,
522 java.lang.Class&lt;?&gt;&nbsp;expectedClass)
523 throws <a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
524<div class="block">Runtime type-checked version of <a href="../../genius/core/Global.html#loadObject-java.lang.String-"><code>loadObject(String)</code></a>.</div>
525<dl>
526<dt><span class="paramLabel">Parameters:</span></dt>
527<dd><code>path</code> - </dd>
528<dd><code>expectedClass</code> - the class type that the loaded object must extend.</dd>
529<dt><span class="returnLabel">Returns:</span></dt>
530<dd>loaded object.</dd>
531<dt><span class="throwsLabel">Throws:</span></dt>
532<dd><code><a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code></dd>
533</dl>
534</li>
535</ul>
536<a name="deserializeObject-java.io.InputStream-">
537<!-- -->
538</a>
539<ul class="blockList">
540<li class="blockList">
541<h4>deserializeObject</h4>
542<pre>public static&nbsp;&lt;T&gt;&nbsp;T&nbsp;deserializeObject(java.io.InputStream&nbsp;is)
543 throws java.lang.ClassNotFoundException,
544 java.io.IOException</pre>
545<div class="block">Deserializes an object and casts it to the given type.</div>
546<dl>
547<dt><span class="paramLabel">Parameters:</span></dt>
548<dd><code>is</code> - the input stream containing serialized object.</dd>
549<dt><span class="returnLabel">Returns:</span></dt>
550<dd>object contained in given stream.</dd>
551<dt><span class="throwsLabel">Throws:</span></dt>
552<dd><code>java.io.IOException</code> - if file can not be found</dd>
553<dd><code>java.lang.ClassNotFoundException</code> - if class in the object can't be found</dd>
554<dd><code>java.lang.ClassCastException</code> - if not of given class type</dd>
555</dl>
556</li>
557</ul>
558<a name="serializeObject-java.io.OutputStream-java.io.Serializable-">
559<!-- -->
560</a>
561<ul class="blockList">
562<li class="blockList">
563<h4>serializeObject</h4>
564<pre>public static&nbsp;void&nbsp;serializeObject(java.io.OutputStream&nbsp;outputStream,
565 java.io.Serializable&nbsp;object)
566 throws java.io.IOException</pre>
567<div class="block">Serialize a serializable object to a outputstream.</div>
568<dl>
569<dt><span class="paramLabel">Parameters:</span></dt>
570<dd><code>outputStream</code> - the stream to write to</dd>
571<dd><code>object</code> - the object to store</dd>
572<dt><span class="throwsLabel">Throws:</span></dt>
573<dd><code>java.io.IOException</code></dd>
574</dl>
575</li>
576</ul>
577<a name="loadClassFromFile-java.io.File-">
578<!-- -->
579</a>
580<ul class="blockList">
581<li class="blockList">
582<h4>loadClassFromFile</h4>
583<pre>public static&nbsp;java.lang.Object&nbsp;loadClassFromFile(java.io.File&nbsp;file)
584 throws java.net.MalformedURLException,
585 java.lang.InstantiationException,
586 java.lang.IllegalAccessException,
587 java.lang.ClassNotFoundException</pre>
588<div class="block">Load a file as a class. It 'reverse engineers' the correct path by first
589 just trying to load the file. Assuming the file exists, we probably get
590 an error that we then use to determine the correct base directory.</div>
591<dl>
592<dt><span class="paramLabel">Parameters:</span></dt>
593<dd><code>file</code> - the object to be loaded. Filename should end with ".class".</dd>
594<dt><span class="returnLabel">Returns:</span></dt>
595<dd>the object contained in the file.</dd>
596<dt><span class="throwsLabel">Throws:</span></dt>
597<dd><code>java.lang.ClassNotFoundException</code></dd>
598<dd><code>java.lang.IllegalAccessException</code></dd>
599<dd><code>java.lang.InstantiationException</code></dd>
600<dd><code>java.net.MalformedURLException</code></dd>
601</dl>
602</li>
603</ul>
604<a name="loadAgent-java.lang.String-">
605<!-- -->
606</a>
607<ul class="blockList">
608<li class="blockList">
609<h4>loadAgent</h4>
610<pre>public static&nbsp;<a href="../../genius/core/Agent.html" title="class in genius.core">Agent</a>&nbsp;loadAgent(java.lang.String&nbsp;path)
611 throws <a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
612<div class="block">Load an agent using the given classname/filename. DOES NOT call
613 <a href="../../genius/core/Agent.html#parseStrategyParameters-java.lang.String-"><code>Agent.parseStrategyParameters(String)</code></a></div>
614<dl>
615<dt><span class="paramLabel">Parameters:</span></dt>
616<dd><code>path</code> - This can be either a class name or filename.<br>
617 <ul>
618 <li>class name like"agents.anac.y2010.AgentFSEGA.AgentFSEGA".
619 In this case the agent must be already on the JVM's classpath
620 otherwise the agent will not be found.
621 <li>a full path, eg
622 "/Volumes/documents/NegoWorkspace3/NegotiatorGUI/src/agents/anac/y2010/AgentFSEGA/AgentFSEGA.java"
623 . In this case, we can figure out the class path ourselves,
624 but the ref is system dependent (backslashes on windows) and
625 might be absolute path.
626 </ul></dd>
627<dt><span class="returnLabel">Returns:</span></dt>
628<dd>instantiated agent ready to use.</dd>
629<dt><span class="throwsLabel">Throws:</span></dt>
630<dd><code><a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code> - if object can't be loaded</dd>
631</dl>
632</li>
633</ul>
634<a name="loadAgent-java.lang.String-java.lang.String-">
635<!-- -->
636</a>
637<ul class="blockList">
638<li class="blockList">
639<h4>loadAgent</h4>
640<pre>public static&nbsp;<a href="../../genius/core/Agent.html" title="class in genius.core">Agent</a>&nbsp;loadAgent(java.lang.String&nbsp;agentClassName,
641 java.lang.String&nbsp;variables)
642 throws <a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
643<div class="block">load agent and then set the parameters. See <a href="../../genius/core/Global.html#loadAgent-java.lang.String-"><code>loadAgent(String)</code></a></div>
644<dl>
645<dt><span class="paramLabel">Parameters:</span></dt>
646<dd><code>agentClassName</code> - </dd>
647<dd><code>variables</code> - the variables to use, as string (eg, "time=0.9;e=1.0").</dd>
648<dt><span class="returnLabel">Returns:</span></dt>
649<dd>the agent contained in the given class name, and using the given
650 variables.</dd>
651<dt><span class="throwsLabel">Throws:</span></dt>
652<dd><code><a href="../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code> - if class can't be loaded</dd>
653</dl>
654</li>
655</ul>
656<a name="getAgentDescription-genius.core.Agent-">
657<!-- -->
658</a>
659<ul class="blockList">
660<li class="blockList">
661<h4>getAgentDescription</h4>
662<pre>public static&nbsp;java.lang.String&nbsp;getAgentDescription(<a href="../../genius/core/Agent.html" title="class in genius.core">Agent</a>&nbsp;agent)</pre>
663<div class="block">Gives a useful agent name.</div>
664</li>
665</ul>
666<a name="showLoadError-java.io.File-java.lang.Throwable-">
667<!-- -->
668</a>
669<ul class="blockList">
670<li class="blockList">
671<h4>showLoadError</h4>
672<pre>public static&nbsp;void&nbsp;showLoadError(java.io.File&nbsp;fc,
673 java.lang.Throwable&nbsp;e)</pre>
674<div class="block">Show a dialog to the user, explaining the exception that was raised while
675 loading file fc. Typically this is used in combination with
676 <a href="../../genius/core/Global.html#loadObject-java.lang.String-"><code>loadObject(String)</code></a> and associates. Also dumps a copy of the full
677 stacktrace to the console, to help us debugging #906</div>
678<dl>
679<dt><span class="paramLabel">Parameters:</span></dt>
680<dd><code>fc</code> - file that was attempted to be loaded</dd>
681<dd><code>e</code> - the exception that was raised</dd>
682</dl>
683</li>
684</ul>
685<a name="getOutcomesFileName--">
686<!-- -->
687</a>
688<ul class="blockList">
689<li class="blockList">
690<h4>getOutcomesFileName</h4>
691<pre>public static&nbsp;java.lang.String&nbsp;getOutcomesFileName()</pre>
692</li>
693</ul>
694<a name="getDistributedOutcomesFileName--">
695<!-- -->
696</a>
697<ul class="blockList">
698<li class="blockList">
699<h4>getDistributedOutcomesFileName</h4>
700<pre>public static&nbsp;java.lang.String&nbsp;getDistributedOutcomesFileName()</pre>
701</li>
702</ul>
703<a name="getTournamentOutcomeFileName--">
704<!-- -->
705</a>
706<ul class="blockList">
707<li class="blockList">
708<h4>getTournamentOutcomeFileName</h4>
709<pre>public static&nbsp;java.lang.String&nbsp;getTournamentOutcomeFileName()</pre>
710</li>
711</ul>
712<a name="getExtensiveOutcomesFileName--">
713<!-- -->
714</a>
715<ul class="blockList">
716<li class="blockList">
717<h4>getExtensiveOutcomesFileName</h4>
718<pre>public static&nbsp;java.lang.String&nbsp;getExtensiveOutcomesFileName()</pre>
719</li>
720</ul>
721<a name="getOQMOutcomesFileName--">
722<!-- -->
723</a>
724<ul class="blockList">
725<li class="blockList">
726<h4>getOQMOutcomesFileName</h4>
727<pre>public static&nbsp;java.lang.String&nbsp;getOQMOutcomesFileName()</pre>
728</li>
729</ul>
730<a name="nameOfClass-java.lang.String-">
731<!-- -->
732</a>
733<ul class="blockList">
734<li class="blockList">
735<h4>nameOfClass</h4>
736<pre>public static&nbsp;java.lang.String&nbsp;nameOfClass(java.lang.String&nbsp;classname1)</pre>
737<dl>
738<dt><span class="paramLabel">Parameters:</span></dt>
739<dd><code>classname</code> - </dd>
740<dt><span class="returnLabel">Returns:</span></dt>
741<dd>Removes trailing ".class" from string if it is there. In absolute
742 paths, the \ and / are replaced with '.' and we do as if that is
743 a fully specified class path (it isn't but it gives at least some
744 'short name')</dd>
745</dl>
746</li>
747</ul>
748<a name="shortNameOfClass-java.lang.String-">
749<!-- -->
750</a>
751<ul class="blockListLast">
752<li class="blockList">
753<h4>shortNameOfClass</h4>
754<pre>public static&nbsp;java.lang.String&nbsp;shortNameOfClass(java.lang.String&nbsp;classname1)</pre>
755<dl>
756<dt><span class="paramLabel">Parameters:</span></dt>
757<dd><code>classname</code> - </dd>
758<dt><span class="returnLabel">Returns:</span></dt>
759<dd>Removes trailing ".class" from string if it is there. If there is
760 no "." in the remainder, the remainder is returned. Otherwise,
761 the string after the last "." in the remainder is returned. In
762 absolute paths, the \ and / are replaced with '.' and we do as if
763 that is a fully specified class path (it isn't but it gives at
764 least some 'short name')</dd>
765</dl>
766</li>
767</ul>
768</li>
769</ul>
770</li>
771</ul>
772</div>
773</div>
774<!-- ========= END OF CLASS DATA ========= -->
775<!-- ======= START OF BOTTOM NAVBAR ====== -->
776<div class="bottomNav"><a name="navbar.bottom">
777<!-- -->
778</a>
779<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
780<a name="navbar.bottom.firstrow">
781<!-- -->
782</a>
783<ul class="navList" title="Navigation">
784<li><a href="../../overview-summary.html">Overview</a></li>
785<li><a href="package-summary.html">Package</a></li>
786<li class="navBarCell1Rev">Class</li>
787<li><a href="class-use/Global.html">Use</a></li>
788<li><a href="package-tree.html">Tree</a></li>
789<li><a href="../../deprecated-list.html">Deprecated</a></li>
790<li><a href="../../index-all.html">Index</a></li>
791<li><a href="../../help-doc.html">Help</a></li>
792</ul>
793</div>
794<div class="subNav">
795<ul class="navList">
796<li><a href="../../genius/core/Feedback.html" title="enum in genius.core"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
797<li><a href="../../genius/core/LinearBidIterator.html" title="class in genius.core"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
798</ul>
799<ul class="navList">
800<li><a href="../../index.html?genius/core/Global.html" target="_top">Frames</a></li>
801<li><a href="Global.html" target="_top">No&nbsp;Frames</a></li>
802</ul>
803<ul class="navList" id="allclasses_navbar_bottom">
804<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
805</ul>
806<div>
807<script type="text/javascript"><!--
808 allClassesLink = document.getElementById("allclasses_navbar_bottom");
809 if(window==top) {
810 allClassesLink.style.display = "block";
811 }
812 else {
813 allClassesLink.style.display = "none";
814 }
815 //-->
816</script>
817</div>
818<div>
819<ul class="subNavList">
820<li>Summary:&nbsp;</li>
821<li>Nested&nbsp;|&nbsp;</li>
822<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
823<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
824<li><a href="#method.summary">Method</a></li>
825</ul>
826<ul class="subNavList">
827<li>Detail:&nbsp;</li>
828<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
829<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
830<li><a href="#method.detail">Method</a></li>
831</ul>
832</div>
833<a name="skip.navbar.bottom">
834<!-- -->
835</a></div>
836<!-- ======== END OF BOTTOM NAVBAR ======= -->
837</body>
838</html>
Note: See TracBrowser for help on using the repository browser.