From: EtienneM Date: Thu, 21 Jan 2016 11:06:58 +0000 (+0100) Subject: Documentation for parallel tasks X-Git-Tag: v3_13~1147^2^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d01992fcab91db1af906249ab45cf100e52ce2b1?hp=-c;ds=sidebyside Documentation for parallel tasks --- d01992fcab91db1af906249ab45cf100e52ce2b1 diff --git a/src/bindings/java/org/simgrid/msg/Task.java b/src/bindings/java/org/simgrid/msg/Task.java index 615630fad6..6410bbfcd9 100644 --- a/src/bindings/java/org/simgrid/msg/Task.java +++ b/src/bindings/java/org/simgrid/msg/Task.java @@ -58,8 +58,13 @@ public class Task { * * @param name The name of the parallel task. * @param hosts The list of hosts implied by the parallel task. - * @param flopsAmount The amount of operations to be performed by each host of \a hosts. - * @param bytesAmount A matrix describing the amount of data to exchange between hosts. + * @param flopsAmount The amount of operations to be performed by each host of hosts. + * flopsAmount[i] is the total number of operations that have to be + * performed on hosts[i]. + * @param bytesAmount A matrix describing the amount of data to exchange between hosts. The + * length of this array must be hosts.length * hosts.length. It is actually + * used as a matrix with the lines being the source and the columns being + * the destination of the communications. */ public Task(String name, Host[]hosts, double[]flopsAmount, double[]bytesAmount) { parallelCreate(name, hosts, flopsAmount, bytesAmount); @@ -86,7 +91,7 @@ public class Task { * The natively implemented method to create a MSG parallel task. * * @param name The name of the parallel task. - * @param hosts The list of hosts implied by the parallel task. + * @param hosts The list of hosts implied by the parallel task. * @param flopsAmount The total number of operations that have to be performed * on the hosts. * @param bytesAmount An array of doubles