X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa0d8b3a77e9e5bf004f961455cdc5d9e49dcaec..50ac3e136606baf487eedb6d42729c4e46f55386:/src/bindings/java/org/simgrid/msg/Process.java diff --git a/src/bindings/java/org/simgrid/msg/Process.java b/src/bindings/java/org/simgrid/msg/Process.java index 4e9247b0c4..43dc342508 100644 --- a/src/bindings/java/org/simgrid/msg/Process.java +++ b/src/bindings/java/org/simgrid/msg/Process.java @@ -51,11 +51,8 @@ public abstract class Process implements Runnable { /** Time at which the process should be created */ protected double startTime = 0; - /** Time at which the process should be killed. - * - * Set at creation, and used internally by SimGrid - */ - private double killTime = -1; + /** Time at which the process should be killed */ + private double killTime = -1; // Used from the C world private String name = null; @@ -116,9 +113,9 @@ public abstract class Process implements Runnable { public Process(Host host, String name, String[]args) { if (host == null) - throw new NullPointerException("Cannot create a process on the null host"); + throw new IllegalArgumentException("Cannot create a process on the null host"); if (name == null) - throw new NullPointerException("Process name cannot be null"); + throw new IllegalArgumentException("Process name cannot be null"); this.host = host; this.name = name; @@ -316,7 +313,7 @@ public abstract class Process implements Runnable { } /** - * The main function of the process (to implement). + * The main function of the process (to implement by the user). * * @param args * @throws MsgException