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="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="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/LSM.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
57 <A HREF="../../and/Mapping/QM.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/Mapping.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="Mapping.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 | FIELD | <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 "><B>and.Mapping.Mapping</B>
97 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
101 <DT><PRE>public class <B>Mapping</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
105 Class representing the tasks mapping on clusters and/or nodes
110 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Mapping">Serialized Form</A></DL>
115 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
117 <A NAME="constructor_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>Constructor Summary</B></FONT></TH>
123 <TR BGCOLOR="white" CLASS="TableRowColor">
124 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#Mapping()">Mapping</A></B>()</CODE>
127 Default constructor</TD>
131 <!-- ========== METHOD SUMMARY =========== -->
133 <A NAME="method_summary"><!-- --></A>
134 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137 <B>Method Summary</B></FONT></TH>
139 <TR BGCOLOR="white" CLASS="TableRowColor">
140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141 <CODE> void</CODE></FONT></TD>
142 <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>
145 Add a mapping association in the general mapping.</TD>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE> void</CODE></FONT></TD>
150 <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,
151 java.util.ArrayList<<A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A>> at)</CODE>
154 Add in the mapping an association between a cluster and tasks set.</TD>
156 <TR BGCOLOR="white" CLASS="TableRowColor">
157 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
158 <CODE> int</CODE></FONT></TD>
159 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#calcDepExt()">calcDepExt</A></B>()</CODE>
162 Return the amount of external tasks dependencies, in cluster point of view.</TD>
164 <TR BGCOLOR="white" CLASS="TableRowColor">
165 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>></CODE></FONT></TD>
167 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#getMappedGNodes()">getMappedGNodes</A></B>()</CODE>
170 Return the list of GNodes on which tasks are mapped, in order
171 of the task number.</TD>
173 <TR BGCOLOR="white" CLASS="TableRowColor">
174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A>></CODE></FONT></TD>
176 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#getMapping()">getMapping</A></B>()</CODE>
179 Return the mapping done.</TD>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183 <CODE> void</CODE></FONT></TD>
184 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#initMapping()">initMapping</A></B>()</CODE>
187 Initialization of the Mapping variables</TD>
189 <TR BGCOLOR="white" CLASS="TableRowColor">
190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191 <CODE> void</CODE></FONT></TD>
192 <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>
195 Insert the association at the right place.</TD>
197 <TR BGCOLOR="white" CLASS="TableRowColor">
198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199 <CODE> void</CODE></FONT></TD>
200 <TD><CODE><B><A HREF="../../and/Mapping/Mapping.html#print()">print</A></B>()</CODE>
203 Print the status of the mapping done, according to its type.</TD>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207 <CODE> <A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A></CODE></FONT></TD>
208 <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>
211 Remove a failed node from the mapping.</TD>
214 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
215 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
216 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
217 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
226 <!-- ========= CONSTRUCTOR DETAIL ======== -->
228 <A NAME="constructor_detail"><!-- --></A>
229 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
230 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
231 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
232 <B>Constructor Detail</B></FONT></TH>
236 <A NAME="Mapping()"><!-- --></A><H3>
239 public <B>Mapping</B>()</PRE>
241 <DD>Default constructor
245 <!-- ============ METHOD DETAIL ========== -->
247 <A NAME="method_detail"><!-- --></A>
248 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
250 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
251 <B>Method Detail</B></FONT></TH>
255 <A NAME="initMapping()"><!-- --></A><H3>
258 public void <B>initMapping</B>()</PRE>
260 <DD>Initialization of the Mapping variables
271 <A NAME="addMapping(and.Mapping.Cluster, java.util.ArrayList)"><!-- --></A><H3>
274 public void <B>addMapping</B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c,
275 java.util.ArrayList<<A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping">GTask</A>> at)</PRE>
277 <DD>Add in the mapping an association between a cluster and tasks set.
283 <DT><B>Parameters:</B><DD><CODE>c</CODE> - Cluster of the association<DD><CODE>at</CODE> - Tasks set to be associated</DL>
288 <A NAME="addMapping(and.Mapping.Association)"><!-- --></A><H3>
291 public void <B>addMapping</B>(<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A> _a)</PRE>
293 <DD>Add a mapping association in the general mapping.
299 <DT><B>Parameters:</B><DD><CODE>_a</CODE> - Association between a task and a node</DL>
304 <A NAME="insertMapping(and.Mapping.Association)"><!-- --></A><H3>
307 public void <B>insertMapping</B>(<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A> _a)</PRE>
309 <DD>Insert the association at the right place.
315 <DT><B>Parameters:</B><DD><CODE>_a</CODE> - The association to be inserted</DL>
320 <A NAME="removeGNode(and.Mapping.GNode)"><!-- --></A><H3>
323 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>
325 <DD>Remove a failed node from the mapping.
331 <DT><B>Parameters:</B><DD><CODE>_deadNode</CODE> - The failed node
332 <DT><B>Returns:</B><DD>The task associated with the failed node</DL>
337 <A NAME="getMappedGNodes()"><!-- --></A><H3>
340 public java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> <B>getMappedGNodes</B>()</PRE>
342 <DD>Return the list of GNodes on which tasks are mapped, in order
350 <DT><B>Returns:</B><DD>The ordered list, according to the GTasks id, of GNodes involved in the mapping</DL>
355 <A NAME="print()"><!-- --></A><H3>
358 public void <B>print</B>()</PRE>
360 <DD>Print the status of the mapping done, according to its type.
371 <A NAME="getMapping()"><!-- --></A><H3>
374 public java.util.ArrayList<<A HREF="../../and/Mapping/Association.html" title="class in and.Mapping">Association</A>> <B>getMapping</B>()</PRE>
376 <DD>Return the mapping done.
383 <DT><B>Returns:</B><DD>The mapping</DL>
388 <A NAME="calcDepExt()"><!-- --></A><H3>
391 public int <B>calcDepExt</B>()</PRE>
393 <DD>Return the amount of external tasks dependencies, in cluster point of view.
400 <DT><B>Returns:</B><DD>The amount of external dependencies</DL>
403 <!-- ========= END OF CLASS DATA ========= -->
407 <!-- ======= START OF BOTTOM NAVBAR ====== -->
408 <A NAME="navbar_bottom"><!-- --></A>
409 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
410 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
412 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
413 <A NAME="navbar_bottom_firstrow"><!-- --></A>
414 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
415 <TR ALIGN="center" VALIGN="top">
416 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
417 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
418 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
419 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
420 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
421 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
425 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
431 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
432 <A HREF="../../and/Mapping/LSM.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
433 <A HREF="../../and/Mapping/QM.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
434 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
435 <A HREF="../../index.html?and/Mapping/Mapping.html" target="_top"><B>FRAMES</B></A>
436 <A HREF="Mapping.html" target="_top"><B>NO FRAMES</B></A>
437 <SCRIPT type="text/javascript">
440 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
445 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
452 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
453 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
454 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
455 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
458 <A NAME="skip-navbar_bottom"></A>
459 <!-- ======== END OF BOTTOM NAVBAR ======= -->