Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make bind atributes private (we don't want users to mess with it)
[simgrid.git] / org / simgrid / msg / Task.java
index 5242090..d0b5d03 100644 (file)
@@ -22,7 +22,7 @@ public class Task {
         * a native task. Even if this attribute is public you must never
         * access to it. It is set automatically during the build of the object.
         */
-       public long bind = 0;
+       private long bind = 0;
        /**
         * Task name
         */
@@ -123,6 +123,11 @@ public class Task {
        /** Gets the remaining computation of the task
      */
        public native double getRemainingDuration();
+       /**
+        * Sets the name of the task
+        * @param name the new task name.c
+        */
+       public native void setName(String name);
        /**
         * This method sets the priority of the computation of the task.
         * The priority doesn't affect the transfer rate. For example a