X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cf108868b4eeed4d0d9d343bc68557d7814e18c0..a92d7b716f51a53dea7f59db8524d4add713b910:/examples/java/cloud/migration/XVM.java diff --git a/examples/java/cloud/migration/XVM.java b/examples/java/cloud/migration/XVM.java index f34da08607..3cc30eaeda 100644 --- a/examples/java/cloud/migration/XVM.java +++ b/examples/java/cloud/migration/XVM.java @@ -14,25 +14,22 @@ import org.simgrid.msg.HostFailureException; public class XVM extends VM { private int dpIntensity; - private int netBW; private int ramsize; private int currentLoad; private Daemon daemon; - public XVM(Host host, String name, - int nbCores, int ramsize, int netBW, String diskPath, int diskSize, int migNetBW, int dpIntensity){ - super(host, name, nbCores, ramsize, netBW, diskPath, diskSize, (int)(migNetBW*0.9), dpIntensity); + public XVM(Host host, String name, int ramsize, int migNetBW, int dpIntensity){ + super(host, name, ramsize, (int)(migNetBW*0.9), dpIntensity); this.currentLoad = 0; - this.netBW = netBW ; - this. dpIntensity = dpIntensity ; + this.dpIntensity = dpIntensity ; this.ramsize= ramsize; - this.daemon = new Daemon(this, 100); + this.daemon = new Daemon(this); } public void setLoad(int load){ if (load >0) { - this.setBound(load); + this.setBound(this.getSpeed()*load/100); // this.getDaemon().setLoad(load); daemon.resume(); } else{