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>DiscreteTimeline (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="DiscreteTimeline (Genius Core Documentation)";
|
---|
16 | }
|
---|
17 | }
|
---|
18 | catch(err) {
|
---|
19 | }
|
---|
20 | //-->
|
---|
21 | var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10};
|
---|
22 | var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
---|
23 | var altColor = "altColor";
|
---|
24 | var rowColor = "rowColor";
|
---|
25 | var tableTab = "tableTab";
|
---|
26 | var activeTableTab = "activeTableTab";
|
---|
27 | </script>
|
---|
28 | <noscript>
|
---|
29 | <div>JavaScript is disabled on your browser.</div>
|
---|
30 | </noscript>
|
---|
31 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
32 | <div class="topNav"><a name="navbar.top">
|
---|
33 | <!-- -->
|
---|
34 | </a>
|
---|
35 | <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
---|
36 | <a name="navbar.top.firstrow">
|
---|
37 | <!-- -->
|
---|
38 | </a>
|
---|
39 | <ul class="navList" title="Navigation">
|
---|
40 | <li><a href="../../../overview-summary.html">Overview</a></li>
|
---|
41 | <li><a href="package-summary.html">Package</a></li>
|
---|
42 | <li class="navBarCell1Rev">Class</li>
|
---|
43 | <li><a href="class-use/DiscreteTimeline.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/timeline/ContinuousTimeline.html" title="class in genius.core.timeline"><span class="typeNameLink">Prev Class</span></a></li>
|
---|
53 | <li><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline"><span class="typeNameLink">Next Class</span></a></li>
|
---|
54 | </ul>
|
---|
55 | <ul class="navList">
|
---|
56 | <li><a href="../../../index.html?genius/core/timeline/DiscreteTimeline.html" target="_top">Frames</a></li>
|
---|
57 | <li><a href="DiscreteTimeline.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.genius.core.timeline.Timeline">Nested</a> | </li>
|
---|
78 | <li><a href="#field.summary">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><a href="#field.detail">Field</a> | </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.timeline</div>
|
---|
96 | <h2 title="Class DiscreteTimeline" class="title">Class DiscreteTimeline</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><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">genius.core.timeline.Timeline</a></li>
|
---|
104 | <li>
|
---|
105 | <ul class="inheritance">
|
---|
106 | <li>genius.core.timeline.DiscreteTimeline</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/timeline/TimeLineInfo.html" title="interface in genius.core.timeline">TimeLineInfo</a>, java.io.Serializable</dd>
|
---|
118 | </dl>
|
---|
119 | <hr>
|
---|
120 | <br>
|
---|
121 | <pre>public class <span class="typeNameLabel">DiscreteTimeline</span>
|
---|
122 | extends <a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></pre>
|
---|
123 | <div class="block">Implementation of the timeline in which time is divided in rounds. Time does
|
---|
124 | not pass within a round. Note that requesting the total time is in this case
|
---|
125 | undefined.
|
---|
126 |
|
---|
127 | NOTICE: DiscreteTimeline assumes each action of a player a 'round'. In
|
---|
128 | PocketNegotiator this would be called a 'turn'. Check also
|
---|
129 | <a href="../../../genius/core/timeline/DiscreteTimeline.html#getOwnRoundsLeft--"><code>getOwnRoundsLeft()</code></a></div>
|
---|
130 | <dl>
|
---|
131 | <dt><span class="seeLabel">See Also:</span></dt>
|
---|
132 | <dd><a href="../../../serialized-form.html#genius.core.timeline.DiscreteTimeline">Serialized Form</a></dd>
|
---|
133 | </dl>
|
---|
134 | </li>
|
---|
135 | </ul>
|
---|
136 | </div>
|
---|
137 | <div class="summary">
|
---|
138 | <ul class="blockList">
|
---|
139 | <li class="blockList">
|
---|
140 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
141 | <ul class="blockList">
|
---|
142 | <li class="blockList"><a name="nested.class.summary">
|
---|
143 | <!-- -->
|
---|
144 | </a>
|
---|
145 | <h3>Nested Class Summary</h3>
|
---|
146 | <ul class="blockList">
|
---|
147 | <li class="blockList"><a name="nested.classes.inherited.from.class.genius.core.timeline.Timeline">
|
---|
148 | <!-- -->
|
---|
149 | </a>
|
---|
150 | <h3>Nested classes/interfaces inherited from class genius.core.timeline.<a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></h3>
|
---|
151 | <code><a href="../../../genius/core/timeline/Timeline.Type.html" title="enum in genius.core.timeline">Timeline.Type</a></code></li>
|
---|
152 | </ul>
|
---|
153 | </li>
|
---|
154 | </ul>
|
---|
155 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
156 | <ul class="blockList">
|
---|
157 | <li class="blockList"><a name="field.summary">
|
---|
158 | <!-- -->
|
---|
159 | </a>
|
---|
160 | <h3>Field Summary</h3>
|
---|
161 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
---|
162 | <caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
---|
163 | <tr>
|
---|
164 | <th class="colFirst" scope="col">Modifier and Type</th>
|
---|
165 | <th class="colLast" scope="col">Field and Description</th>
|
---|
166 | </tr>
|
---|
167 | <tr class="altColor">
|
---|
168 | <td class="colFirst"><code>protected int</code></td>
|
---|
169 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#cRound">cRound</a></span></code>
|
---|
170 | <div class="block">E.g.</div>
|
---|
171 | </td>
|
---|
172 | </tr>
|
---|
173 | </table>
|
---|
174 | <ul class="blockList">
|
---|
175 | <li class="blockList"><a name="fields.inherited.from.class.genius.core.timeline.Timeline">
|
---|
176 | <!-- -->
|
---|
177 | </a>
|
---|
178 | <h3>Fields inherited from class genius.core.timeline.<a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></h3>
|
---|
179 | <code><a href="../../../genius/core/timeline/Timeline.html#hasDeadline">hasDeadline</a>, <a href="../../../genius/core/timeline/Timeline.html#paused">paused</a></code></li>
|
---|
180 | </ul>
|
---|
181 | </li>
|
---|
182 | </ul>
|
---|
183 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
184 | <ul class="blockList">
|
---|
185 | <li class="blockList"><a name="constructor.summary">
|
---|
186 | <!-- -->
|
---|
187 | </a>
|
---|
188 | <h3>Constructor Summary</h3>
|
---|
189 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
---|
190 | <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
---|
191 | <tr>
|
---|
192 | <th class="colOne" scope="col">Constructor and Description</th>
|
---|
193 | </tr>
|
---|
194 | <tr class="altColor">
|
---|
195 | <td class="colOne"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#DiscreteTimeline-int-">DiscreteTimeline</a></span>(int totalRounds)</code> </td>
|
---|
196 | </tr>
|
---|
197 | </table>
|
---|
198 | </li>
|
---|
199 | </ul>
|
---|
200 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
201 | <ul class="blockList">
|
---|
202 | <li class="blockList"><a name="method.summary">
|
---|
203 | <!-- -->
|
---|
204 | </a>
|
---|
205 | <h3>Method Summary</h3>
|
---|
206 | <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
---|
207 | <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
---|
208 | <tr>
|
---|
209 | <th class="colFirst" scope="col">Modifier and Type</th>
|
---|
210 | <th class="colLast" scope="col">Method and Description</th>
|
---|
211 | </tr>
|
---|
212 | <tr id="i0" class="altColor">
|
---|
213 | <td class="colFirst"><code>double</code></td>
|
---|
214 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getCurrentTime--">getCurrentTime</a></span>()</code> </td>
|
---|
215 | </tr>
|
---|
216 | <tr id="i1" class="rowColor">
|
---|
217 | <td class="colFirst"><code>int</code></td>
|
---|
218 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getOwnRoundsLeft--">getOwnRoundsLeft</a></span>()</code>
|
---|
219 | <div class="block">The number of rounds left for ourself.</div>
|
---|
220 | </td>
|
---|
221 | </tr>
|
---|
222 | <tr id="i2" class="altColor">
|
---|
223 | <td class="colFirst"><code>int</code></td>
|
---|
224 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getOwnTotalRounds--">getOwnTotalRounds</a></span>()</code>
|
---|
225 | <div class="block">The total number of rounds for ourself.</div>
|
---|
226 | </td>
|
---|
227 | </tr>
|
---|
228 | <tr id="i3" class="rowColor">
|
---|
229 | <td class="colFirst"><code>int</code></td>
|
---|
230 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getRound--">getRound</a></span>()</code>
|
---|
231 | <div class="block">Starting to count from 1, until the total amount of rounds.</div>
|
---|
232 | </td>
|
---|
233 | </tr>
|
---|
234 | <tr id="i4" class="altColor">
|
---|
235 | <td class="colFirst"><code>int</code></td>
|
---|
236 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getRoundsLeft--">getRoundsLeft</a></span>()</code> </td>
|
---|
237 | </tr>
|
---|
238 | <tr id="i5" class="rowColor">
|
---|
239 | <td class="colFirst"><code>double</code></td>
|
---|
240 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getTime--">getTime</a></span>()</code>
|
---|
241 | <div class="block">Gets the time, running from t = 0 (start) to t = 1 (deadline).</div>
|
---|
242 | </td>
|
---|
243 | </tr>
|
---|
244 | <tr id="i6" class="altColor">
|
---|
245 | <td class="colFirst"><code>int</code></td>
|
---|
246 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getTotalRounds--">getTotalRounds</a></span>()</code>
|
---|
247 | <div class="block">Be careful, this is not equal to the initializing value!</div>
|
---|
248 | </td>
|
---|
249 | </tr>
|
---|
250 | <tr id="i7" class="rowColor">
|
---|
251 | <td class="colFirst"><code>double</code></td>
|
---|
252 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getTotalTime--">getTotalTime</a></span>()</code>
|
---|
253 | <div class="block"><a href="../../../genius/core/Agent.html#sleep-double-"><code>Agent.sleep(double)</code></a> requires this method.</div>
|
---|
254 | </td>
|
---|
255 | </tr>
|
---|
256 | <tr id="i8" class="altColor">
|
---|
257 | <td class="colFirst"><code><a href="../../../genius/core/timeline/Timeline.Type.html" title="enum in genius.core.timeline">Timeline.Type</a></code></td>
|
---|
258 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#getType--">getType</a></span>()</code>
|
---|
259 | <div class="block">In a time-based protocol, time passes within a round.</div>
|
---|
260 | </td>
|
---|
261 | </tr>
|
---|
262 | <tr id="i9" class="rowColor">
|
---|
263 | <td class="colFirst"><code>void</code></td>
|
---|
264 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#increment--">increment</a></span>()</code> </td>
|
---|
265 | </tr>
|
---|
266 | <tr id="i10" class="altColor">
|
---|
267 | <td class="colFirst"><code>void</code></td>
|
---|
268 | <td class="colLast"><code><span class="memberNameLink"><a href="../../../genius/core/timeline/DiscreteTimeline.html#setcRound-int-">setcRound</a></span>(int cRound)</code> </td>
|
---|
269 | </tr>
|
---|
270 | </table>
|
---|
271 | <ul class="blockList">
|
---|
272 | <li class="blockList"><a name="methods.inherited.from.class.genius.core.timeline.Timeline">
|
---|
273 | <!-- -->
|
---|
274 | </a>
|
---|
275 | <h3>Methods inherited from class genius.core.timeline.<a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></h3>
|
---|
276 | <code><a href="../../../genius/core/timeline/Timeline.html#isDeadlineReached--">isDeadlineReached</a>, <a href="../../../genius/core/timeline/Timeline.html#isPaused--">isPaused</a></code></li>
|
---|
277 | </ul>
|
---|
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 java.lang.Object</h3>
|
---|
283 | <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
---|
284 | </ul>
|
---|
285 | </li>
|
---|
286 | </ul>
|
---|
287 | </li>
|
---|
288 | </ul>
|
---|
289 | </div>
|
---|
290 | <div class="details">
|
---|
291 | <ul class="blockList">
|
---|
292 | <li class="blockList">
|
---|
293 | <!-- ============ FIELD DETAIL =========== -->
|
---|
294 | <ul class="blockList">
|
---|
295 | <li class="blockList"><a name="field.detail">
|
---|
296 | <!-- -->
|
---|
297 | </a>
|
---|
298 | <h3>Field Detail</h3>
|
---|
299 | <a name="cRound">
|
---|
300 | <!-- -->
|
---|
301 | </a>
|
---|
302 | <ul class="blockListLast">
|
---|
303 | <li class="blockList">
|
---|
304 | <h4>cRound</h4>
|
---|
305 | <pre>protected int cRound</pre>
|
---|
306 | <div class="block">E.g. with 3 rounds, it takes the values 1, 2, 3, and on 4 is the
|
---|
307 | deadline.</div>
|
---|
308 | </li>
|
---|
309 | </ul>
|
---|
310 | </li>
|
---|
311 | </ul>
|
---|
312 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
313 | <ul class="blockList">
|
---|
314 | <li class="blockList"><a name="constructor.detail">
|
---|
315 | <!-- -->
|
---|
316 | </a>
|
---|
317 | <h3>Constructor Detail</h3>
|
---|
318 | <a name="DiscreteTimeline-int-">
|
---|
319 | <!-- -->
|
---|
320 | </a>
|
---|
321 | <ul class="blockListLast">
|
---|
322 | <li class="blockList">
|
---|
323 | <h4>DiscreteTimeline</h4>
|
---|
324 | <pre>public DiscreteTimeline(int totalRounds)</pre>
|
---|
325 | <dl>
|
---|
326 | <dt><span class="paramLabel">Parameters:</span></dt>
|
---|
327 | <dd><code>the</code> - total number of rounds allowed on this timeline. Creates a
|
---|
328 | timeline with a deadline of <a href="../../../genius/core/timeline/DiscreteTimeline.html#totalRounds"><code>totalRounds</code></a> number of
|
---|
329 | rounds. If 3, the play rounds are 1,2,3 and when we are on
|
---|
330 | round 4 the deadline is reached. see also <a href="../../../genius/core/timeline/DiscreteTimeline.html#getTime--"><code>getTime()</code></a></dd>
|
---|
331 | </dl>
|
---|
332 | </li>
|
---|
333 | </ul>
|
---|
334 | </li>
|
---|
335 | </ul>
|
---|
336 | <!-- ============ METHOD DETAIL ========== -->
|
---|
337 | <ul class="blockList">
|
---|
338 | <li class="blockList"><a name="method.detail">
|
---|
339 | <!-- -->
|
---|
340 | </a>
|
---|
341 | <h3>Method Detail</h3>
|
---|
342 | <a name="getTime--">
|
---|
343 | <!-- -->
|
---|
344 | </a>
|
---|
345 | <ul class="blockList">
|
---|
346 | <li class="blockList">
|
---|
347 | <h4>getTime</h4>
|
---|
348 | <pre>public double getTime()</pre>
|
---|
349 | <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../genius/core/timeline/Timeline.html#getTime--">Timeline</a></code></span></div>
|
---|
350 | <div class="block">Gets the time, running from t = 0 (start) to t = 1 (deadline). The time
|
---|
351 | is normalized, so agents need not be concerned with the actual internal
|
---|
352 | clock.</div>
|
---|
353 | <dl>
|
---|
354 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
355 | <dd><code><a href="../../../genius/core/timeline/TimeLineInfo.html#getTime--">getTime</a></code> in interface <code><a href="../../../genius/core/timeline/TimeLineInfo.html" title="interface in genius.core.timeline">TimeLineInfo</a></code></dd>
|
---|
356 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
357 | <dd><code><a href="../../../genius/core/timeline/Timeline.html#getTime--">getTime</a></code> in class <code><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></code></dd>
|
---|
358 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
359 | <dd>the time, running from t = 0 (start) to t = 1 (deadline). The
|
---|
360 | time is normalized, so agents need not be concerned with the
|
---|
361 | actual internal clock.</dd>
|
---|
362 | </dl>
|
---|
363 | </li>
|
---|
364 | </ul>
|
---|
365 | <a name="increment--">
|
---|
366 | <!-- -->
|
---|
367 | </a>
|
---|
368 | <ul class="blockList">
|
---|
369 | <li class="blockList">
|
---|
370 | <h4>increment</h4>
|
---|
371 | <pre>public void increment()</pre>
|
---|
372 | </li>
|
---|
373 | </ul>
|
---|
374 | <a name="setcRound-int-">
|
---|
375 | <!-- -->
|
---|
376 | </a>
|
---|
377 | <ul class="blockList">
|
---|
378 | <li class="blockList">
|
---|
379 | <h4>setcRound</h4>
|
---|
380 | <pre>public void setcRound(int cRound)</pre>
|
---|
381 | </li>
|
---|
382 | </ul>
|
---|
383 | <a name="getTotalTime--">
|
---|
384 | <!-- -->
|
---|
385 | </a>
|
---|
386 | <ul class="blockList">
|
---|
387 | <li class="blockList">
|
---|
388 | <h4>getTotalTime</h4>
|
---|
389 | <pre>public double getTotalTime()</pre>
|
---|
390 | <div class="block"><a href="../../../genius/core/Agent.html#sleep-double-"><code>Agent.sleep(double)</code></a> requires this method.</div>
|
---|
391 | <dl>
|
---|
392 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
393 | <dd><code><a href="../../../genius/core/timeline/TimeLineInfo.html#getTotalTime--">getTotalTime</a></code> in interface <code><a href="../../../genius/core/timeline/TimeLineInfo.html" title="interface in genius.core.timeline">TimeLineInfo</a></code></dd>
|
---|
394 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
395 | <dd><code><a href="../../../genius/core/timeline/Timeline.html#getTotalTime--">getTotalTime</a></code> in class <code><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></code></dd>
|
---|
396 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
397 | <dd>amount of time in seconds, or amount of rounds depending on
|
---|
398 | timeline type.</dd>
|
---|
399 | </dl>
|
---|
400 | </li>
|
---|
401 | </ul>
|
---|
402 | <a name="getRound--">
|
---|
403 | <!-- -->
|
---|
404 | </a>
|
---|
405 | <ul class="blockList">
|
---|
406 | <li class="blockList">
|
---|
407 | <h4>getRound</h4>
|
---|
408 | <pre>public int getRound()</pre>
|
---|
409 | <div class="block">Starting to count from 1, until the total amount of rounds.</div>
|
---|
410 | </li>
|
---|
411 | </ul>
|
---|
412 | <a name="getRoundsLeft--">
|
---|
413 | <!-- -->
|
---|
414 | </a>
|
---|
415 | <ul class="blockList">
|
---|
416 | <li class="blockList">
|
---|
417 | <h4>getRoundsLeft</h4>
|
---|
418 | <pre>public int getRoundsLeft()</pre>
|
---|
419 | </li>
|
---|
420 | </ul>
|
---|
421 | <a name="getTotalRounds--">
|
---|
422 | <!-- -->
|
---|
423 | </a>
|
---|
424 | <ul class="blockList">
|
---|
425 | <li class="blockList">
|
---|
426 | <h4>getTotalRounds</h4>
|
---|
427 | <pre>public int getTotalRounds()</pre>
|
---|
428 | <div class="block">Be careful, this is not equal to the initializing value!</div>
|
---|
429 | </li>
|
---|
430 | </ul>
|
---|
431 | <a name="getOwnTotalRounds--">
|
---|
432 | <!-- -->
|
---|
433 | </a>
|
---|
434 | <ul class="blockList">
|
---|
435 | <li class="blockList">
|
---|
436 | <h4>getOwnTotalRounds</h4>
|
---|
437 | <pre>public int getOwnTotalRounds()</pre>
|
---|
438 | <div class="block">The total number of rounds for ourself. Be careful, this is not equal to
|
---|
439 | the initializing value!</div>
|
---|
440 | </li>
|
---|
441 | </ul>
|
---|
442 | <a name="getOwnRoundsLeft--">
|
---|
443 | <!-- -->
|
---|
444 | </a>
|
---|
445 | <ul class="blockList">
|
---|
446 | <li class="blockList">
|
---|
447 | <h4>getOwnRoundsLeft</h4>
|
---|
448 | <pre>public int getOwnRoundsLeft()</pre>
|
---|
449 | <div class="block">The number of rounds left for ourself.</div>
|
---|
450 | </li>
|
---|
451 | </ul>
|
---|
452 | <a name="getType--">
|
---|
453 | <!-- -->
|
---|
454 | </a>
|
---|
455 | <ul class="blockList">
|
---|
456 | <li class="blockList">
|
---|
457 | <h4>getType</h4>
|
---|
458 | <pre>public <a href="../../../genius/core/timeline/Timeline.Type.html" title="enum in genius.core.timeline">Timeline.Type</a> getType()</pre>
|
---|
459 | <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../genius/core/timeline/TimeLineInfo.html#getType--">TimeLineInfo</a></code></span></div>
|
---|
460 | <div class="block">In a time-based protocol, time passes within a round. In contrast, in a
|
---|
461 | rounds-based protocol time only passes when the action is presented.</div>
|
---|
462 | <dl>
|
---|
463 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
464 | <dd><code><a href="../../../genius/core/timeline/TimeLineInfo.html#getType--">getType</a></code> in interface <code><a href="../../../genius/core/timeline/TimeLineInfo.html" title="interface in genius.core.timeline">TimeLineInfo</a></code></dd>
|
---|
465 | <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
---|
466 | <dd><code><a href="../../../genius/core/timeline/Timeline.html#getType--">getType</a></code> in class <code><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></code></dd>
|
---|
467 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
468 | <dd>type of time: Type.Time or Type.Rounds.</dd>
|
---|
469 | </dl>
|
---|
470 | </li>
|
---|
471 | </ul>
|
---|
472 | <a name="getCurrentTime--">
|
---|
473 | <!-- -->
|
---|
474 | </a>
|
---|
475 | <ul class="blockListLast">
|
---|
476 | <li class="blockList">
|
---|
477 | <h4>getCurrentTime</h4>
|
---|
478 | <pre>public double getCurrentTime()</pre>
|
---|
479 | <dl>
|
---|
480 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
481 | <dd><code><a href="../../../genius/core/timeline/TimeLineInfo.html#getCurrentTime--">getCurrentTime</a></code> in interface <code><a href="../../../genius/core/timeline/TimeLineInfo.html" title="interface in genius.core.timeline">TimeLineInfo</a></code></dd>
|
---|
482 | <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
---|
483 | <dd><code><a href="../../../genius/core/timeline/Timeline.html#getCurrentTime--">getCurrentTime</a></code> in class <code><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline">Timeline</a></code></dd>
|
---|
484 | <dt><span class="returnLabel">Returns:</span></dt>
|
---|
485 | <dd>amount of seconds passed, or amount of rounds passed depending on
|
---|
486 | the timeline type.</dd>
|
---|
487 | </dl>
|
---|
488 | </li>
|
---|
489 | </ul>
|
---|
490 | </li>
|
---|
491 | </ul>
|
---|
492 | </li>
|
---|
493 | </ul>
|
---|
494 | </div>
|
---|
495 | </div>
|
---|
496 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
497 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
498 | <div class="bottomNav"><a name="navbar.bottom">
|
---|
499 | <!-- -->
|
---|
500 | </a>
|
---|
501 | <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
---|
502 | <a name="navbar.bottom.firstrow">
|
---|
503 | <!-- -->
|
---|
504 | </a>
|
---|
505 | <ul class="navList" title="Navigation">
|
---|
506 | <li><a href="../../../overview-summary.html">Overview</a></li>
|
---|
507 | <li><a href="package-summary.html">Package</a></li>
|
---|
508 | <li class="navBarCell1Rev">Class</li>
|
---|
509 | <li><a href="class-use/DiscreteTimeline.html">Use</a></li>
|
---|
510 | <li><a href="package-tree.html">Tree</a></li>
|
---|
511 | <li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
---|
512 | <li><a href="../../../index-all.html">Index</a></li>
|
---|
513 | <li><a href="../../../help-doc.html">Help</a></li>
|
---|
514 | </ul>
|
---|
515 | </div>
|
---|
516 | <div class="subNav">
|
---|
517 | <ul class="navList">
|
---|
518 | <li><a href="../../../genius/core/timeline/ContinuousTimeline.html" title="class in genius.core.timeline"><span class="typeNameLink">Prev Class</span></a></li>
|
---|
519 | <li><a href="../../../genius/core/timeline/Timeline.html" title="class in genius.core.timeline"><span class="typeNameLink">Next Class</span></a></li>
|
---|
520 | </ul>
|
---|
521 | <ul class="navList">
|
---|
522 | <li><a href="../../../index.html?genius/core/timeline/DiscreteTimeline.html" target="_top">Frames</a></li>
|
---|
523 | <li><a href="DiscreteTimeline.html" target="_top">No Frames</a></li>
|
---|
524 | </ul>
|
---|
525 | <ul class="navList" id="allclasses_navbar_bottom">
|
---|
526 | <li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
---|
527 | </ul>
|
---|
528 | <div>
|
---|
529 | <script type="text/javascript"><!--
|
---|
530 | allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
---|
531 | if(window==top) {
|
---|
532 | allClassesLink.style.display = "block";
|
---|
533 | }
|
---|
534 | else {
|
---|
535 | allClassesLink.style.display = "none";
|
---|
536 | }
|
---|
537 | //-->
|
---|
538 | </script>
|
---|
539 | </div>
|
---|
540 | <div>
|
---|
541 | <ul class="subNavList">
|
---|
542 | <li>Summary: </li>
|
---|
543 | <li><a href="#nested.classes.inherited.from.class.genius.core.timeline.Timeline">Nested</a> | </li>
|
---|
544 | <li><a href="#field.summary">Field</a> | </li>
|
---|
545 | <li><a href="#constructor.summary">Constr</a> | </li>
|
---|
546 | <li><a href="#method.summary">Method</a></li>
|
---|
547 | </ul>
|
---|
548 | <ul class="subNavList">
|
---|
549 | <li>Detail: </li>
|
---|
550 | <li><a href="#field.detail">Field</a> | </li>
|
---|
551 | <li><a href="#constructor.detail">Constr</a> | </li>
|
---|
552 | <li><a href="#method.detail">Method</a></li>
|
---|
553 | </ul>
|
---|
554 | </div>
|
---|
555 | <a name="skip.navbar.bottom">
|
---|
556 | <!-- -->
|
---|
557 | </a></div>
|
---|
558 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
559 | </body>
|
---|
560 | </html>
|
---|