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 Sun Feb 07 23:55:35 CET 2010 -->
10 <META NAME="date" CONTENT="2010-02-07">
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="Simple";
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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../and/Mapping/QM.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
57 <A HREF="../../and/Mapping/Utils.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../index.html?and/Mapping/Simple.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="Simple.html" target="_top"><B>NO FRAMES</B></A>
61 <SCRIPT type="text/javascript">
64 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_and.Mapping.Algo">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
94 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">and.Mapping.Algo</A>
95 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>and.Mapping.Simple</B>
98 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
102 <DT><PRE>public class <B>Simple</B><DT>extends <A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">Algo</A></DL>
106 Implementation of Simple Mapping algorithm
111 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Simple">Serialized Form</A></DL>
115 <!-- =========== FIELD SUMMARY =========== -->
117 <A NAME="field_summary"><!-- --></A>
118 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121 <B>Field Summary</B></FONT></TH>
124 <A NAME="fields_inherited_from_class_and.Mapping.Algo"><!-- --></A>
125 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
127 <TH ALIGN="left"><B>Fields inherited from class and.Mapping.<A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">Algo</A></B></TH>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD><CODE><A HREF="../../and/Mapping/Algo.html#gl">gl</A>, <A HREF="../../and/Mapping/Algo.html#gr">gr</A>, <A HREF="../../and/Mapping/Algo.html#mp">mp</A></CODE></TD>
134 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
136 <A NAME="constructor_summary"><!-- --></A>
137 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
138 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
139 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
140 <B>Constructor Summary</B></FONT></TH>
142 <TR BGCOLOR="white" CLASS="TableRowColor">
143 <TD><CODE><B><A HREF="../../and/Mapping/Simple.html#Simple()">Simple</A></B>()</CODE>
146 Default constructor.</TD>
148 <TR BGCOLOR="white" CLASS="TableRowColor">
149 <TD><CODE><B><A HREF="../../and/Mapping/Simple.html#Simple(and.Mapping.Graph, and.Mapping.Grid)">Simple</A></B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
150 <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gd)</CODE>
153 Constructor.</TD>
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>
165 <TR BGCOLOR="white" CLASS="TableRowColor">
166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167 <CODE> <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
168 <TD><CODE><B><A HREF="../../and/Mapping/Simple.html#getOtherGNode()">getOtherGNode</A></B>()</CODE>
171 Find a new node, which may not takes part into the computation process.</TD>
173 <TR BGCOLOR="white" CLASS="TableRowColor">
174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175 <CODE> void</CODE></FONT></TD>
176 <TD><CODE><B><A HREF="../../and/Mapping/Simple.html#map()">map</A></B>()</CODE>
179 Mapping function.</TD>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183 <CODE> <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
184 <TD><CODE><B><A HREF="../../and/Mapping/Simple.html#replaceNode(and.Mapping.GNode, java.util.ArrayList)">replaceNode</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> replaced,
185 java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _ag)</CODE>
188 Replace a fallen node by a new one, according to the mapping policy.</TD>
191 <A NAME="methods_inherited_from_class_and.Mapping.Algo"><!-- --></A>
192 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
193 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
194 <TH ALIGN="left"><B>Methods inherited from class and.Mapping.<A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">Algo</A></B></TH>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD><CODE><A HREF="../../and/Mapping/Algo.html#getMapping()">getMapping</A></CODE></TD>
200 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
201 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
203 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
212 <!-- ========= CONSTRUCTOR DETAIL ======== -->
214 <A NAME="constructor_detail"><!-- --></A>
215 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
216 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
217 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
218 <B>Constructor Detail</B></FONT></TH>
222 <A NAME="Simple()"><!-- --></A><H3>
225 public <B>Simple</B>()</PRE>
227 <DD>Default constructor.
232 <A NAME="Simple(and.Mapping.Graph, and.Mapping.Grid)"><!-- --></A><H3>
235 public <B>Simple</B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
236 <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gd)</PRE>
241 <DT><B>Parameters:</B><DD><CODE>_gr</CODE> - Application graph to be mapped on<DD><CODE>_gd</CODE> - Grid graph</DL>
244 <!-- ============ METHOD DETAIL ========== -->
246 <A NAME="method_detail"><!-- --></A>
247 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
249 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
250 <B>Method Detail</B></FONT></TH>
254 <A NAME="map()"><!-- --></A><H3>
257 public void <B>map</B>()</PRE>
259 <DD><B>Description copied from class: <CODE><A HREF="../../and/Mapping/Algo.html#map()">Algo</A></CODE></B></DD>
260 <DD>Mapping function.
263 <DT><B>Specified by:</B><DD><CODE><A HREF="../../and/Mapping/Algo.html#map()">map</A></CODE> in class <CODE><A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">Algo</A></CODE></DL>
271 <A NAME="replaceNode(and.Mapping.GNode, java.util.ArrayList)"><!-- --></A><H3>
274 public <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> replaced,
275 java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _ag)</PRE>
277 <DD><B>Description copied from class: <CODE><A HREF="../../and/Mapping/Algo.html#replaceNode(and.Mapping.GNode, java.util.ArrayList)">Algo</A></CODE></B></DD>
278 <DD>Replace a fallen node by a new one, according to the mapping policy.
281 <DT><B>Specified by:</B><DD><CODE><A HREF="../../and/Mapping/Algo.html#replaceNode(and.Mapping.GNode, java.util.ArrayList)">replaceNode</A></CODE> in class <CODE><A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">Algo</A></CODE></DL>
284 <DT><B>Parameters:</B><DD><CODE>replaced</CODE> - The fallen node to be replaced<DD><CODE>_ag</CODE> - The list of all available computing nodes
285 <DT><B>Returns:</B><DD>The new node</DL>
290 <A NAME="getOtherGNode()"><!-- --></A><H3>
293 public <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>getOtherGNode</B>()</PRE>
295 <DD><B>Description copied from class: <CODE><A HREF="../../and/Mapping/Algo.html#getOtherGNode()">Algo</A></CODE></B></DD>
296 <DD>Find a new node, which may not takes part into the computation process.
297 Typically such kind of node is used to create a new spawner or a new super-node,
298 in order to bring fault tolerance.
301 <DT><B>Specified by:</B><DD><CODE><A HREF="../../and/Mapping/Algo.html#getOtherGNode()">getOtherGNode</A></CODE> in class <CODE><A HREF="../../and/Mapping/Algo.html" title="class in and.Mapping">Algo</A></CODE></DL>
305 <DT><B>Returns:</B><DD>Another node which will not compute</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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
324 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
325 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
326 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
330 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
336 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
337 <A HREF="../../and/Mapping/QM.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
338 <A HREF="../../and/Mapping/Utils.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
339 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
340 <A HREF="../../index.html?and/Mapping/Simple.html" target="_top"><B>FRAMES</B></A>
341 <A HREF="Simple.html" target="_top"><B>NO FRAMES</B></A>
342 <SCRIPT type="text/javascript">
345 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
350 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
357 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
358 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_and.Mapping.Algo">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
359 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
360 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
363 <A NAME="skip-navbar_bottom"></A>
364 <!-- ======== END OF BOTTOM NAVBAR ======= -->