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_0) on Tue Feb 02 14:44:19 CET 2010 -->
10 <META NAME="date" CONTENT="2010-02-02">
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="Algo";
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="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
41 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Algo.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 PREV CLASS
58 <A HREF="../../and/Mapping/Architecture.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60 <A HREF="../../index.html?and/Mapping/Algo.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Algo.html" target="_top"><B>NO FRAMES</B></A>
62 <SCRIPT type="text/javascript">
65 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
70 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
83 <A NAME="skip-navbar_top"></A>
84 <!-- ========= END OF TOP NAVBAR ========= -->
87 <!-- ======== START OF CLASS DATA ======== -->
95 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>and.Mapping.Algo</B>
98 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
101 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../and/Mapping/DefaultMapping.html" title="class in and.Mapping">DefaultMapping</A>, <A HREF="../../and/Mapping/LSM.html" title="class in and.Mapping">LSM</A>, <A HREF="../../and/Mapping/QM.html" title="class in and.Mapping">QM</A>, <A HREF="../../and/Mapping/Simple.html" title="class in and.Mapping">Simple</A></DD>
105 <DT><PRE>public abstract class <B>Algo</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
109 Abstract class defining the structure for mapping algorithms
114 <DT><B>Author:</B></DT>
115 <DD>Sébastien Miquée</DD>
116 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Algo">Serialized Form</A></DL>
121 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
123 <A NAME="constructor_summary"><!-- --></A>
124 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
125 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
126 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
127 <B>Constructor Summary</B></FONT></TH>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD><CODE><B><A HREF="../../and/Mapping/Algo.html#Algo()">Algo</A></B>()</CODE>
133 Default constructor.</TD>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD><CODE><B><A HREF="../../and/Mapping/Algo.html#Algo(and.Mapping.Graph, and.Mapping.Grid)">Algo</A></B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
137 <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gl)</CODE>
140 Constructor.</TD>
144 <!-- ========== METHOD SUMMARY =========== -->
146 <A NAME="method_summary"><!-- --></A>
147 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
148 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
149 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
150 <B>Method Summary</B></FONT></TH>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE> <A HREF="../../and/Mapping/Mapping.html" title="class in and.Mapping">Mapping</A></CODE></FONT></TD>
155 <TD><CODE><B><A HREF="../../and/Mapping/Algo.html#getMapping()">getMapping</A></B>()</CODE>
158 Return mapping done.</TD>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE>abstract <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../and/Mapping/Algo.html#getOtherGNode()">getOtherGNode</A></B>()</CODE>
166 Find a new node, which may not takes part into the computation process.</TD>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>abstract void</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../and/Mapping/Algo.html#map()">map</A></B>()</CODE>
174 Mapping function.</TD>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE>abstract <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../and/Mapping/Algo.html#replaceNode(and.Mapping.GNode, java.util.ArrayList)">replaceNode</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead,
180 java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _ag)</CODE>
183 Replace a fallen node by a new one, according to the mapping policy.</TD>
186 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
187 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
188 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
189 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
191 <TR BGCOLOR="white" CLASS="TableRowColor">
192 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
198 <!-- ========= CONSTRUCTOR DETAIL ======== -->
200 <A NAME="constructor_detail"><!-- --></A>
201 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
204 <B>Constructor Detail</B></FONT></TH>
208 <A NAME="Algo()"><!-- --></A><H3>
211 public <B>Algo</B>()</PRE>
213 <DD>Default constructor.
218 <A NAME="Algo(and.Mapping.Graph, and.Mapping.Grid)"><!-- --></A><H3>
221 public <B>Algo</B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
222 <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gl)</PRE>
227 <DT><B>Parameters:</B><DD><CODE>_gr</CODE> - Tasks graph to be mapped<DD><CODE>_gl</CODE> - Grid graph</DL>
230 <!-- ============ METHOD DETAIL ========== -->
232 <A NAME="method_detail"><!-- --></A>
233 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
235 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
236 <B>Method Detail</B></FONT></TH>
240 <A NAME="map()"><!-- --></A><H3>
243 public abstract void <B>map</B>()</PRE>
245 <DD>Mapping function.
256 <A NAME="replaceNode(and.Mapping.GNode, java.util.ArrayList)"><!-- --></A><H3>
259 public abstract <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>replaceNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead,
260 java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _ag)</PRE>
262 <DD>Replace a fallen node by a new one, according to the mapping policy.
268 <DT><B>Parameters:</B><DD><CODE>_dead</CODE> - The fallen node to be replaced<DD><CODE>_ag</CODE> - The list of all available computing nodes
269 <DT><B>Returns:</B><DD>The new node</DL>
274 <A NAME="getOtherGNode()"><!-- --></A><H3>
277 public abstract <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>getOtherGNode</B>()</PRE>
279 <DD>Find a new node, which may not takes part into the computation process.
280 Typically such kind of node is used to create a new spawner or a new super-node,
281 in order to bring fault tolerance.
288 <DT><B>Returns:</B><DD>Another node which will not compute</DL>
293 <A NAME="getMapping()"><!-- --></A><H3>
296 public <A HREF="../../and/Mapping/Mapping.html" title="class in and.Mapping">Mapping</A> <B>getMapping</B>()</PRE>
298 <DD>Return mapping done.
305 <DT><B>Returns:</B><DD>The mapping done</DL>
308 <!-- ========= END OF CLASS DATA ========= -->
312 <!-- ======= START OF BOTTOM NAVBAR ====== -->
313 <A NAME="navbar_bottom"><!-- --></A>
314 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
315 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
317 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
318 <A NAME="navbar_bottom_firstrow"><!-- --></A>
319 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
320 <TR ALIGN="center" VALIGN="top">
321 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
322 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
323 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Algo.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
324 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
325 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
326 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
327 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
331 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
337 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
338 PREV CLASS
339 <A HREF="../../and/Mapping/Architecture.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
340 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
341 <A HREF="../../index.html?and/Mapping/Algo.html" target="_top"><B>FRAMES</B></A>
342 <A HREF="Algo.html" target="_top"><B>NO FRAMES</B></A>
343 <SCRIPT type="text/javascript">
346 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
351 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
358 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
359 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
360 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
361 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
364 <A NAME="skip-navbar_bottom"></A>
365 <!-- ======== END OF BOTTOM NAVBAR ======= -->