documentation files
[aco.git] / doc / javadoc / aco / ant / Ant.html
blob57b5112015a3242c1bdb630ffb11251953d4009d
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_18) on Mon Jul 05 12:01:07 CEST 2010 -->
6 <TITLE>
7 Ant
8 </TITLE>
10 <META NAME="date" CONTENT="2010-07-05">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="Ant";
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
25 </HEAD>
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Ant.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 </EM>
53 </TD>
54 </TR>
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;PREV CLASS&nbsp;
59 &nbsp;NEXT CLASS</FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../index.html?aco/ant/Ant.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="Ant.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 aco.ant</FONT>
92 <BR>
93 Class Ant</H2>
94 <PRE>
95 java.lang.Object
96 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>aco.ant.Ant</B>
97 </PRE>
98 <HR>
99 <DL>
100 <DT><PRE>public class <B>Ant</B><DT>extends java.lang.Object</DL>
101 </PRE>
104 <HR>
107 <!-- =========== FIELD SUMMARY =========== -->
109 <A NAME="field_summary"><!-- --></A>
110 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
113 <B>Field Summary</B></FONT></TH>
114 </TR>
115 <TR BGCOLOR="white" CLASS="TableRowColor">
116 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117 <CODE>&nbsp;int[]</CODE></FONT></TD>
118 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#Tour">Tour</A></B></CODE>
120 <BR>
121 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
122 </TR>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125 <CODE>&nbsp;int</CODE></FONT></TD>
126 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#TourLength">TourLength</A></B></CODE>
128 <BR>
129 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
130 </TR>
131 <TR BGCOLOR="white" CLASS="TableRowColor">
132 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133 <CODE>&nbsp;boolean[]</CODE></FONT></TD>
134 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#Visited">Visited</A></B></CODE>
136 <BR>
137 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
138 </TR>
139 </TABLE>
140 &nbsp;
141 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
143 <A NAME="constructor_summary"><!-- --></A>
144 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
146 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
147 <B>Constructor Summary</B></FONT></TH>
148 </TR>
149 <TR BGCOLOR="white" CLASS="TableRowColor">
150 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#Ant(aco.mediator.ACOMediator)">Ant</A></B>(<A HREF="../../aco/mediator/ACOMediator.html" title="class in aco.mediator">ACOMediator</A>&nbsp;acom)</CODE>
152 <BR>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154 </TR>
155 </TABLE>
156 &nbsp;
157 <!-- ========== METHOD SUMMARY =========== -->
159 <A NAME="method_summary"><!-- --></A>
160 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
162 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
163 <B>Method Summary</B></FONT></TH>
164 </TR>
165 <TR BGCOLOR="white" CLASS="TableRowColor">
166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167 <CODE>&nbsp;int</CODE></FONT></TD>
168 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#getTour(int)">getTour</A></B>(int&nbsp;i)</CODE>
170 <BR>
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
172 </TR>
173 <TR BGCOLOR="white" CLASS="TableRowColor">
174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175 <CODE>&nbsp;int</CODE></FONT></TD>
176 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#getTourLength()">getTourLength</A></B>()</CODE>
178 <BR>
179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
180 </TR>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183 <CODE>&nbsp;boolean</CODE></FONT></TD>
184 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#getVisited(int)">getVisited</A></B>(int&nbsp;i)</CODE>
186 <BR>
187 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
188 </TR>
189 <TR BGCOLOR="white" CLASS="TableRowColor">
190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191 <CODE>&nbsp;void</CODE></FONT></TD>
192 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#reset()">reset</A></B>()</CODE>
194 <BR>
195 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
196 </TR>
197 <TR BGCOLOR="white" CLASS="TableRowColor">
198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199 <CODE>&nbsp;void</CODE></FONT></TD>
200 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#setTour(int, int)">setTour</A></B>(int&nbsp;i,
201 int&nbsp;c)</CODE>
203 <BR>
204 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
205 </TR>
206 <TR BGCOLOR="white" CLASS="TableRowColor">
207 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208 <CODE>&nbsp;void</CODE></FONT></TD>
209 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#setTourLength(int)">setTourLength</A></B>(int&nbsp;i)</CODE>
211 <BR>
212 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
213 </TR>
214 <TR BGCOLOR="white" CLASS="TableRowColor">
215 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216 <CODE>&nbsp;void</CODE></FONT></TD>
217 <TD><CODE><B><A HREF="../../aco/ant/Ant.html#setVisited(int, boolean)">setVisited</A></B>(int&nbsp;i,
218 boolean&nbsp;b)</CODE>
220 <BR>
221 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
222 </TR>
223 </TABLE>
224 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
225 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
226 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
227 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
231 </TR>
232 </TABLE>
233 &nbsp;
236 <!-- ============ FIELD DETAIL =========== -->
238 <A NAME="field_detail"><!-- --></A>
239 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
240 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
241 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
242 <B>Field Detail</B></FONT></TH>
243 </TR>
244 </TABLE>
246 <A NAME="TourLength"><!-- --></A><H3>
247 TourLength</H3>
248 <PRE>
249 public int <B>TourLength</B></PRE>
250 <DL>
251 <DL>
252 </DL>
253 </DL>
254 <HR>
256 <A NAME="Tour"><!-- --></A><H3>
257 Tour</H3>
258 <PRE>
259 public int[] <B>Tour</B></PRE>
260 <DL>
261 <DL>
262 </DL>
263 </DL>
264 <HR>
266 <A NAME="Visited"><!-- --></A><H3>
267 Visited</H3>
268 <PRE>
269 public boolean[] <B>Visited</B></PRE>
270 <DL>
271 <DL>
272 </DL>
273 </DL>
275 <!-- ========= CONSTRUCTOR DETAIL ======== -->
277 <A NAME="constructor_detail"><!-- --></A>
278 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
279 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
280 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
281 <B>Constructor Detail</B></FONT></TH>
282 </TR>
283 </TABLE>
285 <A NAME="Ant(aco.mediator.ACOMediator)"><!-- --></A><H3>
286 Ant</H3>
287 <PRE>
288 public <B>Ant</B>(<A HREF="../../aco/mediator/ACOMediator.html" title="class in aco.mediator">ACOMediator</A>&nbsp;acom)</PRE>
289 <DL>
290 </DL>
292 <!-- ============ METHOD DETAIL ========== -->
294 <A NAME="method_detail"><!-- --></A>
295 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
296 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
297 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
298 <B>Method Detail</B></FONT></TH>
299 </TR>
300 </TABLE>
302 <A NAME="getTour(int)"><!-- --></A><H3>
303 getTour</H3>
304 <PRE>
305 public int <B>getTour</B>(int&nbsp;i)</PRE>
306 <DL>
307 <DD><DL>
308 </DL>
309 </DD>
310 </DL>
311 <HR>
313 <A NAME="setTour(int, int)"><!-- --></A><H3>
314 setTour</H3>
315 <PRE>
316 public void <B>setTour</B>(int&nbsp;i,
317 int&nbsp;c)</PRE>
318 <DL>
319 <DD><DL>
320 </DL>
321 </DD>
322 </DL>
323 <HR>
325 <A NAME="getVisited(int)"><!-- --></A><H3>
326 getVisited</H3>
327 <PRE>
328 public boolean <B>getVisited</B>(int&nbsp;i)</PRE>
329 <DL>
330 <DD><DL>
331 </DL>
332 </DD>
333 </DL>
334 <HR>
336 <A NAME="setVisited(int, boolean)"><!-- --></A><H3>
337 setVisited</H3>
338 <PRE>
339 public void <B>setVisited</B>(int&nbsp;i,
340 boolean&nbsp;b)</PRE>
341 <DL>
342 <DD><DL>
343 </DL>
344 </DD>
345 </DL>
346 <HR>
348 <A NAME="getTourLength()"><!-- --></A><H3>
349 getTourLength</H3>
350 <PRE>
351 public int <B>getTourLength</B>()</PRE>
352 <DL>
353 <DD><DL>
354 </DL>
355 </DD>
356 </DL>
357 <HR>
359 <A NAME="setTourLength(int)"><!-- --></A><H3>
360 setTourLength</H3>
361 <PRE>
362 public void <B>setTourLength</B>(int&nbsp;i)</PRE>
363 <DL>
364 <DD><DL>
365 </DL>
366 </DD>
367 </DL>
368 <HR>
370 <A NAME="reset()"><!-- --></A><H3>
371 reset</H3>
372 <PRE>
373 public void <B>reset</B>()</PRE>
374 <DL>
375 <DD><DL>
376 </DL>
377 </DD>
378 </DL>
379 <!-- ========= END OF CLASS DATA ========= -->
380 <HR>
383 <!-- ======= START OF BOTTOM NAVBAR ====== -->
384 <A NAME="navbar_bottom"><!-- --></A>
385 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
386 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
387 <TR>
388 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
389 <A NAME="navbar_bottom_firstrow"><!-- --></A>
390 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
391 <TR ALIGN="center" VALIGN="top">
392 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
393 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
394 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
395 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Ant.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
396 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
397 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
398 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
399 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
400 </TR>
401 </TABLE>
402 </TD>
403 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
404 </EM>
405 </TD>
406 </TR>
408 <TR>
409 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
410 &nbsp;PREV CLASS&nbsp;
411 &nbsp;NEXT CLASS</FONT></TD>
412 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
413 <A HREF="../../index.html?aco/ant/Ant.html" target="_top"><B>FRAMES</B></A> &nbsp;
414 &nbsp;<A HREF="Ant.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
415 &nbsp;<SCRIPT type="text/javascript">
416 <!--
417 if(window==top) {
418 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
420 //-->
421 </SCRIPT>
422 <NOSCRIPT>
423 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
424 </NOSCRIPT>
427 </FONT></TD>
428 </TR>
429 <TR>
430 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
431 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
432 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
433 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
434 </TR>
435 </TABLE>
436 <A NAME="skip-navbar_bottom"></A>
437 <!-- ======== END OF BOTTOM NAVBAR ======= -->
439 <HR>
441 </BODY>
442 </HTML>