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="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="class-use/Utils.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/Simple.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
58 NEXT CLASS</FONT></TD>
59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60 <A HREF="../../index.html?and/Mapping/Utils.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Utils.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.Utils</B>
99 <DT><PRE>public class <B>Utils</B><DT>extends java.lang.Object</DL>
103 Class providing some tools to the library
108 <DT><B>Author:</B></DT>
109 <DD>Séastien Miquée</DD>
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/Utils.html#Utils()">Utils</A></B>()</CODE>
127 </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>static <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A></CODE></FONT></TD>
142 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#createGNode()">createGNode</A></B>()</CODE>
145 Creation of the representation of the node in the Mapping point of view.</TD>
147 <TR BGCOLOR="white" CLASS="TableRowColor">
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149 <CODE>static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A></CODE></FONT></TD>
150 <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>
153 Creation of the representation of the grid, according to clusters into sites.</TD>
155 <TR BGCOLOR="white" CLASS="TableRowColor">
156 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157 <CODE>static <A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A></CODE></FONT></TD>
158 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#readGraph(java.lang.String)">readGraph</A></B>(java.lang.String _file)</CODE>
161 Read an application Graph from a file.</TD>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE>static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A></CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../and/Mapping/Utils.html#readGrid(java.lang.String)">readGrid</A></B>(java.lang.String _file)</CODE>
169 Read a Grid graph from a file.</TD>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE>static void</CODE></FONT></TD>
174 <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,
175 java.lang.String _file,
176 java.lang.String _path)</CODE>
179 Write an application Graph in a file.</TD>
181 <TR BGCOLOR="white" CLASS="TableRowColor">
182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183 <CODE>static void</CODE></FONT></TD>
184 <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,
185 java.lang.String _file,
186 java.lang.String _path)</CODE>
189 Write the Grid object in an XML file.</TD>
192 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
193 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
194 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
195 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
197 <TR BGCOLOR="white" CLASS="TableRowColor">
198 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
204 <!-- ========= CONSTRUCTOR DETAIL ======== -->
206 <A NAME="constructor_detail"><!-- --></A>
207 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
208 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
209 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
210 <B>Constructor Detail</B></FONT></TH>
214 <A NAME="Utils()"><!-- --></A><H3>
217 public <B>Utils</B>()</PRE>
221 <!-- ============ METHOD DETAIL ========== -->
223 <A NAME="method_detail"><!-- --></A>
224 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
225 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
226 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
227 <B>Method Detail</B></FONT></TH>
231 <A NAME="createGNode()"><!-- --></A><H3>
234 public static <A HREF="../../and/Mapping/GNode.html" title="class in and.Mapping">GNode</A> <B>createGNode</B>()</PRE>
236 <DD>Creation of the representation of the node in the Mapping point of view. It needs
237 some information about the computing node, which will be exploited by mapping
242 <DT><B>Returns:</B><DD>A node from the Mapping library</DL>
247 <A NAME="createGridG5k(java.util.ArrayList)"><!-- --></A><H3>
250 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>
252 <DD>Creation of the representation of the grid, according to clusters into sites.
253 This representation may only fit on Grid'5000 like architectures (with computing
254 nodes name based on the following pattern |cluster_name|id_of_node_into_cluster|.|site_of_cluster|.|organisation|.*|).
257 <DT><B>Parameters:</B><DD><CODE>_an</CODE> - the list of computing nodes connected
258 <DT><B>Returns:</B><DD>the grid's architecture</DL>
263 <A NAME="writeGrid(and.Mapping.Grid, java.lang.String, java.lang.String)"><!-- --></A><H3>
266 public static void <B>writeGrid</B>(<A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> _gl,
267 java.lang.String _file,
268 java.lang.String _path)</PRE>
270 <DD>Write the Grid object in an XML file.
273 <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>
278 <A NAME="writeGraph(and.Mapping.Graph, java.lang.String, java.lang.String)"><!-- --></A><H3>
281 public static void <B>writeGraph</B>(<A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> _gr,
282 java.lang.String _file,
283 java.lang.String _path)</PRE>
285 <DD>Write an application Graph in a file.
288 <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>
293 <A NAME="readGraph(java.lang.String)"><!-- --></A><H3>
296 public static <A HREF="../../and/Mapping/Graph.html" title="class in and.Mapping">Graph</A> <B>readGraph</B>(java.lang.String _file)</PRE>
298 <DD>Read an application Graph from a file.
301 <DT><B>Parameters:</B><DD><CODE>_file</CODE> - File's name
302 <DT><B>Returns:</B><DD>The application Graph read</DL>
307 <A NAME="readGrid(java.lang.String)"><!-- --></A><H3>
310 public static <A HREF="../../and/Mapping/Grid.html" title="class in and.Mapping">Grid</A> <B>readGrid</B>(java.lang.String _file)</PRE>
312 <DD>Read a Grid graph from a file.
315 <DT><B>Parameters:</B><DD><CODE>_file</CODE> - File's name
316 <DT><B>Returns:</B><DD>The Grid graph read</DL>
319 <!-- ========= END OF CLASS DATA ========= -->
323 <!-- ======= START OF BOTTOM NAVBAR ====== -->
324 <A NAME="navbar_bottom"><!-- --></A>
325 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
326 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
328 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
329 <A NAME="navbar_bottom_firstrow"><!-- --></A>
330 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
331 <TR ALIGN="center" VALIGN="top">
332 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../and/Mapping/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
333 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
334 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Utils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
335 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
336 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
337 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
338 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
342 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
348 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
349 <A HREF="../../and/Mapping/Simple.html" title="class in and.Mapping"><B>PREV CLASS</B></A>
350 NEXT CLASS</FONT></TD>
351 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
352 <A HREF="../../index.html?and/Mapping/Utils.html" target="_top"><B>FRAMES</B></A>
353 <A HREF="Utils.html" target="_top"><B>NO FRAMES</B></A>
354 <SCRIPT type="text/javascript">
357 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
362 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
369 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
370 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
371 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
372 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
375 <A NAME="skip-navbar_bottom"></A>
376 <!-- ======== END OF BOTTOM NAVBAR ======= -->