Index: DCWoRMS/branches/coolemall/src/test/pausing_resuming/resources1.xml
===================================================================
--- DCWoRMS/branches/coolemall/src/test/pausing_resuming/resources1.xml	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/pausing_resuming/resources1.xml	(revision 1376)
@@ -12,5 +12,5 @@
 			<!-- Definition of scheduling plugin at cluster level -->
 			<schedulingPlugin>
-				<name>test.pausing_resuming.FCFSBF_RandomPlugin</name>
+				<name>test.pausing_resuming.FCFSBF_RandomPluginPausing</name>
 			</schedulingPlugin>	
 			<!-- Reference to managed resources - cluster manages resources belonging to the defined data center -->
Index: DCWoRMS/branches/coolemall/src/test/pausing_resuming/FCFSBF_RandomPluginPausing.java
===================================================================
--- DCWoRMS/branches/coolemall/src/test/pausing_resuming/FCFSBF_RandomPluginPausing.java	(revision 1376)
+++ DCWoRMS/branches/coolemall/src/test/pausing_resuming/FCFSBF_RandomPluginPausing.java	(revision 1376)
@@ -0,0 +1,159 @@
+package test.pausing_resuming;
+
+import dcworms.schedframe.scheduling.ExecTask;
+import dcworms.schedframe.scheduling.Executable;
+import example.localplugin.BaseLocalSchedulingPlugin;
+import gridsim.Gridlet;
+import gridsim.dcworms.DCWormsTags;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.joda.time.DateTime;
+
+import schedframe.events.scheduling.SchedulingEvent;
+import schedframe.exceptions.ResourceException;
+import schedframe.resources.ResourceStatus;
+import schedframe.resources.StandardResourceType;
+import schedframe.resources.computing.Node;
+import schedframe.resources.computing.ComputingResource;
+import schedframe.resources.computing.Processor;
+import schedframe.resources.computing.profiles.energy.EnergyEventType;
+import schedframe.resources.units.Memory;
+import schedframe.resources.units.PEUnit;
+import schedframe.resources.units.ProcessingElements;
+import schedframe.resources.units.ResourceUnit;
+import schedframe.resources.units.ResourceUnitName;
+import schedframe.resources.units.StandardResourceUnitName;
+import schedframe.scheduling.manager.resources.ClusterResourceManager;
+import schedframe.scheduling.manager.resources.ResourceManager;
+import schedframe.scheduling.manager.tasks.JobRegistry;
+import schedframe.scheduling.plan.SchedulingPlanInterface;
+import schedframe.scheduling.plan.impl.SchedulingPlan;
+import schedframe.scheduling.plugin.grid.ModuleList;
+import schedframe.scheduling.plugin.local.ResourceAllocation;
+import schedframe.scheduling.queue.TaskQueue;
+import schedframe.scheduling.queue.TaskQueueList;
+import schedframe.scheduling.tasks.TaskInterface;
+import simulator.DataCenterWorkloadSimulator;
+
+public class FCFSBF_RandomPluginPausing extends BaseLocalSchedulingPlugin {
+
+	public SchedulingPlanInterface<?> schedule(SchedulingEvent event, TaskQueueList queues, JobRegistry jobRegistry,
+			ResourceManager resManager, ModuleList modules) {
+
+		ClusterResourceManager resourceManager = (ClusterResourceManager) resManager;
+		List<Processor> processors = resourceManager.getProcessors();
+		SchedulingPlan plan = new SchedulingPlan();
+		// choose the events types to serve.
+		// Different actions for different events are possible.
+		switch (event.getType()) {
+		case START_TASK_EXECUTION:
+		//case TIMER:
+			// our tasks are placed only in first queue (see BaseLocalSchedulingPlugin.placeJobsInQueues() method)
+			TaskQueue q = queues.get(0);
+			// check all tasks in queue
+
+			for (int i = 0; i < q.size(); i++) {
+				TaskInterface<?> task = q.get(i);
+				// if status of the tasks in READY
+				if (task.getStatus() == DCWormsTags.READY) {
+
+					Map<ResourceUnitName, ResourceUnit> choosenResources = chooseResourcesForExecution(processors, task);
+					if (choosenResources != null) {
+						addToSchedulingPlan(plan, task, choosenResources);
+					} else {
+						if(jobRegistry.getRunningTasks().size() > 0) {
+							for(ExecTask exec: jobRegistry.getRunningTasks()){
+								jobRegistry.pauseTask(exec.getJobId(), exec.getId());
+							}
+						} 
+					}
+				}
+			}
+
+			break;
+		case TASK_FINISHED:
+			for(ExecTask exec: jobRegistry.getTasks(DCWormsTags.PAUSED)){
+				jobRegistry.resumeTask(exec.getJobId(), exec.getId());
+			}
+			q = queues.get(0);
+			// check all tasks in queue
+
+			for (int i = 0; i < q.size(); i++) {
+				TaskInterface<?> task = q.get(i);
+				// if status of the tasks in READY
+				if (task.getStatus() == DCWormsTags.READY) {
+					Map<ResourceUnitName, ResourceUnit> choosenResources = chooseResourcesForExecution(processors, task);
+					if (choosenResources != null) {
+						addToSchedulingPlan(plan, task, choosenResources);
+					}
+				}
+			}
+
+			break;
+		case TASK_PAUSED: 
+			 q = queues.get(0);
+			// check all tasks in queue
+
+			for (int i = 0; i < q.size(); i++) {
+				TaskInterface<?> task = q.get(i);
+				// if status of the tasks in READY
+				if (task.getStatus() == DCWormsTags.READY) {
+
+					Map<ResourceUnitName, ResourceUnit> choosenResources = chooseResourcesForExecution(processors, task);
+					if (choosenResources != null) {
+						addToSchedulingPlan(plan, task, choosenResources);
+					}
+				}
+			}
+
+		}
+		
+		return plan;
+	}
+
+	private Map<ResourceUnitName, ResourceUnit> chooseResourcesForExecution(
+			List<Processor> processors, TaskInterface<?> task) {
+
+		Map<ResourceUnitName, ResourceUnit> map = new HashMap<ResourceUnitName, ResourceUnit>(1);
+
+		int cpuRequest;
+		try {
+			cpuRequest = Double.valueOf(task.getCpuCntRequest()).intValue();
+		} catch (NoSuchFieldException e) {
+			cpuRequest = 0;
+		}
+
+		if (cpuRequest != 0) {
+
+			if (processors.size() < cpuRequest) {
+				return null;
+			}
+
+			List<ComputingResource> choosenResources = new ArrayList<ComputingResource>(cpuRequest);				
+			for (int i = 0; i < processors.size() && cpuRequest > 0; i++) {
+				if (processors.get(i).getStatus() == ResourceStatus.FREE) {
+					choosenResources.add(processors.get(i));
+					cpuRequest--;
+				}
+			}
+			if (cpuRequest > 0) {
+				return null;
+			}
+
+			ProcessingElements pe = new ProcessingElements();
+			pe.addAll(choosenResources);
+			map.put(StandardResourceUnitName.PE, pe);
+			return map;
+		}
+
+		return null;
+	}
+
+
+
+}
Index: DCWoRMS/branches/coolemall/src/test/pausing_resuming/FCFSBF_RandomPlugin.java
===================================================================
--- DCWoRMS/branches/coolemall/src/test/pausing_resuming/FCFSBF_RandomPlugin.java	(revision 1375)
+++ 	(revision )
@@ -1,159 +1,0 @@
-package test.pausing_resuming;
-
-import dcworms.schedframe.scheduling.ExecTask;
-import dcworms.schedframe.scheduling.Executable;
-import example.localplugin.BaseLocalSchedulingPlugin;
-import gridsim.Gridlet;
-import gridsim.dcworms.DCWormsTags;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import org.joda.time.DateTime;
-
-import schedframe.events.scheduling.SchedulingEvent;
-import schedframe.exceptions.ResourceException;
-import schedframe.resources.ResourceStatus;
-import schedframe.resources.StandardResourceType;
-import schedframe.resources.computing.Node;
-import schedframe.resources.computing.ComputingResource;
-import schedframe.resources.computing.Processor;
-import schedframe.resources.computing.profiles.energy.EnergyEventType;
-import schedframe.resources.units.Memory;
-import schedframe.resources.units.PEUnit;
-import schedframe.resources.units.ProcessingElements;
-import schedframe.resources.units.ResourceUnit;
-import schedframe.resources.units.ResourceUnitName;
-import schedframe.resources.units.StandardResourceUnitName;
-import schedframe.scheduling.manager.resources.ClusterResourceManager;
-import schedframe.scheduling.manager.resources.ResourceManager;
-import schedframe.scheduling.manager.tasks.JobRegistry;
-import schedframe.scheduling.plan.SchedulingPlanInterface;
-import schedframe.scheduling.plan.impl.SchedulingPlan;
-import schedframe.scheduling.plugin.grid.ModuleList;
-import schedframe.scheduling.plugin.local.ResourceAllocation;
-import schedframe.scheduling.queue.TaskQueue;
-import schedframe.scheduling.queue.TaskQueueList;
-import schedframe.scheduling.tasks.TaskInterface;
-import simulator.DataCenterWorkloadSimulator;
-
-public class FCFSBF_RandomPlugin extends BaseLocalSchedulingPlugin {
-
-	public SchedulingPlanInterface<?> schedule(SchedulingEvent event, TaskQueueList queues, JobRegistry jobRegistry,
-			ResourceManager resManager, ModuleList modules) {
-
-		ClusterResourceManager resourceManager = (ClusterResourceManager) resManager;
-		List<Processor> processors = resourceManager.getProcessors();
-		SchedulingPlan plan = new SchedulingPlan();
-		// choose the events types to serve.
-		// Different actions for different events are possible.
-		switch (event.getType()) {
-		case START_TASK_EXECUTION:
-		//case TIMER:
-			// our tasks are placed only in first queue (see BaseLocalSchedulingPlugin.placeJobsInQueues() method)
-			TaskQueue q = queues.get(0);
-			// check all tasks in queue
-
-			for (int i = 0; i < q.size(); i++) {
-				TaskInterface<?> task = q.get(i);
-				// if status of the tasks in READY
-				if (task.getStatus() == DCWormsTags.READY) {
-
-					Map<ResourceUnitName, ResourceUnit> choosenResources = chooseResourcesForExecution(processors, task);
-					if (choosenResources != null) {
-						addToSchedulingPlan(plan, task, choosenResources);
-					} else {
-						if(jobRegistry.getRunningTasks().size() > 0) {
-							for(ExecTask exec: jobRegistry.getRunningTasks()){
-								jobRegistry.pauseTask(exec.getJobId(), exec.getId());
-							}
-						} 
-					}
-				}
-			}
-
-			break;
-		case TASK_FINISHED:
-			for(ExecTask exec: jobRegistry.getTasks(DCWormsTags.PAUSED)){
-				jobRegistry.resumeTask(exec.getJobId(), exec.getId());
-			}
-			q = queues.get(0);
-			// check all tasks in queue
-
-			for (int i = 0; i < q.size(); i++) {
-				TaskInterface<?> task = q.get(i);
-				// if status of the tasks in READY
-				if (task.getStatus() == DCWormsTags.READY) {
-					Map<ResourceUnitName, ResourceUnit> choosenResources = chooseResourcesForExecution(processors, task);
-					if (choosenResources != null) {
-						addToSchedulingPlan(plan, task, choosenResources);
-					}
-				}
-			}
-
-			break;
-		case TASK_PAUSED: 
-			 q = queues.get(0);
-			// check all tasks in queue
-
-			for (int i = 0; i < q.size(); i++) {
-				TaskInterface<?> task = q.get(i);
-				// if status of the tasks in READY
-				if (task.getStatus() == DCWormsTags.READY) {
-
-					Map<ResourceUnitName, ResourceUnit> choosenResources = chooseResourcesForExecution(processors, task);
-					if (choosenResources != null) {
-						addToSchedulingPlan(plan, task, choosenResources);
-					}
-				}
-			}
-
-		}
-		
-		return plan;
-	}
-
-	private Map<ResourceUnitName, ResourceUnit> chooseResourcesForExecution(
-			List<Processor> processors, TaskInterface<?> task) {
-
-		Map<ResourceUnitName, ResourceUnit> map = new HashMap<ResourceUnitName, ResourceUnit>(1);
-
-		int cpuRequest;
-		try {
-			cpuRequest = Double.valueOf(task.getCpuCntRequest()).intValue();
-		} catch (NoSuchFieldException e) {
-			cpuRequest = 0;
-		}
-
-		if (cpuRequest != 0) {
-
-			if (processors.size() < cpuRequest) {
-				return null;
-			}
-
-			List<ComputingResource> choosenResources = new ArrayList<ComputingResource>(cpuRequest);				
-			for (int i = 0; i < processors.size() && cpuRequest > 0; i++) {
-				if (processors.get(i).getStatus() == ResourceStatus.FREE) {
-					choosenResources.add(processors.get(i));
-					cpuRequest--;
-				}
-			}
-			if (cpuRequest > 0) {
-				return null;
-			}
-
-			ProcessingElements pe = new ProcessingElements();
-			pe.addAll(choosenResources);
-			map.put(StandardResourceUnitName.PE, pe);
-			return map;
-		}
-
-		return null;
-	}
-
-
-
-}
Index: DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_ResourceUtilization.txt
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_ResourceUtilization.txt	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_ResourceUtilization.txt	(revision 1376)
@@ -1,87 +1,51 @@
-utlization;compRes;1225666800000;0;
-utlization;compRes;1225666801000;0.083;
-utlization;compRes;1225666802000;0.167;
-utlization;compRes;1225666803000;0.25;
-utlization;compRes;1225666804000;0.333;
-utlization;compRes;1225666805000;0.417;
-utlization;compRes;1225667315000;0.333;
-utlization;compRes;1225667316000;0.25;
-utlization;compRes;1225667317000;0.167;
-utlization;compRes;1225667318000;0.083;
-utlization;compRes;1225667319000;0;
-mean: 0.41265253692999354
-utlization;compRes/Rack_1;1225666800000;0;
-utlization;compRes/Rack_1;1225666801000;0.083;
-utlization;compRes/Rack_1;1225666802000;0.167;
-utlization;compRes/Rack_1;1225666803000;0.25;
-utlization;compRes/Rack_1;1225666804000;0.333;
-utlization;compRes/Rack_1;1225666805000;0.417;
-utlization;compRes/Rack_1;1225667315000;0.333;
-utlization;compRes/Rack_1;1225667316000;0.25;
-utlization;compRes/Rack_1;1225667317000;0.167;
-utlization;compRes/Rack_1;1225667318000;0.083;
-utlization;compRes/Rack_1;1225667319000;0;
-mean: 0.41265253692999354
-utlization;compRes/Rack_1/Node_1;1225666800000;0;
-utlization;compRes/Rack_1/Node_1;1225666801000;0.25;
-utlization;compRes/Rack_1/Node_1;1225666802000;0.5;
-utlization;compRes/Rack_1/Node_1;1225667315000;0.25;
-utlization;compRes/Rack_1/Node_1;1225667316000;0;
-utlization;compRes/Rack_1/Node_1;1225667319000;0;
-mean: 0.4951830443159923
-utlization;compRes/Rack_1/Node_2;1225666800000;0;
-utlization;compRes/Rack_1/Node_2;1225666803000;0.25;
-utlization;compRes/Rack_1/Node_2;1225666805000;0.5;
-utlization;compRes/Rack_1/Node_2;1225667317000;0.25;
-utlization;compRes/Rack_1/Node_2;1225667319000;0;
-mean: 0.4951830443159923
-utlization;compRes/Rack_1/Node_3;1225666800000;0;
-utlization;compRes/Rack_1/Node_3;1225666804000;0.25;
-utlization;compRes/Rack_1/Node_3;1225667318000;0;
-utlization;compRes/Rack_1/Node_3;1225667319000;0;
-mean: 0.24759152215799615
-utlization;compRes/Rack_1/Node_1/Processor_1;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_1;1225666801000;1;
-utlization;compRes/Rack_1/Node_1/Processor_1;1225667315000;0;
-utlization;compRes/Rack_1/Node_1/Processor_1;1225667319000;0;
-mean: 0.9903660886319846
-utlization;compRes/Rack_1/Node_1/Processor_2;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_2;1225666802000;1;
-utlization;compRes/Rack_1/Node_1/Processor_2;1225667316000;0;
-utlization;compRes/Rack_1/Node_1/Processor_2;1225667319000;0;
-mean: 0.9903660886319846
+utlization;compRes;1225666800000;0.417;
+utlization;compRes;1225667314000;0;
+mean: 0.41666666666666663
+utlization;compRes/Rack_1;1225666800000;0.417;
+utlization;compRes/Rack_1;1225667314000;0;
+mean: 0.41666666666666663
+utlization;compRes/Rack_1/Node_1;1225666800000;0.5;
+utlization;compRes/Rack_1/Node_1;1225667314000;0;
+mean: 0.5
+utlization;compRes/Rack_1/Node_2;1225666800000;0.25;
+utlization;compRes/Rack_1/Node_2;1225667314000;0;
+mean: 0.25
+utlization;compRes/Rack_1/Node_3;1225666800000;0.5;
+utlization;compRes/Rack_1/Node_3;1225667314000;0;
+mean: 0.5
+utlization;compRes/Rack_1/Node_1/Processor_1;1225666800000;1;
+utlization;compRes/Rack_1/Node_1/Processor_1;1225667314000;0;
+mean: 1.0
+utlization;compRes/Rack_1/Node_1/Processor_2;1225666800000;1;
+utlization;compRes/Rack_1/Node_1/Processor_2;1225667314000;0;
+mean: 1.0
 utlization;compRes/Rack_1/Node_1/Processor_3;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_3;1225667319000;0;
+utlization;compRes/Rack_1/Node_1/Processor_3;1225667314000;0;
 mean: 0.0
 utlization;compRes/Rack_1/Node_1/Processor_4;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_4;1225667319000;0;
+utlization;compRes/Rack_1/Node_1/Processor_4;1225667314000;0;
 mean: 0.0
-utlization;compRes/Rack_1/Node_2/Processor_5;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_5;1225666803000;1;
-utlization;compRes/Rack_1/Node_2/Processor_5;1225667317000;0;
-utlization;compRes/Rack_1/Node_2/Processor_5;1225667319000;0;
-mean: 0.9903660886319846
+utlization;compRes/Rack_1/Node_2/Processor_5;1225666800000;1;
+utlization;compRes/Rack_1/Node_2/Processor_5;1225667314000;0;
+mean: 1.0
 utlization;compRes/Rack_1/Node_2/Processor_6;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_6;1225666805000;1;
-utlization;compRes/Rack_1/Node_2/Processor_6;1225667319000;0;
-mean: 0.9903660886319846
+utlization;compRes/Rack_1/Node_2/Processor_6;1225667314000;0;
+mean: 0.0
 utlization;compRes/Rack_1/Node_2/Processor_7;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_7;1225667319000;0;
+utlization;compRes/Rack_1/Node_2/Processor_7;1225667314000;0;
 mean: 0.0
 utlization;compRes/Rack_1/Node_2/Processor_8;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_8;1225667319000;0;
+utlization;compRes/Rack_1/Node_2/Processor_8;1225667314000;0;
 mean: 0.0
-utlization;compRes/Rack_1/Node_3/Processor_9;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_9;1225666804000;1;
-utlization;compRes/Rack_1/Node_3/Processor_9;1225667318000;0;
-utlization;compRes/Rack_1/Node_3/Processor_9;1225667319000;0;
-mean: 0.9903660886319846
-utlization;compRes/Rack_1/Node_3/Processor_10;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_10;1225667319000;0;
-mean: 0.0
+utlization;compRes/Rack_1/Node_3/Processor_9;1225666800000;1;
+utlization;compRes/Rack_1/Node_3/Processor_9;1225667314000;0;
+mean: 1.0
+utlization;compRes/Rack_1/Node_3/Processor_10;1225666800000;1;
+utlization;compRes/Rack_1/Node_3/Processor_10;1225667314000;0;
+mean: 1.0
 utlization;compRes/Rack_1/Node_3/Processor_11;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_11;1225667319000;0;
+utlization;compRes/Rack_1/Node_3/Processor_11;1225667314000;0;
 mean: 0.0
 utlization;compRes/Rack_1/Node_3/Processor_12;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_12;1225667319000;0;
+utlization;compRes/Rack_1/Node_3/Processor_12;1225667314000;0;
 mean: 0.0
Index: DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Simulation.txt
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Simulation.txt	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Simulation.txt	(revision 1376)
@@ -2,9 +2,9 @@
 Delayed tasks;0;0;0;0;0;0;1;
 Failed requests (tasks);0;0;0;0;0;0;1;
-Makespan;519;0;0;519;519;519;1;
-Resources queue length;0.01;0;0;0.01;0.01;0.01;1;
-Resources total load;0.413;0;0;0.413;0.413;0.413;1;
-Energy usage;15.241;2.7;7.291;11.422;17.156;45.722;3;
-Task completion time;517;1.414;2;515;519;2,585;5;
+Makespan;514;0;0;514;514;514;1;
+Resources queue length;0;0;0;0;0;0;1;
+Resources total load;0.417;0;0;0.417;0.417;0.417;1;
+Energy usage;15.23;2.692;7.248;11.422;17.133;45.689;3;
+Task completion time;514;0;0;514;514;2,570;5;
 Task execution time;514;0;0;514;514;2,570;5;
 Task start time;0;0;0;0;0;0;5;
Index: DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Tasks.txt
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Tasks.txt	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Tasks.txt	(revision 1376)
@@ -1,6 +1,6 @@
 JobID;TaskID;UserDN;SchedName;CpuCnt;ExecStartDate;ExecFinishDate;ExecEndDate;GB_SubDate;LB_SubDate;CompletionTime;ExecStartTime;ExecutionTime;ReadyTime;StartTime;FlowTime;WaitingTime;GQ_WaitingTime;Lateness;Tardiness;ReservStartDate;ReservFinishDate;HostNames;ProcessorName;Energy;AppName;
-0;0;-1;cluster;1;1225666801;1225667315;1225667315;1225666801;1225666801;515;1;514;1;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1];[compRes/Rack_1/Node_1/Processor_1];0;null;
-1;1;-1;cluster;1;1225666802;1225667316;1225667316;1225666802;1225666802;516;2;514;2;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1];[compRes/Rack_1/Node_1/Processor_2];0;null;
-2;2;-1;cluster;1;1225666803;1225667317;1225667317;1225666803;1225666803;517;3;514;3;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1, compRes/Rack_1/Node_2];[compRes/Rack_1/Node_1/Processor_3, compRes/Rack_1/Node_2/Processor_5];0;null;
-3;3;-1;cluster;1;1225666804;1225667318;1225667318;1225666804;1225666804;518;4;514;4;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1, compRes/Rack_1/Node_3];[compRes/Rack_1/Node_1/Processor_3, compRes/Rack_1/Node_3/Processor_9];0;null;
-4;4;-1;cluster;1;1225666805;1225667319;1225667319;1225666805;1225666805;519;5;514;5;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1, compRes/Rack_1/Node_2];[compRes/Rack_1/Node_1/Processor_3, compRes/Rack_1/Node_2/Processor_6];0;null;
+0;0;-1;cluster;1;1225666800;1225667314;1225667314;1225666800;1225666800;514;0;514;0;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1];[compRes/Rack_1/Node_1/Processor_1];0;null;
+1;1;-1;cluster;1;1225666800;1225667314;1225667314;1225666800;1225666800;514;0;514;0;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1];[compRes/Rack_1/Node_1/Processor_2];0;null;
+2;2;-1;cluster;1;1225666800;1225667314;1225667314;1225666800;1225666800;514;0;514;0;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1, compRes/Rack_1/Node_3];[compRes/Rack_1/Node_1/Processor_3, compRes/Rack_1/Node_3/Processor_10];0;null;
+3;3;-1;cluster;1;1225666800;1225667314;1225667314;1225666800;1225666800;514;0;514;0;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_1, compRes/Rack_1/Node_3];[compRes/Rack_1/Node_1/Processor_4, compRes/Rack_1/Node_3/Processor_9];0;null;
+4;4;-1;cluster;1;1225666800;1225667314;1225667314;1225666800;1225666800;514;0;514;0;0;514;0;0;0;0;0;0;[compRes/Rack_1/Node_2];[compRes/Rack_1/Node_2/Processor_5];0;null;
Index: DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_ResourceOccupancy.txt
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_ResourceOccupancy.txt	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_ResourceOccupancy.txt	(revision 1376)
@@ -1,87 +1,51 @@
-utlization;compRes;1225666800000;0;
-utlization;compRes;1225666801000;0.083;
-utlization;compRes;1225666802000;0.167;
-utlization;compRes;1225666803000;0.25;
-utlization;compRes;1225666804000;0.333;
-utlization;compRes;1225666805000;0.417;
-utlization;compRes;1225667315000;0.333;
-utlization;compRes;1225667316000;0.25;
-utlization;compRes;1225667317000;0.167;
-utlization;compRes;1225667318000;0.083;
-utlization;compRes;1225667319000;0;
-mean: 0.4126525369299936
-utlization;compRes/Rack_1;1225666800000;0;
-utlization;compRes/Rack_1;1225666801000;0.083;
-utlization;compRes/Rack_1;1225666802000;0.167;
-utlization;compRes/Rack_1;1225666803000;0.25;
-utlization;compRes/Rack_1;1225666804000;0.333;
-utlization;compRes/Rack_1;1225666805000;0.417;
-utlization;compRes/Rack_1;1225667315000;0.333;
-utlization;compRes/Rack_1;1225667316000;0.25;
-utlization;compRes/Rack_1;1225667317000;0.167;
-utlization;compRes/Rack_1;1225667318000;0.083;
-utlization;compRes/Rack_1;1225667319000;0;
-mean: 0.4126525369299936
-utlization;compRes/Rack_1/Node_1;1225666800000;0;
-utlization;compRes/Rack_1/Node_1;1225666801000;0.25;
-utlization;compRes/Rack_1/Node_1;1225666802000;0.5;
-utlization;compRes/Rack_1/Node_1;1225667315000;0.25;
-utlization;compRes/Rack_1/Node_1;1225667316000;0;
-utlization;compRes/Rack_1/Node_1;1225667319000;0;
-mean: 0.4951830443159923
-utlization;compRes/Rack_1/Node_2;1225666800000;0;
-utlization;compRes/Rack_1/Node_2;1225666803000;0.25;
-utlization;compRes/Rack_1/Node_2;1225666805000;0.5;
-utlization;compRes/Rack_1/Node_2;1225667317000;0.25;
-utlization;compRes/Rack_1/Node_2;1225667319000;0;
-mean: 0.4951830443159923
-utlization;compRes/Rack_1/Node_3;1225666800000;0;
-utlization;compRes/Rack_1/Node_3;1225666804000;0.25;
-utlization;compRes/Rack_1/Node_3;1225667318000;0;
-utlization;compRes/Rack_1/Node_3;1225667319000;0;
-mean: 0.24759152215799615
-utlization;compRes/Rack_1/Node_1/Processor_1;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_1;1225666801000;1;
-utlization;compRes/Rack_1/Node_1/Processor_1;1225667315000;0;
-utlization;compRes/Rack_1/Node_1/Processor_1;1225667319000;0;
-mean: 0.9903660886319846
-utlization;compRes/Rack_1/Node_1/Processor_2;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_2;1225666802000;1;
-utlization;compRes/Rack_1/Node_1/Processor_2;1225667316000;0;
-utlization;compRes/Rack_1/Node_1/Processor_2;1225667319000;0;
-mean: 0.9903660886319846
+utlization;compRes;1225666800000;0.417;
+utlization;compRes;1225667314000;0;
+mean: 0.4166666666666667
+utlization;compRes/Rack_1;1225666800000;0.417;
+utlization;compRes/Rack_1;1225667314000;0;
+mean: 0.4166666666666667
+utlization;compRes/Rack_1/Node_1;1225666800000;0.5;
+utlization;compRes/Rack_1/Node_1;1225667314000;0;
+mean: 0.5
+utlization;compRes/Rack_1/Node_2;1225666800000;0.25;
+utlization;compRes/Rack_1/Node_2;1225667314000;0;
+mean: 0.25
+utlization;compRes/Rack_1/Node_3;1225666800000;0.5;
+utlization;compRes/Rack_1/Node_3;1225667314000;0;
+mean: 0.5
+utlization;compRes/Rack_1/Node_1/Processor_1;1225666800000;1;
+utlization;compRes/Rack_1/Node_1/Processor_1;1225667314000;0;
+mean: 1.0
+utlization;compRes/Rack_1/Node_1/Processor_2;1225666800000;1;
+utlization;compRes/Rack_1/Node_1/Processor_2;1225667314000;0;
+mean: 1.0
 utlization;compRes/Rack_1/Node_1/Processor_3;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_3;1225667319000;0;
+utlization;compRes/Rack_1/Node_1/Processor_3;1225667314000;0;
 mean: 0.0
 utlization;compRes/Rack_1/Node_1/Processor_4;1225666800000;0;
-utlization;compRes/Rack_1/Node_1/Processor_4;1225667319000;0;
+utlization;compRes/Rack_1/Node_1/Processor_4;1225667314000;0;
 mean: 0.0
-utlization;compRes/Rack_1/Node_2/Processor_5;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_5;1225666803000;1;
-utlization;compRes/Rack_1/Node_2/Processor_5;1225667317000;0;
-utlization;compRes/Rack_1/Node_2/Processor_5;1225667319000;0;
-mean: 0.9903660886319846
+utlization;compRes/Rack_1/Node_2/Processor_5;1225666800000;1;
+utlization;compRes/Rack_1/Node_2/Processor_5;1225667314000;0;
+mean: 1.0
 utlization;compRes/Rack_1/Node_2/Processor_6;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_6;1225666805000;1;
-utlization;compRes/Rack_1/Node_2/Processor_6;1225667319000;0;
-mean: 0.9903660886319846
+utlization;compRes/Rack_1/Node_2/Processor_6;1225667314000;0;
+mean: 0.0
 utlization;compRes/Rack_1/Node_2/Processor_7;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_7;1225667319000;0;
+utlization;compRes/Rack_1/Node_2/Processor_7;1225667314000;0;
 mean: 0.0
 utlization;compRes/Rack_1/Node_2/Processor_8;1225666800000;0;
-utlization;compRes/Rack_1/Node_2/Processor_8;1225667319000;0;
+utlization;compRes/Rack_1/Node_2/Processor_8;1225667314000;0;
 mean: 0.0
-utlization;compRes/Rack_1/Node_3/Processor_9;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_9;1225666804000;1;
-utlization;compRes/Rack_1/Node_3/Processor_9;1225667318000;0;
-utlization;compRes/Rack_1/Node_3/Processor_9;1225667319000;0;
-mean: 0.9903660886319846
-utlization;compRes/Rack_1/Node_3/Processor_10;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_10;1225667319000;0;
-mean: 0.0
+utlization;compRes/Rack_1/Node_3/Processor_9;1225666800000;1;
+utlization;compRes/Rack_1/Node_3/Processor_9;1225667314000;0;
+mean: 1.0
+utlization;compRes/Rack_1/Node_3/Processor_10;1225666800000;1;
+utlization;compRes/Rack_1/Node_3/Processor_10;1225667314000;0;
+mean: 1.0
 utlization;compRes/Rack_1/Node_3/Processor_11;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_11;1225667319000;0;
+utlization;compRes/Rack_1/Node_3/Processor_11;1225667314000;0;
 mean: 0.0
 utlization;compRes/Rack_1/Node_3/Processor_12;1225666800000;0;
-utlization;compRes/Rack_1/Node_3/Processor_12;1225667319000;0;
+utlization;compRes/Rack_1/Node_3/Processor_12;1225667314000;0;
 mean: 0.0
Index: DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Jobs.txt
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Jobs.txt	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_Jobs.txt	(revision 1376)
@@ -1,6 +1,6 @@
 jobID;meanTaskCompletionTime;meanTaskExecutionTime;meanTaskStartTime;meanTaskFlowTime;meanTaskWaitingTime;meanTaskGQ_WaitingTime;lateness;tardiness;makespan;
-0;515;514;0;514;0;0;0;0;515;
-1;516;514;0;514;0;0;0;0;516;
-2;517;514;0;514;0;0;0;0;517;
-3;518;514;0;514;0;0;0;0;518;
-4;519;514;0;514;0;0;0;0;519;
+0;514;514;0;514;0;0;0;0;514;
+1;514;514;0;514;0;0;0;0;514;
+2;514;514;0;514;0;0;0;0;514;
+3;514;514;0;514;0;0;0;0;514;
+4;514;514;0;514;0;0;0;0;514;
Index: DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_EnergyUsage.txt
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_EnergyUsage.txt	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate_result/Stats_Simulation_1_EnergyUsage.txt	(revision 1376)
@@ -1,18 +1,9 @@
-powerConsumption;compRes/Rack_1/Node_1;1225666800000;0;
-powerConsumption;compRes/Rack_1/Node_1;1225666801000;80;
-powerConsumption;compRes/Rack_1/Node_1;1225666802000;120;
-powerConsumption;compRes/Rack_1/Node_1;1225667315000;80;
-powerConsumption;compRes/Rack_1/Node_1;1225667316000;0;
-powerConsumption;compRes/Rack_1/Node_1;1225667319000;0;
-mean: 118.92100192678228 sum: 17.144444444444446
-powerConsumption;compRes/Rack_1/Node_2;1225666800000;0;
-powerConsumption;compRes/Rack_1/Node_2;1225666803000;80;
-powerConsumption;compRes/Rack_1/Node_2;1225666805000;120;
-powerConsumption;compRes/Rack_1/Node_2;1225667317000;80;
-powerConsumption;compRes/Rack_1/Node_2;1225667319000;0;
-mean: 118.99807321772639 sum: 17.155555555555555
-powerConsumption;compRes/Rack_1/Node_3;1225666800000;0;
-powerConsumption;compRes/Rack_1/Node_3;1225666804000;80;
-powerConsumption;compRes/Rack_1/Node_3;1225667318000;0;
-powerConsumption;compRes/Rack_1/Node_3;1225667319000;0;
-mean: 79.22928709055877 sum: 11.422222222222222
+powerConsumption;compRes/Rack_1/Node_1;1225666800000;120;
+powerConsumption;compRes/Rack_1/Node_1;1225667314000;0;
+mean: 120.0 sum: 17.133333333333333
+powerConsumption;compRes/Rack_1/Node_2;1225666800000;80;
+powerConsumption;compRes/Rack_1/Node_2;1225667314000;0;
+mean: 80.0 sum: 11.422222222222222
+powerConsumption;compRes/Rack_1/Node_3;1225666800000;120;
+powerConsumption;compRes/Rack_1/Node_3;1225667314000;0;
+mean: 120.0 sum: 17.133333333333333
Index: DCWoRMS/branches/coolemall/src/test/migrate/NodeEnergyEstimationPlugin.java
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate/NodeEnergyEstimationPlugin.java	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate/NodeEnergyEstimationPlugin.java	(revision 1376)
@@ -28,5 +28,4 @@
 			DataCenterWorkloadSimulator.getEventManager().sendToAllSchedulers(0, DCWormsTags.POWER_LIMIT_EXCEEDED, node.getFullName());
 		}
-System.out.println("power: " + node.getFullName()  + "; " + powerConsumption);
 		return powerConsumption;
 	}
Index: DCWoRMS/branches/coolemall/src/test/migrate/workload.swf
===================================================================
--- DCWoRMS/branches/coolemall/src/test/migrate/workload.swf	(revision 1375)
+++ DCWoRMS/branches/coolemall/src/test/migrate/workload.swf	(revision 1376)
@@ -12,7 +12,7 @@
 ;StartTime: Mon Nov 03 00:00:00 CET 2008																																				
 ;PUSpeed: 1																																				
-		0		1		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
-		1		2		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
-		2		3		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
-		3		4		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
-		4		5		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
+		0		0		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
+		1		0		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
+		2		0		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
+		3		0		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
+		4		0		-1		514		1		-1		-1		1		514		-1		-1		-1		-1		-1		-1		-1		-1		-1
