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="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="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/Graph.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
57 <A HREF="../../and/Mapping/GTask.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/Grid.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="Grid.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.Grid</B>
97 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
101 <DT><PRE>public class <B>Grid</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL>
105 Class representing a computing grid, composed of multiple clusters
110 <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#and.Mapping.Grid">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/Grid.html#Grid()">Grid</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/Grid.html#addCluster(and.Mapping.Cluster)">addCluster</A></B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c)</CODE>
145 Add a cluster in the grid.</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/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>
153 Add a clusters list in the grid.</TD>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getClusters()">getClusters</A></B>()</CODE>
161 Return the grid in a clusters list view.</TD>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE> double</CODE></FONT></TD>
166 <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,
167 <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g2)</CODE>
170 Compute and return the distance between two clusters.</TD>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174 <CODE> java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>></CODE></FONT></TD>
175 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getGNodes()">getGNodes</A></B>()</CODE>
178 Return the list of computing nodes in the grid.</TD>
180 <TR BGCOLOR="white" CLASS="TableRowColor">
181 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182 <CODE> double</CODE></FONT></TD>
183 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getHeterogenityDegre()">getHeterogenityDegre</A></B>()</CODE>
186 Compute the heterogeneity degree of the grid.</TD>
188 <TR BGCOLOR="white" CLASS="TableRowColor">
189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190 <CODE> int</CODE></FONT></TD>
191 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getNbCluster()">getNbCluster</A></B>()</CODE>
194 Return the amount of clusters in the grid.</TD>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198 <CODE> int</CODE></FONT></TD>
199 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#getNbGNode()">getNbGNode</A></B>()</CODE>
202 Return the amount of computing nodes in the grid.</TD>
204 <TR BGCOLOR="white" CLASS="TableRowColor">
205 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206 <CODE> void</CODE></FONT></TD>
207 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#initClusters()">initClusters</A></B>()</CODE>
210 Initialization of clusters.</TD>
212 <TR BGCOLOR="white" CLASS="TableRowColor">
213 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214 <CODE> void</CODE></FONT></TD>
215 <TD><CODE><B><A HREF="../../and/Mapping/Grid.html#print()">print</A></B>()</CODE>
218 Print a comprehensible text version of the grid.</TD>
220 <TR BGCOLOR="white" CLASS="TableRowColor">
221 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222 <CODE> void</CODE></FONT></TD>
223 <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>
226 Remove a computing node from the grid.</TD>
228 <TR BGCOLOR="white" CLASS="TableRowColor">
229 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230 <CODE> void</CODE></FONT></TD>
231 <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>
234 Plop !!</TD>
237 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
238 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
239 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
240 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
242 <TR BGCOLOR="white" CLASS="TableRowColor">
243 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
249 <!-- ========= CONSTRUCTOR DETAIL ======== -->
251 <A NAME="constructor_detail"><!-- --></A>
252 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
253 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
254 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
255 <B>Constructor Detail</B></FONT></TH>
259 <A NAME="Grid()"><!-- --></A><H3>
262 public <B>Grid</B>()</PRE>
264 <DD>Default constructor
268 <!-- ============ METHOD DETAIL ========== -->
270 <A NAME="method_detail"><!-- --></A>
271 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
272 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
273 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
274 <B>Method Detail</B></FONT></TH>
278 <A NAME="addCluster(and.Mapping.Cluster)"><!-- --></A><H3>
281 public void <B>addCluster</B>(<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A> c)</PRE>
283 <DD>Add a cluster in the grid.
289 <DT><B>Parameters:</B><DD><CODE>c</CODE> - Cluster to be add</DL>
294 <A NAME="addClusters(java.util.ArrayList)"><!-- --></A><H3>
297 public void <B>addClusters</B>(java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>> al)</PRE>
299 <DD>Add a clusters list in the grid.
305 <DT><B>Parameters:</B><DD><CODE>al</CODE> - List of clusters to be add</DL>
310 <A NAME="getNbCluster()"><!-- --></A><H3>
313 public int <B>getNbCluster</B>()</PRE>
315 <DD>Return the amount of clusters in the grid.
322 <DT><B>Returns:</B><DD>The amount of clusters</DL>
327 <A NAME="getNbGNode()"><!-- --></A><H3>
330 public int <B>getNbGNode</B>()</PRE>
332 <DD>Return the amount of computing nodes in the grid.
339 <DT><B>Returns:</B><DD>The amount of computing nodes</DL>
344 <A NAME="getClusters()"><!-- --></A><H3>
347 public java.util.ArrayList<<A HREF="../../and/Mapping/Cluster.html" title="class in and.Mapping">Cluster</A>> <B>getClusters</B>()</PRE>
349 <DD>Return the grid in a clusters list view.
356 <DT><B>Returns:</B><DD>Clusters list</DL>
361 <A NAME="initClusters()"><!-- --></A><H3>
364 public void <B>initClusters</B>()</PRE>
366 <DD>Initialization of clusters.
377 <A NAME="getDistance(and.Mapping.GNode, and.Mapping.GNode)"><!-- --></A><H3>
380 public double <B>getDistance</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g1,
381 <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _g2)</PRE>
383 <DD>Compute and return the distance between two clusters.
389 <DT><B>Parameters:</B><DD><CODE>_g1</CODE> - First cluster<DD><CODE>_g2</CODE> - Second cluster
390 <DT><B>Returns:</B><DD>The distance between the two clusters</DL>
395 <A NAME="getGNodes()"><!-- --></A><H3>
398 public java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> <B>getGNodes</B>()</PRE>
400 <DD>Return the list of computing nodes in the grid.
407 <DT><B>Returns:</B><DD>The list of computing nodes</DL>
412 <A NAME="updateGrid(java.util.ArrayList)"><!-- --></A><H3>
415 public void <B>updateGrid</B>(java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _gnodes)</PRE>
423 <DT><B>Parameters:</B><DD><CODE>_gnodes</CODE> - </DL>
428 <A NAME="removeGNode(and.Mapping.GNode)"><!-- --></A><H3>
431 public void <B>removeGNode</B>(<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> _dead)</PRE>
433 <DD>Remove a computing node from the grid.
439 <DT><B>Parameters:</B><DD><CODE>_dead</CODE> - The node to be removed</DL>
444 <A NAME="getHeterogenityDegre()"><!-- --></A><H3>
445 getHeterogenityDegre</H3>
447 public double <B>getHeterogenityDegre</B>()</PRE>
449 <DD>Compute the heterogeneity degree of the grid.
450 This is based on the relative standard deviation.
457 <DT><B>Returns:</B><DD>The heterogeneity degree of the grid</DL>
462 <A NAME="print()"><!-- --></A><H3>
465 public void <B>print</B>()</PRE>
467 <DD>Print a comprehensible text version of the grid.
476 <!-- ========= END OF CLASS DATA ========= -->
480 <!-- ======= START OF BOTTOM NAVBAR ====== -->
481 <A NAME="navbar_bottom"><!-- --></A>
482 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
483 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
485 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
486 <A NAME="navbar_bottom_firstrow"><!-- --></A>
487 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
488 <TR ALIGN="center" VALIGN="top">
489 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
490 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
491 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
492 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
493 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
494 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
498 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
504 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
505 <A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
506 <A HREF="../../and/Mapping/GTask.html" title="class in and.Mapping"><B>NEXT CLASS</B></A></FONT></TD>
507 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
508 <A HREF="../../index.html?and/Mapping/Grid.html" target="_top"><B>FRAMES</B></A>
509 <A HREF="Grid.html" target="_top"><B>NO FRAMES</B></A>
510 <SCRIPT type="text/javascript">
513 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
518 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
525 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
526 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
527 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
528 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
531 <A NAME="skip-navbar_bottom"></A>
532 <!-- ======== END OF BOTTOM NAVBAR ======= -->