-/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
public void setLoad(int load){
if (load >0) {
this.setBound(this.getSpeed()*load/100);
- // this.getDaemon().setLoad(load);
daemon.resume();
} else{
daemon.suspend();
return this.daemon;
}
- public int getLoad(){
- System.out.println("Remaining comp:" + this.daemon.getRemaining());
+ public double getLoad(){
+ Msg.info("Remaining comp:" + this.daemon.getRemaining());
return this.currentLoad;
}