From: SARDOR H. <rod...@ma...> - 2012-11-03 13:10:33
|
Hello everybody. I'm implementing my new load balancing algorithm in GridSim. I stuck at one problem. Actually I wanted to send load state information from Resources to Cluster Managers every fixed period time. But I couldn't do it. I'm doing like that: start_time=GridSim.clock(); border_time=start_time+T; // every T resource sends its load state information to Cluster Manager Sim_event ev = new Sim_event(); while(Sim_system.running()){ current_time= GridSim.clock(); // System's current time if(current_time>=border_time){ super.send(cluster, GridSimTags.SCHEDULE_NOW,File.TYPE_TAG_DATA, data); // data is load state information System.out.println(name_+"is sending its EET "+t[myQ.size()] +"to "+cluster+" at time "+GridSim.clock()); border_time=border_time+10; } super.sim_get_next(ev); ..... Can Somebody help me to solve this problem, please. Thank you in advance! |