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 Tue Feb 09 10:57:28 CET 2010 -->
10 <META NAME="date" CONTENT="2010-02-09">
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="Utils";
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/Simple.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
57 NEXT CLASS</FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../index.html?and/Mapping/Utils.html" target="_top"><B>FRAMES</B></A>
60 <A HREF="Utils.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.Utils</B>
98 <DT><PRE>public class <B>Utils</B><DT>extends java.lang.Object</DL>
102 Class providing some tools to the library
110 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
112 <A NAME="constructor_summary"><!-- --></A>
113 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
116 <B>Constructor Summary</B></FONT></TH>
118 <TR BGCOLOR="white" CLASS="TableRowColor">
119 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#Utils()">Utils</A></B>()</CODE>
122 </TD>
126 <!-- ========== METHOD SUMMARY =========== -->
128 <A NAME="method_summary"><!-- --></A>
129 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132 <B>Method Summary</B></FONT></TH>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136 <CODE>static <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
137 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#createGNode()">createGNode</A></B>()</CODE>
140 Creation of the representation of the node in the Mapping point of view.</TD>
142 <TR BGCOLOR="white" CLASS="TableRowColor">
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144 <CODE>static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A></CODE></FONT></TD>
145 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#createGridG5k(java.util.ArrayList)">createGridG5k</A></B>(java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _an)</CODE>
148 Creation of the representation of the grid, according to clusters into sites.</TD>
150 <TR BGCOLOR="white" CLASS="TableRowColor">
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152 <CODE>static <A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A></CODE></FONT></TD>
153 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#readGraph(java.lang.String, java.lang.String)">readGraph</A></B>(java.lang.String _path,
154 java.lang.String _file)</CODE>
157 Read an application Graph from a file.</TD>
159 <TR BGCOLOR="white" CLASS="TableRowColor">
160 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161 <CODE>static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A></CODE></FONT></TD>
162 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#readGrid(java.lang.String, java.lang.String)">readGrid</A></B>(java.lang.String _path,
163 java.lang.String _file)</CODE>
166 Read a Grid graph from a file.</TD>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>static void</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#writeGraph(and.Mapping.Graph, java.lang.String, java.lang.String)">writeGraph</A></B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
172 java.lang.String _file,
173 java.lang.String _path)</CODE>
176 Write an application Graph in a file.</TD>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180 <CODE>static void</CODE></FONT></TD>
181 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#writeGrid(and.Mapping.Grid, java.lang.String, java.lang.String)">writeGrid</A></B>(<A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gl,
182 java.lang.String _file,
183 java.lang.String _path)</CODE>
186 Write the Grid object in an XML file.</TD>
189 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
190 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
191 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
192 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
194 <TR BGCOLOR="white" CLASS="TableRowColor">
195 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
201 <!-- ========= CONSTRUCTOR DETAIL ======== -->
203 <A NAME="constructor_detail"><!-- --></A>
204 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
205 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
206 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
207 <B>Constructor Detail</B></FONT></TH>
211 <A NAME="Utils()"><!-- --></A><H3>
214 public <B>Utils</B>()</PRE>
218 <!-- ============ METHOD DETAIL ========== -->
220 <A NAME="method_detail"><!-- --></A>
221 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
222 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
223 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
224 <B>Method Detail</B></FONT></TH>
228 <A NAME="createGNode()"><!-- --></A><H3>
231 public static <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>createGNode</B>()</PRE>
233 <DD>Creation of the representation of the node in the Mapping point of view. It needs
234 some information about the computing node, which will be exploited by mapping
239 <DT><B>Returns:</B><DD>A node from the Mapping library</DL>
244 <A NAME="createGridG5k(java.util.ArrayList)"><!-- --></A><H3>
247 public static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> <B>createGridG5k</B>(java.util.ArrayList<<A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A>> _an)</PRE>
249 <DD>Creation of the representation of the grid, according to clusters into sites.
250 This representation may only fit on Grid'5000 like architectures (with computing
251 nodes name based on the following pattern |cluster_name|id_of_node_into_cluster|.|site_of_cluster|.|organisation|.*|).
254 <DT><B>Parameters:</B><DD><CODE>_an</CODE> - the list of computing nodes connected
255 <DT><B>Returns:</B><DD>the grid's architecture</DL>
260 <A NAME="writeGrid(and.Mapping.Grid, java.lang.String, java.lang.String)"><!-- --></A><H3>
263 public static void <B>writeGrid</B>(<A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gl,
264 java.lang.String _file,
265 java.lang.String _path)</PRE>
267 <DD>Write the Grid object in an XML file.
270 <DT><B>Parameters:</B><DD><CODE>_gl</CODE> - Grid graph to be write<DD><CODE>_file</CODE> - File's name<DD><CODE>_path</CODE> - File's path</DL>
275 <A NAME="writeGraph(and.Mapping.Graph, java.lang.String, java.lang.String)"><!-- --></A><H3>
278 public static void <B>writeGraph</B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
279 java.lang.String _file,
280 java.lang.String _path)</PRE>
282 <DD>Write an application Graph in a file.
285 <DT><B>Parameters:</B><DD><CODE>_gr</CODE> - Application Graph to be write<DD><CODE>_file</CODE> - File's name<DD><CODE>_path</CODE> - File's path</DL>
290 <A NAME="readGraph(java.lang.String, java.lang.String)"><!-- --></A><H3>
293 public static <A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> <B>readGraph</B>(java.lang.String _path,
294 java.lang.String _file)</PRE>
296 <DD>Read an application Graph from a file.
299 <DT><B>Parameters:</B><DD><CODE>_file</CODE> - File's name<DD><CODE>_path</CODE> - File's path
300 <DT><B>Returns:</B><DD>The application Graph read</DL>
305 <A NAME="readGrid(java.lang.String, java.lang.String)"><!-- --></A><H3>
308 public static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> <B>readGrid</B>(java.lang.String _path,
309 java.lang.String _file)</PRE>
311 <DD>Read a Grid graph from a file.
314 <DT><B>Parameters:</B><DD><CODE>_file</CODE> - File's name<DD><CODE>_path</CODE> - File's path
315 <DT><B>Returns:</B><DD>The Grid graph read</DL>
318 <!-- ========= END OF CLASS DATA ========= -->
322 <!-- ======= START OF BOTTOM NAVBAR ====== -->
323 <A NAME="navbar_bottom"><!-- --></A>
324 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
325 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
327 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
328 <A NAME="navbar_bottom_firstrow"><!-- --></A>
329 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
330 <TR ALIGN="center" VALIGN="top">
331 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
332 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
333 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
334 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
335 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
336 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
340 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
346 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
347 <A HREF="../../and/Mapping/Simple.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
348 NEXT CLASS</FONT></TD>
349 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
350 <A HREF="../../index.html?and/Mapping/Utils.html" target="_top"><B>FRAMES</B></A>
351 <A HREF="Utils.html" target="_top"><B>NO FRAMES</B></A>
352 <SCRIPT type="text/javascript">
355 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
360 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
367 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
368 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
369 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
370 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
373 <A NAME="skip-navbar_bottom"></A>
374 <!-- ======== END OF BOTTOM NAVBAR ======= -->