Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid-java
authorSamuel Lepetit <samuel.lepetit@inria.fr>
Wed, 13 Jun 2012 16:32:56 +0000 (18:32 +0200)
committerSamuel Lepetit <samuel.lepetit@inria.fr>
Wed, 13 Jun 2012 16:32:56 +0000 (18:32 +0200)
examples/masterslave/Masterslave.java
org/simgrid/msg/VM.java

index 03acdc6..a2e0f35 100644 (file)
@@ -11,7 +11,8 @@ import org.simgrid.msg.Msg;
 import org.simgrid.msg.NativeException;
 
 public class Masterslave {
-   
+   public static final int TASK_COMP_SIZE = 10000000;
+   public static final int TASK_COMM_SIZE = 10000000;
    /* This only contains the launcher. If you do nothing more than than you can run 
     *   java simgrid.msg.Msg
     * which also contains such a launcher
index c1a4de4..137fa17 100644 (file)
@@ -10,6 +10,7 @@
  */
 package org.simgrid.msg;
 
+import org.simgrid.msg.Host;
 import org.simgrid.msg.Process;
 
 public class VM {
@@ -26,14 +27,14 @@ public class VM {
         * @bug it is expected that in the future, the coreAmount parameter will be used
         * to add extra constraints on the execution, but the argument is ignored for now.
         */
-       public VM(int coreAmount) {
+       public VM(Host host, int coreAmount) {
                this.coreAmount = coreAmount;
        }
        /**
         * Natively implemented method starting the VM.
         * @param coreAmount
         */
-       private native void start(int coreAmount);
+       private native void start(Host host, int coreAmount);
        
        /**
         * @brief Returns a new array containing all existing VMs.