Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Start to update java bindings - Adrien
authoralebre <adrien.lebre@inria.fr>
Tue, 2 Apr 2013 13:57:08 +0000 (15:57 +0200)
committeralebre <adrien.lebre@inria.fr>
Tue, 2 Apr 2013 13:57:08 +0000 (15:57 +0200)
src/bindings/java/org/simgrid/msg/VM.java
src/msg/msg_vm.c

index 13fa595..f881d7d 100644 (file)
@@ -14,25 +14,13 @@ import org.simgrid.msg.Host;
 import org.simgrid.msg.Process;
 
 public class VM {
-       /**
-        * This attribute represents a bind between a java task object and
-        * 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.
-        */
-       private long bind = 0;
-       
-       private int coreAmount;
 
-        private String name;
        /**
         * Create a new empty VM.
-        * NOTE: 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.
+        * NOTE: MSG_vm_create_core 
         */
-       public VM(Host host, String name, int coreAmount) {
-               this.coreAmount = coreAmount;
-               this.name = name;
-               start(host,name,coreAmount);
+       public VM(Host host, String name) {
+               create(host, name, 1024,  )
        }
        protected void finalize() {
                destroy();
index ee2b580..9ab63ae 100644 (file)
@@ -183,7 +183,7 @@ msg_vm_t MSG_vm_create(msg_host_t ind_pm, const char *name,
     simcall_host_set_params(vm, &params);
   }
 
-  /* TODO: We will revisit the disk support later. */
+  /* TODO: Limit net capability, take into account disk considerations. */
 
   return vm;
 }