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="Mapping";
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/Mapping.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 <A HREF="../../and/Mapping/LSM.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
58 <A HREF="../../and/Mapping/QM.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/Mapping.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Mapping.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.Mapping</B>
98 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
102 <DT><PRE>public class <B>Mapping</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
106 Class representing the tasks mapping on clusters and/or nodes
111 <DT><B>Author:</B></DT>
112 <DD>Sébastien Miquée</DD>
113 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Mapping">Serialized Form</A></DL>
118 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
120 <A NAME="constructor_summary"><!-- --></A>
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
124 <B>Constructor Summary</B></FONT></TH>
126 <TR BGCOLOR="white" CLASS="TableRowColor">
127 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#Mapping()">Mapping</A></B>()</CODE>
130 Default constructor</TD>
134 <!-- ========== METHOD SUMMARY =========== -->
136 <A NAME="method_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>Method Summary</B></FONT></TH>
142 <TR BGCOLOR="white" CLASS="TableRowColor">
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144 <CODE> void</CODE></FONT></TD>
145 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#addMapping(and.Mapping.Association)">addMapping</A></B>(<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A> _a)</CODE>
148 Add a mapping association in the general mapping.</TD>
150 <TR BGCOLOR="white" CLASS="TableRowColor">
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152 <CODE> void</CODE></FONT></TD>
153 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#addMapping(and.Mapping.Cluster, java.util.ArrayList)">addMapping</A></B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c,
154 java.util.ArrayList<<A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A>> at)</CODE>
157 Add in the mapping an association between a cluster and tasks set.</TD>
159 <TR BGCOLOR="white" CLASS="TableRowColor">
160 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161 <CODE> int</CODE></FONT></TD>
162 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#calcDepExt()">calcDepExt</A></B>()</CODE>
165 Return the amount of external tasks dependencies, in cluster point of view.</TD>
167 <TR BGCOLOR="white" CLASS="TableRowColor">
168 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>></CODE></FONT></TD>
170 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#getMappedGNodes()">getMappedGNodes</A></B>()</CODE>
173 Return the list of GNodes on which tasks are mapped, in order
174 of the task number.</TD>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A>></CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#getMapping()">getMapping</A></B>()</CODE>
182 Return the mapping done.</TD>
184 <TR BGCOLOR="white" CLASS="TableRowColor">
185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186 <CODE> void</CODE></FONT></TD>
187 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#initMapping()">initMapping</A></B>()</CODE>
190 Initialization of the Mapping variables</TD>
192 <TR BGCOLOR="white" CLASS="TableRowColor">
193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194 <CODE> void</CODE></FONT></TD>
195 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#insertMapping(and.Mapping.Association)">insertMapping</A></B>(<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A> _a)</CODE>
198 Insert the association at the right place.</TD>
200 <TR BGCOLOR="white" CLASS="TableRowColor">
201 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202 <CODE> void</CODE></FONT></TD>
203 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#print()">print</A></B>()</CODE>
206 Print the status of the mapping done, according to its type.</TD>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE> <A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A></CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#removeGNode(and.Mapping.GNode)">removeGNode</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _deadNode)</CODE>
214 Remove a failed node from the mapping.</TD>
217 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
218 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
219 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
220 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
222 <TR BGCOLOR="white" CLASS="TableRowColor">
223 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
229 <!-- ========= CONSTRUCTOR DETAIL ======== -->
231 <A NAME="constructor_detail"><!-- --></A>
232 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
233 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
234 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
235 <B>Constructor Detail</B></FONT></TH>
239 <A NAME="Mapping()"><!-- --></A><H3>
242 public <B>Mapping</B>()</PRE>
244 <DD>Default constructor
248 <!-- ============ METHOD DETAIL ========== -->
250 <A NAME="method_detail"><!-- --></A>
251 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
252 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
253 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
254 <B>Method Detail</B></FONT></TH>
258 <A NAME="initMapping()"><!-- --></A><H3>
261 public void <B>initMapping</B>()</PRE>
263 <DD>Initialization of the Mapping variables
274 <A NAME="addMapping(and.Mapping.Cluster, java.util.ArrayList)"><!-- --></A><H3>
277 public void <B>addMapping</B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c,
278 java.util.ArrayList<<A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A>> at)</PRE>
280 <DD>Add in the mapping an association between a cluster and tasks set.
286 <DT><B>Parameters:</B><DD><CODE>c</CODE> - Cluster of the association<DD><CODE>at</CODE> - Tasks set to be associated</DL>
291 <A NAME="addMapping(and.Mapping.Association)"><!-- --></A><H3>
294 public void <B>addMapping</B>(<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A> _a)</PRE>
296 <DD>Add a mapping association in the general mapping.
302 <DT><B>Parameters:</B><DD><CODE>_a</CODE> - Association between a task and a node</DL>
307 <A NAME="insertMapping(and.Mapping.Association)"><!-- --></A><H3>
310 public void <B>insertMapping</B>(<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A> _a)</PRE>
312 <DD>Insert the association at the right place.
318 <DT><B>Parameters:</B><DD><CODE>_a</CODE> - The association to be inserted</DL>
323 <A NAME="removeGNode(and.Mapping.GNode)"><!-- --></A><H3>
326 public <A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A> <B>removeGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _deadNode)</PRE>
328 <DD>Remove a failed node from the mapping.
334 <DT><B>Parameters:</B><DD><CODE>_deadNode</CODE> - The failed node
335 <DT><B>Returns:</B><DD>The task associated with the failed node</DL>
340 <A NAME="getMappedGNodes()"><!-- --></A><H3>
343 public java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> <B>getMappedGNodes</B>()</PRE>
345 <DD>Return the list of GNodes on which tasks are mapped, in order
353 <DT><B>Returns:</B><DD>The ordered list, according to the GTasks id, of GNodes involved in the mapping</DL>
358 <A NAME="print()"><!-- --></A><H3>
361 public void <B>print</B>()</PRE>
363 <DD>Print the status of the mapping done, according to its type.
374 <A NAME="getMapping()"><!-- --></A><H3>
377 public java.util.ArrayList<<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A>> <B>getMapping</B>()</PRE>
379 <DD>Return the mapping done.
386 <DT><B>Returns:</B><DD>The mapping</DL>
391 <A NAME="calcDepExt()"><!-- --></A><H3>
394 public int <B>calcDepExt</B>()</PRE>
396 <DD>Return the amount of external tasks dependencies, in cluster point of view.
403 <DT><B>Returns:</B><DD>The amount of external dependencies</DL>
406 <!-- ========= END OF CLASS DATA ========= -->
410 <!-- ======= START OF BOTTOM NAVBAR ====== -->
411 <A NAME="navbar_bottom"><!-- --></A>
412 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
413 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
415 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
416 <A NAME="navbar_bottom_firstrow"><!-- --></A>
417 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
418 <TR ALIGN="center" VALIGN="top">
419 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
420 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
421 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Mapping.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
422 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
423 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
424 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
425 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
429 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
435 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
436 <A HREF="../../and/Mapping/LSM.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
437 <A HREF="../../and/Mapping/QM.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
438 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
439 <A HREF="../../index.html?and/Mapping/Mapping.html" target="_top"><B>FRAMES</B></A>
440 <A HREF="Mapping.html" target="_top"><B>NO FRAMES</B></A>
441 <SCRIPT type="text/javascript">
444 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
449 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
456 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
457 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
458 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
459 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
462 <A NAME="skip-navbar_bottom"></A>
463 <!-- ======== END OF BOTTOM NAVBAR ======= -->