From f185f7337939bd2116d71563cedda3c33a39a54c Mon Sep 17 00:00:00 2001 From: alebre Date: Tue, 2 Apr 2013 15:57:08 +0200 Subject: [PATCH 1/1] Start to update java bindings - Adrien --- src/bindings/java/org/simgrid/msg/VM.java | 18 +++--------------- src/msg/msg_vm.c | 2 +- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/bindings/java/org/simgrid/msg/VM.java b/src/bindings/java/org/simgrid/msg/VM.java index 13fa595b6b..f881d7d40d 100644 --- a/src/bindings/java/org/simgrid/msg/VM.java +++ b/src/bindings/java/org/simgrid/msg/VM.java @@ -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(); diff --git a/src/msg/msg_vm.c b/src/msg/msg_vm.c index ee2b580a54..9ab63aef4e 100644 --- a/src/msg/msg_vm.c +++ b/src/msg/msg_vm.c @@ -183,7 +183,7 @@ msg_vm_t MSG_vm_create(msg_host_t ind_pm, const char *name, simcall_host_set_params(vm, ¶ms); } - /* TODO: We will revisit the disk support later. */ + /* TODO: Limit net capability, take into account disk considerations. */ return vm; } -- 2.20.1