1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_18) on Mon Jul 05 12:01:10 CEST 2010 -->
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";
27 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
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=
"">
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> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/DistanceStrategy.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
46 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-files/index-1.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
47 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
51 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
57 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
58 <A HREF=
"../../aco/strategy/ChoiceInformationStrategy.html" title=
"class in aco.strategy"><B>PREV CLASS
</B></A>
59 <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>
62 <A HREF=
"DistanceStrategy.html" target=
"_top"><B>NO FRAMES
</B></A>
63 <SCRIPT type=
"text/javascript">
66 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
71 <A HREF=
"../../allclasses-noframe.html"><B>All Classes
</B></A>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
80 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
81 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
84 <A NAME=
"skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
88 <!-- ======== START OF CLASS DATA ======== -->
93 Class DistanceStrategy
</H2>
96 <IMG SRC=
"../../resources/inherit.gif" ALT=
"extended by "><B>aco.strategy.DistanceStrategy
</B>
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>
103 <DT><PRE>public abstract class
<B>DistanceStrategy
</B><DT>extends java.lang.Object
</DL>
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>
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> acom)
</CODE>
123 </TD>
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>
135 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
136 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
137 <CODE>abstract
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><java.lang.Integer,java.lang.Integer
> CityOne,
139 <A HREF=
"../../aco/misc/CoordinatePair.html" title=
"class in aco.misc">CoordinatePair
</A><java.lang.Integer,java.lang.Integer
> CityTwo)
</CODE>
142 </TD>
144 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
145 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
146 <CODE> int[][]
</CODE></FONT></TD>
147 <TD><CODE><B><A HREF=
"../../aco/strategy/DistanceStrategy.html#computeDistances()">computeDistances
</A></B>()
</CODE>
150 </TD>
152 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
153 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
154 <CODE>static
<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> tsplr,
156 <A HREF=
"../../aco/mediator/ACOMediator.html" title=
"class in aco.mediator">ACOMediator
</A> acom)
</CODE>
159 </TD>
162 <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>
167 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
168 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
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>
184 <A NAME=
"DistanceStrategy(aco.mediator.ACOMediator)"><!-- --></A><H3>
185 DistanceStrategy
</H3>
187 public
<B>DistanceStrategy
</B>(
<A HREF=
"../../aco/mediator/ACOMediator.html" title=
"class in aco.mediator">ACOMediator
</A> acom)
</PRE>
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>
201 <A NAME=
"computeDistances()"><!-- --></A><H3>
202 computeDistances
</H3>
204 public int[][]
<B>computeDistances
</B>()
</PRE>
212 <A NAME=
"computeDistance(aco.misc.CoordinatePair, aco.misc.CoordinatePair)"><!-- --></A><H3>
215 public abstract int
<B>computeDistance
</B>(
<A HREF=
"../../aco/misc/CoordinatePair.html" title=
"class in aco.misc">CoordinatePair
</A><java.lang.Integer,java.lang.Integer
> CityOne,
216 <A HREF=
"../../aco/misc/CoordinatePair.html" title=
"class in aco.misc">CoordinatePair
</A><java.lang.Integer,java.lang.Integer
> CityTwo)
</PRE>
224 <A NAME=
"getStrategyFromTSPLibReader(aco.tsplibreader.TSPLibReader, aco.mediator.ACOMediator)"><!-- --></A><H3>
225 getStrategyFromTSPLibReader
</H3>
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> tsplr,
228 <A HREF=
"../../aco/mediator/ACOMediator.html" title=
"class in aco.mediator">ACOMediator
</A> acom)
</PRE>
234 <!-- ========= END OF CLASS DATA ========= -->
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=
"">
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> </TD>
248 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
249 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
250 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/DistanceStrategy.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
251 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
252 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
253 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../index-files/index-1.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
254 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
258 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
264 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
265 <A HREF=
"../../aco/strategy/ChoiceInformationStrategy.html" title=
"class in aco.strategy"><B>PREV CLASS
</B></A>
266 <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>
269 <A HREF=
"DistanceStrategy.html" target=
"_top"><B>NO FRAMES
</B></A>
270 <SCRIPT type=
"text/javascript">
273 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
278 <A HREF=
"../../allclasses-noframe.html"><B>All Classes
</B></A>
285 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
286 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
287 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
288 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
291 <A NAME=
"skip-navbar_bottom"></A>
292 <!-- ======== END OF BOTTOM NAVBAR ======= -->