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="Grid";
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/Grid.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/Graph.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
58 <A HREF="../../and/Mapping/GTask.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/Grid.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Grid.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.Grid</B>
98 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
102 <DT><PRE>public class <B>Grid</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
106 Class representing a computing grid, composed of multiple clusters
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.Grid">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/Grid.html#Grid()">Grid</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/Grid.html#addCluster(and.Mapping.Cluster)">addCluster</A></B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c)</CODE>
148 Add a cluster in the grid.</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/Grid.html#addClusters(java.util.ArrayList)">addClusters</A></B>(java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>> al)</CODE>
156 Add a clusters list in the grid.</TD>
158 <TR BGCOLOR="white" CLASS="TableRowColor">
159 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>></CODE></FONT></TD>
161 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getClusters()">getClusters</A></B>()</CODE>
164 Return the grid in a clusters list view.</TD>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168 <CODE> double</CODE></FONT></TD>
169 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getDistance(and.Mapping.GNode, and.Mapping.GNode)">getDistance</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g1,
170 <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g2)</CODE>
173 Compute and return the distance between two clusters.</TD>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>></CODE></FONT></TD>
178 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getGNodes()">getGNodes</A></B>()</CODE>
181 Return the list of computing nodes in the grid.</TD>
183 <TR BGCOLOR="white" CLASS="TableRowColor">
184 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185 <CODE> double</CODE></FONT></TD>
186 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getHeterogenityDegre()">getHeterogenityDegre</A></B>()</CODE>
189 Compute the heterogeneity degree of the grid.</TD>
191 <TR BGCOLOR="white" CLASS="TableRowColor">
192 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193 <CODE> int</CODE></FONT></TD>
194 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getNbCluster()">getNbCluster</A></B>()</CODE>
197 Return the amount of clusters in the grid.</TD>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201 <CODE> int</CODE></FONT></TD>
202 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getNbGNode()">getNbGNode</A></B>()</CODE>
205 Return the amount of computing nodes in the grid.</TD>
207 <TR BGCOLOR="white" CLASS="TableRowColor">
208 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209 <CODE> void</CODE></FONT></TD>
210 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#initClusters()">initClusters</A></B>()</CODE>
213 Initialization of clusters.</TD>
215 <TR BGCOLOR="white" CLASS="TableRowColor">
216 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217 <CODE> void</CODE></FONT></TD>
218 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#print()">print</A></B>()</CODE>
221 Print a comprehensible text version of the grid.</TD>
223 <TR BGCOLOR="white" CLASS="TableRowColor">
224 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225 <CODE> void</CODE></FONT></TD>
226 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#removeGNode(and.Mapping.GNode)">removeGNode</A></B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead)</CODE>
229 Remove a computing node from the grid.</TD>
231 <TR BGCOLOR="white" CLASS="TableRowColor">
232 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233 <CODE> void</CODE></FONT></TD>
234 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#updateGrid(java.util.ArrayList)">updateGrid</A></B>(java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _gnodes)</CODE>
237 Plop !!</TD>
240 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
241 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
243 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
245 <TR BGCOLOR="white" CLASS="TableRowColor">
246 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
252 <!-- ========= CONSTRUCTOR DETAIL ======== -->
254 <A NAME="constructor_detail"><!-- --></A>
255 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
256 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
257 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
258 <B>Constructor Detail</B></FONT></TH>
262 <A NAME="Grid()"><!-- --></A><H3>
265 public <B>Grid</B>()</PRE>
267 <DD>Default constructor
271 <!-- ============ METHOD DETAIL ========== -->
273 <A NAME="method_detail"><!-- --></A>
274 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
276 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
277 <B>Method Detail</B></FONT></TH>
281 <A NAME="addCluster(and.Mapping.Cluster)"><!-- --></A><H3>
284 public void <B>addCluster</B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c)</PRE>
286 <DD>Add a cluster in the grid.
292 <DT><B>Parameters:</B><DD><CODE>c</CODE> - Cluster to be add</DL>
297 <A NAME="addClusters(java.util.ArrayList)"><!-- --></A><H3>
300 public void <B>addClusters</B>(java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>> al)</PRE>
302 <DD>Add a clusters list in the grid.
308 <DT><B>Parameters:</B><DD><CODE>al</CODE> - List of clusters to be add</DL>
313 <A NAME="getNbCluster()"><!-- --></A><H3>
316 public int <B>getNbCluster</B>()</PRE>
318 <DD>Return the amount of clusters in the grid.
325 <DT><B>Returns:</B><DD>The amount of clusters</DL>
330 <A NAME="getNbGNode()"><!-- --></A><H3>
333 public int <B>getNbGNode</B>()</PRE>
335 <DD>Return the amount of computing nodes in the grid.
342 <DT><B>Returns:</B><DD>The amount of computing nodes</DL>
347 <A NAME="getClusters()"><!-- --></A><H3>
350 public java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>> <B>getClusters</B>()</PRE>
352 <DD>Return the grid in a clusters list view.
359 <DT><B>Returns:</B><DD>Clusters list</DL>
364 <A NAME="initClusters()"><!-- --></A><H3>
367 public void <B>initClusters</B>()</PRE>
369 <DD>Initialization of clusters.
380 <A NAME="getDistance(and.Mapping.GNode, and.Mapping.GNode)"><!-- --></A><H3>
383 public double <B>getDistance</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g1,
384 <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g2)</PRE>
386 <DD>Compute and return the distance between two clusters.
392 <DT><B>Parameters:</B><DD><CODE>_g1</CODE> - First cluster<DD><CODE>_g2</CODE> - Second cluster
393 <DT><B>Returns:</B><DD>The distance between the two clusters</DL>
398 <A NAME="getGNodes()"><!-- --></A><H3>
401 public java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> <B>getGNodes</B>()</PRE>
403 <DD>Return the list of computing nodes in the grid.
410 <DT><B>Returns:</B><DD>The list of computing nodes</DL>
415 <A NAME="updateGrid(java.util.ArrayList)"><!-- --></A><H3>
418 public void <B>updateGrid</B>(java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _gnodes)</PRE>
426 <DT><B>Parameters:</B><DD><CODE>_gnodes</CODE> - </DL>
431 <A NAME="removeGNode(and.Mapping.GNode)"><!-- --></A><H3>
434 public void <B>removeGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead)</PRE>
436 <DD>Remove a computing node from the grid.
442 <DT><B>Parameters:</B><DD><CODE>_dead</CODE> - The node to be removed</DL>
447 <A NAME="getHeterogenityDegre()"><!-- --></A><H3>
448 getHeterogenityDegre</H3>
450 public double <B>getHeterogenityDegre</B>()</PRE>
452 <DD>Compute the heterogeneity degree of the grid.
453 This is based on a ratio between the average and the
454 standard deviation of computing nodes' power.
461 <DT><B>Returns:</B><DD>The heterogeneity degree of the grid</DL>
466 <A NAME="print()"><!-- --></A><H3>
469 public void <B>print</B>()</PRE>
471 <DD>Print a comprehensible text version of the grid.
480 <!-- ========= END OF CLASS DATA ========= -->
484 <!-- ======= START OF BOTTOM NAVBAR ====== -->
485 <A NAME="navbar_bottom"><!-- --></A>
486 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
487 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
489 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
490 <A NAME="navbar_bottom_firstrow"><!-- --></A>
491 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
492 <TR ALIGN="center" VALIGN="top">
493 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
494 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
495 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Grid.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
496 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
497 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
498 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
499 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
503 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
509 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
510 <A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
511 <A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
512 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
513 <A HREF="../../index.html?and/Mapping/Grid.html" target="_top"><B>FRAMES</B></A>
514 <A HREF="Grid.html" target="_top"><B>NO FRAMES</B></A>
515 <SCRIPT type="text/javascript">
518 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
523 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
530 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
531 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
532 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
533 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
536 <A NAME="skip-navbar_bottom"></A>
537 <!-- ======== END OF BOTTOM NAVBAR ======= -->