documentation files
[aco.git] / doc / javadoc / aco / strategy / DistanceStrategy.html
blob6b4af49744008a1e1990867c7adc112fadfeb3e5
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:10 CEST 2010 -->
6 <TITLE>
7 DistanceStrategy
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="DistanceStrategy";
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/DistanceStrategy.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;<A HREF="../../aco/strategy/ChoiceInformationStrategy.html" title="class in aco.strategy"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../aco/strategy/GraphStrategy.html" title="class in aco.strategy"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../index.html?aco/strategy/DistanceStrategy.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="DistanceStrategy.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;FIELD&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;FIELD&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.strategy</FONT>
92 <BR>
93 Class DistanceStrategy</H2>
94 <PRE>
95 java.lang.Object
96 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>aco.strategy.DistanceStrategy</B>
97 </PRE>
98 <DL>
99 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../aco/strategy/distance/ATT_DistanceStrategy.html" title="class in aco.strategy.distance">ATT_DistanceStrategy</A>, <A HREF="../../aco/strategy/distance/EUC_2D_DistanceStrategy.html" title="class in aco.strategy.distance">EUC_2D_DistanceStrategy</A></DD>
100 </DL>
101 <HR>
102 <DL>
103 <DT><PRE>public abstract class <B>DistanceStrategy</B><DT>extends java.lang.Object</DL>
104 </PRE>
107 <HR>
111 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
113 <A NAME="constructor_summary"><!-- --></A>
114 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117 <B>Constructor Summary</B></FONT></TH>
118 </TR>
119 <TR BGCOLOR="white" CLASS="TableRowColor">
120 <TD><CODE><B><A HREF="../../aco/strategy/DistanceStrategy.html#DistanceStrategy(aco.mediator.ACOMediator)">DistanceStrategy</A></B>(<A HREF="../../aco/mediator/ACOMediator.html" title="class in aco.mediator">ACOMediator</A>&nbsp;acom)</CODE>
122 <BR>
123 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
124 </TR>
125 </TABLE>
126 &nbsp;
127 <!-- ========== METHOD SUMMARY =========== -->
129 <A NAME="method_summary"><!-- --></A>
130 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
133 <B>Method Summary</B></FONT></TH>
134 </TR>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE>abstract &nbsp;int</CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../aco/strategy/DistanceStrategy.html#computeDistance(aco.misc.CoordinatePair, aco.misc.CoordinatePair)">computeDistance</A></B>(<A HREF="../../aco/misc/CoordinatePair.html" title="class in aco.misc">CoordinatePair</A>&lt;java.lang.Integer,java.lang.Integer&gt;&nbsp;CityOne,
139 <A HREF="../../aco/misc/CoordinatePair.html" title="class in aco.misc">CoordinatePair</A>&lt;java.lang.Integer,java.lang.Integer&gt;&nbsp;CityTwo)</CODE>
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
143 </TR>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE>&nbsp;int[][]</CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../../aco/strategy/DistanceStrategy.html#computeDistances()">computeDistances</A></B>()</CODE>
149 <BR>
150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
151 </TR>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE>static&nbsp;<A HREF="../../aco/strategy/DistanceStrategy.html" title="class in aco.strategy">DistanceStrategy</A></CODE></FONT></TD>
155 <TD><CODE><B><A HREF="../../aco/strategy/DistanceStrategy.html#getStrategyFromTSPLibReader(aco.tsplibreader.TSPLibReader, aco.mediator.ACOMediator)">getStrategyFromTSPLibReader</A></B>(<A HREF="../../aco/tsplibreader/TSPLibReader.html" title="class in aco.tsplibreader">TSPLibReader</A>&nbsp;tsplr,
156 <A HREF="../../aco/mediator/ACOMediator.html" title="class in aco.mediator">ACOMediator</A>&nbsp;acom)</CODE>
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
160 </TR>
161 </TABLE>
162 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
163 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
165 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
166 </TR>
167 <TR BGCOLOR="white" CLASS="TableRowColor">
168 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
169 </TR>
170 </TABLE>
171 &nbsp;
174 <!-- ========= CONSTRUCTOR DETAIL ======== -->
176 <A NAME="constructor_detail"><!-- --></A>
177 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
178 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
179 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
180 <B>Constructor Detail</B></FONT></TH>
181 </TR>
182 </TABLE>
184 <A NAME="DistanceStrategy(aco.mediator.ACOMediator)"><!-- --></A><H3>
185 DistanceStrategy</H3>
186 <PRE>
187 public <B>DistanceStrategy</B>(<A HREF="../../aco/mediator/ACOMediator.html" title="class in aco.mediator">ACOMediator</A>&nbsp;acom)</PRE>
188 <DL>
189 </DL>
191 <!-- ============ METHOD DETAIL ========== -->
193 <A NAME="method_detail"><!-- --></A>
194 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
195 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
196 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
197 <B>Method Detail</B></FONT></TH>
198 </TR>
199 </TABLE>
201 <A NAME="computeDistances()"><!-- --></A><H3>
202 computeDistances</H3>
203 <PRE>
204 public int[][] <B>computeDistances</B>()</PRE>
205 <DL>
206 <DD><DL>
207 </DL>
208 </DD>
209 </DL>
210 <HR>
212 <A NAME="computeDistance(aco.misc.CoordinatePair, aco.misc.CoordinatePair)"><!-- --></A><H3>
213 computeDistance</H3>
214 <PRE>
215 public abstract int <B>computeDistance</B>(<A HREF="../../aco/misc/CoordinatePair.html" title="class in aco.misc">CoordinatePair</A>&lt;java.lang.Integer,java.lang.Integer&gt;&nbsp;CityOne,
216 <A HREF="../../aco/misc/CoordinatePair.html" title="class in aco.misc">CoordinatePair</A>&lt;java.lang.Integer,java.lang.Integer&gt;&nbsp;CityTwo)</PRE>
217 <DL>
218 <DD><DL>
219 </DL>
220 </DD>
221 </DL>
222 <HR>
224 <A NAME="getStrategyFromTSPLibReader(aco.tsplibreader.TSPLibReader, aco.mediator.ACOMediator)"><!-- --></A><H3>
225 getStrategyFromTSPLibReader</H3>
226 <PRE>
227 public static <A HREF="../../aco/strategy/DistanceStrategy.html" title="class in aco.strategy">DistanceStrategy</A> <B>getStrategyFromTSPLibReader</B>(<A HREF="../../aco/tsplibreader/TSPLibReader.html" title="class in aco.tsplibreader">TSPLibReader</A>&nbsp;tsplr,
228 <A HREF="../../aco/mediator/ACOMediator.html" title="class in aco.mediator">ACOMediator</A>&nbsp;acom)</PRE>
229 <DL>
230 <DD><DL>
231 </DL>
232 </DD>
233 </DL>
234 <!-- ========= END OF CLASS DATA ========= -->
235 <HR>
238 <!-- ======= START OF BOTTOM NAVBAR ====== -->
239 <A NAME="navbar_bottom"><!-- --></A>
240 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
241 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
242 <TR>
243 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
244 <A NAME="navbar_bottom_firstrow"><!-- --></A>
245 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
246 <TR ALIGN="center" VALIGN="top">
247 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
248 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
249 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
250 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DistanceStrategy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
251 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
252 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
253 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
254 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
255 </TR>
256 </TABLE>
257 </TD>
258 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
259 </EM>
260 </TD>
261 </TR>
263 <TR>
264 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
265 &nbsp;<A HREF="../../aco/strategy/ChoiceInformationStrategy.html" title="class in aco.strategy"><B>PREV CLASS</B></A>&nbsp;
266 &nbsp;<A HREF="../../aco/strategy/GraphStrategy.html" title="class in aco.strategy"><B>NEXT CLASS</B></A></FONT></TD>
267 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
268 <A HREF="../../index.html?aco/strategy/DistanceStrategy.html" target="_top"><B>FRAMES</B></A> &nbsp;
269 &nbsp;<A HREF="DistanceStrategy.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
270 &nbsp;<SCRIPT type="text/javascript">
271 <!--
272 if(window==top) {
273 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
275 //-->
276 </SCRIPT>
277 <NOSCRIPT>
278 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
279 </NOSCRIPT>
282 </FONT></TD>
283 </TR>
284 <TR>
285 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
286 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
287 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
288 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
289 </TR>
290 </TABLE>
291 <A NAME="skip-navbar_bottom"></A>
292 <!-- ======== END OF BOTTOM NAVBAR ======= -->
294 <HR>
296 </BODY>
297 </HTML>