Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branches 'master' and 'master' of github.com:simgrid/simgrid
[simgrid.git] / examples / java / cloud / migration / XVM.java
index b62529e..3cc30ea 100644 (file)
@@ -14,20 +14,17 @@ 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){