From: alebre Date: Tue, 2 Apr 2013 13:57:08 +0000 (+0200) Subject: Start to update java bindings - Adrien X-Git-Tag: v3_11_beta~297^2^2~40^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f185f7337939bd2116d71563cedda3c33a39a54c Start to update java bindings - Adrien --- 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; }