1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!-- NewPage -->
|
---|
3 | <html lang="en">
|
---|
4 | <head>
|
---|
5 | <!-- Generated by javadoc (1.8.0_112) on Thu Jun 21 12:05:58 CEST 2018 -->
|
---|
6 | <title>TournamentManager (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="TournamentManager (Genius Core Documentation)";
|
---|
16 | }
|
---|
17 | }
|
---|
18 | catch(err) {
|
---|
19 | }
|
---|
20 | //-->
|
---|
21 | var methods = {"i0":10,"i1":10,"i2":9,"i3":9,"i4":10,"i5":10};
|
---|
22 | var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
---|
23 | var altColor = "altColor";
|
---|
24 | var rowColor = "rowColor";
|
---|
25 | var tableTab = "tableTab";
|
---|
26 | var activeTableTab = "activeTableTab";
|
---|
27 | </script>
|
---|
28 | <noscript>
|
---|
29 | <div>JavaScript is disabled on your browser.</div>
|
---|
30 | </noscript>
|
---|
31 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
32 | <div class="topNav"><a name="navbar.top">
|
---|
33 | <!-- -->
|
---|
34 | </a>
|
---|
35 | <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
---|
36 | <a name="navbar.top.firstrow">
|
---|
37 | <!-- -->
|
---|
38 | </a>
|
---|
39 | <ul class="navList" title="Navigation">
|
---|
40 | <li><a href="../../../overview-summary.html">Overview</a></li>
|
---|
41 | <li><a href="package-summary.html">Package</a></li>
|
---|
42 | <li class="navBarCell1Rev">Class</li>
|
---|
43 | <li><a href="class-use/TournamentManager.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/session/SessionManager.html" title="class in genius.core.session"><span class="typeNameLink">Prev Class</span></a></li>
|
---|
53 | <li><a href="../../../genius/core/session/Turn.html" title="class in genius.core.session"><span class="typeNameLink">Next Class</span></a></li>
|
---|
54 | </ul>
|
---|
55 | <ul class="navList">
|
---|
56 | <li><a href="../../../index.html?genius/core/session/TournamentManager.html" target="_top">Frames</a></li>
|
---|
57 | <li><a href="TournamentManager.html" target="_top">No Frames</a></li>
|
---|
58 | </ul>
|
---|
59 | <ul class="navList" id="allclasses_navbar_top">
|
---|
60 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
---|
61 | </ul>
|
---|
62 | <div>
|
---|
63 | <script type="text/javascript"><!--
|
---|
64 | allClassesLink = document.getElementById("allclasses_navbar_top");
|
---|
65 | if(window==top) {
|
---|
66 | allClassesLink.style.display = "block";
|
---|
67 | }
|
---|
68 | else {
|
---|
69 | allClassesLink.style.display = "none";
|
---|
70 | }
|
---|
71 | //-->
|
---|
72 | </script>
|
---|
73 | </div>
|
---|
74 | <div>
|
---|
75 | <ul class="subNavList">
|
---|
76 | <li>Summary: </li>
|
---|
77 | <li><a href="#nested.classes.inherited.from.class.java.lang.Thread">Nested</a> | </li>
|
---|
78 | <li><a href="#fields.inherited.from.class.java.lang.Thread">Field</a> | </li>
|
---|
79 | <li><a href="#constructor.summary">Constr</a> | </li>
|
---|
80 | <li><a href="#method.summary">Method</a></li>
|
---|
81 | </ul>
|
---|
82 | <ul class="subNavList">
|
---|
83 | <li>Detail: </li>
|
---|
84 | <li>Field | </li>
|
---|
85 | <li><a href="#constructor.detail">Constr</a> | </li>
|
---|
86 | <li><a href="#method.detail">Method</a></li>
|
---|
87 | </ul>
|
---|
88 | </div>
|
---|
89 | <a name="skip.navbar.top">
|
---|
90 | <!-- -->
|
---|
91 | </a></div>
|
---|
92 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
93 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
94 | <div class="header">
|
---|
95 | <div class="subTitle">genius.core.session</div>
|
---|
96 | <h2 title="Class TournamentManager" class="title">Class TournamentManager</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>java.lang.Thread</li>
|
---|
104 | <li>
|
---|
105 | <ul class="inheritance">
|
---|
106 | <li>genius.core.session.TournamentManager</li>
|
---|
107 | </ul>
|
---|
108 | </li>
|
---|
109 | </ul>
|
---|
110 | </li>
|
---|
111 | </ul>
|
---|
112 | <div class="description">
|
---|
113 | <ul class="blockList">
|
---|
114 | <li class="blockList">
|
---|
115 | <dl>
|
---|
116 | <dt>All Implemented Interfaces:</dt>
|
---|
117 | <dd><a href="../../../genius/core/listener/Listenable.html" title="interface in genius.core.listener">Listenable</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>>, java.lang.Runnable</dd>
|
---|
118 | </dl>
|
---|
119 | <hr>
|
---|
120 | <br>
|
---|
121 | <pre>public class <span class="typeNameLabel">TournamentManager</span>
|
---|
122 | extends java.lang.Thread
|
---|
123 | implements <a href="../../../genius/core/listener/Listenable.html" title="interface in genius.core.listener">Listenable</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>></pre>
|
---|
124 | <div class="block">Manages a multi-lateral tournament and makes sure that the
|
---|
125 | <a href="../../../genius/core/session/SessionManager.html" title="class in genius.core.session"><code>SessionManager</code></a> are instantiated. It uses the
|
---|
126 | configuration object which is created by the user interface and extracts
|
---|
127 | individual session from configuration object which it wil pass on to the
|
---|
128 | session manager.
|
---|
129 |
|
---|
130 | <p>
|
---|
131 | Agents in a tournament must be of class <a href="../../../genius/core/parties/NegotiationParty.html" title="interface in genius.core.parties"><code>NegotiationParty</code></a>.</div>
|
---|
132 | </li>
|
---|
133 | </ul>
|
---|
134 | </div>
|
---|
135 | <div class="summary">
|
---|
136 | <ul class="blockList">
|
---|
137 | <li class="blockList">
|
---|
138 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
139 | <ul class="blockList">
|
---|
140 | <li class="blockList"><a name="nested.class.summary">
|
---|
141 | <!-- -->
|
---|
142 | </a>
|
---|
143 | <h3>Nested Class Summary</h3>
|
---|
144 | <ul class="blockList">
|
---|
145 | <li class="blockList"><a name="nested.classes.inherited.from.class.java.lang.Thread">
|
---|
146 | <!-- -->
|
---|
147 | </a>
|
---|
148 | <h3>Nested classes/interfaces inherited from class java.lang.Thread</h3>
|
---|
149 | <code>java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler</code></li>
|
---|
150 | </ul>
|
---|
151 | </li>
|
---|
152 | </ul>
|
---|
153 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
154 | <ul class="blockList">
|
---|
155 | <li class="blockList"><a name="field.summary">
|
---|
156 | <!-- -->
|
---|
157 | </a>
|
---|
158 | <h3>Field Summary</h3>
|
---|
159 | <ul class="blockList">
|
---|
160 | <li class="blockList"><a name="fields.inherited.from.class.java.lang.Thread">
|
---|
161 | <!-- -->
|
---|
162 | </a>
|
---|
163 | <h3>Fields inherited from class java.lang.Thread</h3>
|
---|
164 | <code>MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY</code></li>
|
---|
165 | </ul>
|
---|
166 | </li>
|
---|
167 | </ul>
|
---|
168 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
169 | <ul class="blockList">
|
---|
170 | <li class="blockList"><a name="constructor.summary">
|
---|
171 | <!-- -->
|
---|
172 | </a>
|
---|
173 | <h3>Constructor Summary</h3>
|
---|
174 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
---|
175 | <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
---|
176 | <tr>
|
---|
177 | <th class="colOne" scope="col">Constructor and Description</th>
|
---|
178 | </tr>
|
---|
179 | <tr class="altColor">
|
---|
180 | <td class="colOne"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#TournamentManager-genius.core.config.MultilateralTournamentConfiguration-">TournamentManager</a></span>(<a href="../../../genius/core/config/MultilateralTournamentConfiguration.html" title="class in genius.core.config">MultilateralTournamentConfiguration</a> config)</code>
|
---|
181 | <div class="block">Initializes a new instance of the
|
---|
182 | <a href="../../../genius/core/session/TournamentManager.html" title="class in genius.core.session"><code>TournamentManager</code></a> class.</div>
|
---|
183 | </td>
|
---|
184 | </tr>
|
---|
185 | </table>
|
---|
186 | </li>
|
---|
187 | </ul>
|
---|
188 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
189 | <ul class="blockList">
|
---|
190 | <li class="blockList"><a name="method.summary">
|
---|
191 | <!-- -->
|
---|
192 | </a>
|
---|
193 | <h3>Method Summary</h3>
|
---|
194 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
---|
195 | <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
---|
196 | <tr>
|
---|
197 | <th class="colFirst" scope="col">Modifier and Type</th>
|
---|
198 | <th class="colLast" scope="col">Method and Description</th>
|
---|
199 | </tr>
|
---|
200 | <tr id="i0" class="altColor">
|
---|
201 | <td class="colFirst"><code>void</code></td>
|
---|
202 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#addListener-genius.core.listener.Listener-">addListener</a></span>(<a href="../../../genius/core/listener/Listener.html" title="interface in genius.core.listener">Listener</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>> listener)</code>
|
---|
203 | <div class="block">listener support</div>
|
---|
204 | </td>
|
---|
205 | </tr>
|
---|
206 | <tr id="i1" class="rowColor">
|
---|
207 | <td class="colFirst"><code>protected java.lang.Object</code></td>
|
---|
208 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#clone--">clone</a></span>()</code> </td>
|
---|
209 | </tr>
|
---|
210 | <tr id="i2" class="altColor">
|
---|
211 | <td class="colFirst"><code>static java.util.List<<a href="../../../genius/core/parties/NegotiationPartyInternal.html" title="class in genius.core.parties">NegotiationPartyInternal</a>></code></td>
|
---|
212 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#getPartyList-genius.core.session.ExecutorWithTimeout-genius.core.session.MultilateralSessionConfiguration-genius.core.parties.SessionsInfo-genius.core.session.Session-">getPartyList</a></span>(<a href="../../../genius/core/session/ExecutorWithTimeout.html" title="class in genius.core.session">ExecutorWithTimeout</a> executor,
|
---|
213 | <a href="../../../genius/core/session/MultilateralSessionConfiguration.html" title="interface in genius.core.session">MultilateralSessionConfiguration</a> config,
|
---|
214 | <a href="../../../genius/core/parties/SessionsInfo.html" title="class in genius.core.parties">SessionsInfo</a> info,
|
---|
215 | <a href="../../../genius/core/session/Session.html" title="class in genius.core.session">Session</a> session)</code>
|
---|
216 | <div class="block">Generate the parties involved in the next round of the tournament
|
---|
217 | generator.</div>
|
---|
218 | </td>
|
---|
219 | </tr>
|
---|
220 | <tr id="i3" class="rowColor">
|
---|
221 | <td class="colFirst"><code>static <a href="../../../genius/core/protocol/MultilateralProtocol.html" title="interface in genius.core.protocol">MultilateralProtocol</a></code></td>
|
---|
222 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#getProtocol-genius.core.repository.MultiPartyProtocolRepItem-">getProtocol</a></span>(<a href="../../../genius/core/repository/MultiPartyProtocolRepItem.html" title="class in genius.core.repository">MultiPartyProtocolRepItem</a> protocolRepItem)</code>
|
---|
223 | <div class="block">Create a new instance of the Protocol object from a
|
---|
224 | <a href="../../../genius/core/repository/MultiPartyProtocolRepItem.html" title="class in genius.core.repository"><code>MultiPartyProtocolRepItem</code></a></div>
|
---|
225 | </td>
|
---|
226 | </tr>
|
---|
227 | <tr id="i4" class="altColor">
|
---|
228 | <td class="colFirst"><code>void</code></td>
|
---|
229 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#removeListener-genius.core.listener.Listener-">removeListener</a></span>(<a href="../../../genius/core/listener/Listener.html" title="interface in genius.core.listener">Listener</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>> listener)</code>
|
---|
230 | <div class="block">Remove listener for this observable</div>
|
---|
231 | </td>
|
---|
232 | </tr>
|
---|
233 | <tr id="i5" class="rowColor">
|
---|
234 | <td class="colFirst"><code>void</code></td>
|
---|
235 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/session/TournamentManager.html#run--">run</a></span>()</code>
|
---|
236 | <div class="block">Runnable implementation for thread</div>
|
---|
237 | </td>
|
---|
238 | </tr>
|
---|
239 | </table>
|
---|
240 | <ul class="blockList">
|
---|
241 | <li class="blockList"><a name="methods.inherited.from.class.java.lang.Thread">
|
---|
242 | <!-- -->
|
---|
243 | </a>
|
---|
244 | <h3>Methods inherited from class java.lang.Thread</h3>
|
---|
245 | <code>activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield</code></li>
|
---|
246 | </ul>
|
---|
247 | <ul class="blockList">
|
---|
248 | <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
---|
249 | <!-- -->
|
---|
250 | </a>
|
---|
251 | <h3>Methods inherited from class java.lang.Object</h3>
|
---|
252 | <code>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
---|
253 | </ul>
|
---|
254 | </li>
|
---|
255 | </ul>
|
---|
256 | </li>
|
---|
257 | </ul>
|
---|
258 | </div>
|
---|
259 | <div class="details">
|
---|
260 | <ul class="blockList">
|
---|
261 | <li class="blockList">
|
---|
262 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
263 | <ul class="blockList">
|
---|
264 | <li class="blockList"><a name="constructor.detail">
|
---|
265 | <!-- -->
|
---|
266 | </a>
|
---|
267 | <h3>Constructor Detail</h3>
|
---|
268 | <a name="TournamentManager-genius.core.config.MultilateralTournamentConfiguration-">
|
---|
269 | <!-- -->
|
---|
270 | </a>
|
---|
271 | <ul class="blockListLast">
|
---|
272 | <li class="blockList">
|
---|
273 | <h4>TournamentManager</h4>
|
---|
274 | <pre>public TournamentManager(<a href="../../../genius/core/config/MultilateralTournamentConfiguration.html" title="class in genius.core.config">MultilateralTournamentConfiguration</a> config)
|
---|
275 | throws java.io.IOException,
|
---|
276 | <a href="../../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
|
---|
277 | <div class="block">Initializes a new instance of the
|
---|
278 | <a href="../../../genius/core/session/TournamentManager.html" title="class in genius.core.session"><code>TournamentManager</code></a> class. The tournament
|
---|
279 | manager uses the provided configuration to find which sessions to run and
|
---|
280 | how many collections of these sessions (tournaments) to run.</div>
|
---|
281 | <dl>
|
---|
282 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
283 | <dd><code>config</code> - The configuration to use for this Tournament</dd>
|
---|
284 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
285 | <dd><code><a href="../../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code></dd>
|
---|
286 | <dd><code>java.io.IOException</code></dd>
|
---|
287 | </dl>
|
---|
288 | </li>
|
---|
289 | </ul>
|
---|
290 | </li>
|
---|
291 | </ul>
|
---|
292 | <!-- ============ METHOD DETAIL ========== -->
|
---|
293 | <ul class="blockList">
|
---|
294 | <li class="blockList"><a name="method.detail">
|
---|
295 | <!-- -->
|
---|
296 | </a>
|
---|
297 | <h3>Method Detail</h3>
|
---|
298 | <a name="addListener-genius.core.listener.Listener-">
|
---|
299 | <!-- -->
|
---|
300 | </a>
|
---|
301 | <ul class="blockList">
|
---|
302 | <li class="blockList">
|
---|
303 | <h4>addListener</h4>
|
---|
304 | <pre>public void addListener(<a href="../../../genius/core/listener/Listener.html" title="interface in genius.core.listener">Listener</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>> listener)</pre>
|
---|
305 | <div class="block">listener support</div>
|
---|
306 | <dl>
|
---|
307 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
308 | <dd><code><a href="../../../genius/core/listener/Listenable.html#addListener-genius.core.listener.Listener-">addListener</a></code> in interface <code><a href="../../../genius/core/listener/Listenable.html" title="interface in genius.core.listener">Listenable</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>></code></dd>
|
---|
309 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
310 | <dd><code>listener</code> - the listener to add</dd>
|
---|
311 | </dl>
|
---|
312 | </li>
|
---|
313 | </ul>
|
---|
314 | <a name="removeListener-genius.core.listener.Listener-">
|
---|
315 | <!-- -->
|
---|
316 | </a>
|
---|
317 | <ul class="blockList">
|
---|
318 | <li class="blockList">
|
---|
319 | <h4>removeListener</h4>
|
---|
320 | <pre>public void removeListener(<a href="../../../genius/core/listener/Listener.html" title="interface in genius.core.listener">Listener</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>> listener)</pre>
|
---|
321 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/listener/Listenable.html#removeListener-genius.core.listener.Listener-">Listenable</a></code></span></div>
|
---|
322 | <div class="block">Remove listener for this observable</div>
|
---|
323 | <dl>
|
---|
324 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
325 | <dd><code><a href="../../../genius/core/listener/Listenable.html#removeListener-genius.core.listener.Listener-">removeListener</a></code> in interface <code><a href="../../../genius/core/listener/Listenable.html" title="interface in genius.core.listener">Listenable</a><<a href="../../../genius/core/events/NegotiationEvent.html" title="interface in genius.core.events">NegotiationEvent</a>></code></dd>
|
---|
326 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
327 | <dd><code>listener</code> - the listener to remove</dd>
|
---|
328 | </dl>
|
---|
329 | </li>
|
---|
330 | </ul>
|
---|
331 | <a name="run--">
|
---|
332 | <!-- -->
|
---|
333 | </a>
|
---|
334 | <ul class="blockList">
|
---|
335 | <li class="blockList">
|
---|
336 | <h4>run</h4>
|
---|
337 | <pre>public void run()</pre>
|
---|
338 | <div class="block">Runnable implementation for thread</div>
|
---|
339 | <dl>
|
---|
340 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
341 | <dd><code>run</code> in interface <code>java.lang.Runnable</code></dd>
|
---|
342 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
343 | <dd><code>run</code> in class <code>java.lang.Thread</code></dd>
|
---|
344 | </dl>
|
---|
345 | </li>
|
---|
346 | </ul>
|
---|
347 | <a name="getPartyList-genius.core.session.ExecutorWithTimeout-genius.core.session.MultilateralSessionConfiguration-genius.core.parties.SessionsInfo-genius.core.session.Session-">
|
---|
348 | <!-- -->
|
---|
349 | </a>
|
---|
350 | <ul class="blockList">
|
---|
351 | <li class="blockList">
|
---|
352 | <h4>getPartyList</h4>
|
---|
353 | <pre>public static java.util.List<<a href="../../../genius/core/parties/NegotiationPartyInternal.html" title="class in genius.core.parties">NegotiationPartyInternal</a>> getPartyList(<a href="../../../genius/core/session/ExecutorWithTimeout.html" title="class in genius.core.session">ExecutorWithTimeout</a> executor,
|
---|
354 | <a href="../../../genius/core/session/MultilateralSessionConfiguration.html" title="interface in genius.core.session">MultilateralSessionConfiguration</a> config,
|
---|
355 | <a href="../../../genius/core/parties/SessionsInfo.html" title="class in genius.core.parties">SessionsInfo</a> info,
|
---|
356 | <a href="../../../genius/core/session/Session.html" title="class in genius.core.session">Session</a> session)
|
---|
357 | throws java.util.concurrent.TimeoutException,
|
---|
358 | java.util.concurrent.ExecutionException</pre>
|
---|
359 | <div class="block">Generate the parties involved in the next round of the tournament
|
---|
360 | generator. Assumes generator.hasNext(). <br>
|
---|
361 | Checks various error cases and reports accordingly. If repository fails
|
---|
362 | completely, we call System.exit(). useConsoleOut is called to disable
|
---|
363 | console output while running agent code. <br></div>
|
---|
364 | <dl>
|
---|
365 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
366 | <dd><code>executor</code> - the executor to use</dd>
|
---|
367 | <dd><code>config</code> - the <a href="../../../genius/core/session/MultilateralSessionConfiguration.html" title="interface in genius.core.session"><code>MultilateralSessionConfiguration</code></a> to use</dd>
|
---|
368 | <dd><code>info</code> - the global <a href="../../../genius/core/parties/SessionsInfo.html" title="class in genius.core.parties"><code>SessionsInfo</code></a>.</dd>
|
---|
369 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
370 | <dd>list of parties for next round. May return null if one or more
|
---|
371 | agents could not be created.</dd>
|
---|
372 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
373 | <dd><code>java.util.concurrent.TimeoutException</code> - if we run out of time during the construction.</dd>
|
---|
374 | <dd><code>java.util.concurrent.ExecutionException</code> - if one of the agents does not construct properly</dd>
|
---|
375 | </dl>
|
---|
376 | </li>
|
---|
377 | </ul>
|
---|
378 | <a name="clone--">
|
---|
379 | <!-- -->
|
---|
380 | </a>
|
---|
381 | <ul class="blockList">
|
---|
382 | <li class="blockList">
|
---|
383 | <h4>clone</h4>
|
---|
384 | <pre>protected java.lang.Object clone()
|
---|
385 | throws java.lang.CloneNotSupportedException</pre>
|
---|
386 | <dl>
|
---|
387 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
388 | <dd><code>clone</code> in class <code>java.lang.Thread</code></dd>
|
---|
389 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
390 | <dd><code>java.lang.CloneNotSupportedException</code></dd>
|
---|
391 | </dl>
|
---|
392 | </li>
|
---|
393 | </ul>
|
---|
394 | <a name="getProtocol-genius.core.repository.MultiPartyProtocolRepItem-">
|
---|
395 | <!-- -->
|
---|
396 | </a>
|
---|
397 | <ul class="blockListLast">
|
---|
398 | <li class="blockList">
|
---|
399 | <h4>getProtocol</h4>
|
---|
400 | <pre>public static <a href="../../../genius/core/protocol/MultilateralProtocol.html" title="interface in genius.core.protocol">MultilateralProtocol</a> getProtocol(<a href="../../../genius/core/repository/MultiPartyProtocolRepItem.html" title="class in genius.core.repository">MultiPartyProtocolRepItem</a> protocolRepItem)
|
---|
401 | throws <a href="../../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></pre>
|
---|
402 | <div class="block">Create a new instance of the Protocol object from a
|
---|
403 | <a href="../../../genius/core/repository/MultiPartyProtocolRepItem.html" title="class in genius.core.repository"><code>MultiPartyProtocolRepItem</code></a></div>
|
---|
404 | <dl>
|
---|
405 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
406 | <dd>the created protocol.</dd>
|
---|
407 | <dt><span class="throwsLabel">Throws:</span></dt>
|
---|
408 | <dd><code><a href="../../../genius/core/exceptions/InstantiateException.html" title="class in genius.core.exceptions">InstantiateException</a></code> - if failure occurs while constructing the rep item.</dd>
|
---|
409 | </dl>
|
---|
410 | </li>
|
---|
411 | </ul>
|
---|
412 | </li>
|
---|
413 | </ul>
|
---|
414 | </li>
|
---|
415 | </ul>
|
---|
416 | </div>
|
---|
417 | </div>
|
---|
418 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
419 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
420 | <div class="bottomNav"><a name="navbar.bottom">
|
---|
421 | <!-- -->
|
---|
422 | </a>
|
---|
423 | <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
---|
424 | <a name="navbar.bottom.firstrow">
|
---|
425 | <!-- -->
|
---|
426 | </a>
|
---|
427 | <ul class="navList" title="Navigation">
|
---|
428 | <li><a href="../../../overview-summary.html">Overview</a></li>
|
---|
429 | <li><a href="package-summary.html">Package</a></li>
|
---|
430 | <li class="navBarCell1Rev">Class</li>
|
---|
431 | <li><a href="class-use/TournamentManager.html">Use</a></li>
|
---|
432 | <li><a href="package-tree.html">Tree</a></li>
|
---|
433 | <li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
---|
434 | <li><a href="../../../index-all.html">Index</a></li>
|
---|
435 | <li><a href="../../../help-doc.html">Help</a></li>
|
---|
436 | </ul>
|
---|
437 | </div>
|
---|
438 | <div class="subNav">
|
---|
439 | <ul class="navList">
|
---|
440 | <li><a href="../../../genius/core/session/SessionManager.html" title="class in genius.core.session"><span class="typeNameLink">Prev Class</span></a></li>
|
---|
441 | <li><a href="../../../genius/core/session/Turn.html" title="class in genius.core.session"><span class="typeNameLink">Next Class</span></a></li>
|
---|
442 | </ul>
|
---|
443 | <ul class="navList">
|
---|
444 | <li><a href="../../../index.html?genius/core/session/TournamentManager.html" target="_top">Frames</a></li>
|
---|
445 | <li><a href="TournamentManager.html" target="_top">No Frames</a></li>
|
---|
446 | </ul>
|
---|
447 | <ul class="navList" id="allclasses_navbar_bottom">
|
---|
448 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
---|
449 | </ul>
|
---|
450 | <div>
|
---|
451 | <script type="text/javascript"><!--
|
---|
452 | allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
---|
453 | if(window==top) {
|
---|
454 | allClassesLink.style.display = "block";
|
---|
455 | }
|
---|
456 | else {
|
---|
457 | allClassesLink.style.display = "none";
|
---|
458 | }
|
---|
459 | //-->
|
---|
460 | </script>
|
---|
461 | </div>
|
---|
462 | <div>
|
---|
463 | <ul class="subNavList">
|
---|
464 | <li>Summary: </li>
|
---|
465 | <li><a href="#nested.classes.inherited.from.class.java.lang.Thread">Nested</a> | </li>
|
---|
466 | <li><a href="#fields.inherited.from.class.java.lang.Thread">Field</a> | </li>
|
---|
467 | <li><a href="#constructor.summary">Constr</a> | </li>
|
---|
468 | <li><a href="#method.summary">Method</a></li>
|
---|
469 | </ul>
|
---|
470 | <ul class="subNavList">
|
---|
471 | <li>Detail: </li>
|
---|
472 | <li>Field | </li>
|
---|
473 | <li><a href="#constructor.detail">Constr</a> | </li>
|
---|
474 | <li><a href="#method.detail">Method</a></li>
|
---|
475 | </ul>
|
---|
476 | </div>
|
---|
477 | <a name="skip.navbar.bottom">
|
---|
478 | <!-- -->
|
---|
479 | </a></div>
|
---|
480 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
481 | </body>
|
---|
482 | </html>
|
---|