Changeset 1423 for DCWoRMS/branches/coolemall/src/dcworms/schedframe
- Timestamp:
- 07/30/14 12:25:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/dcworms/schedframe/scheduling/Executable.java
r1415 r1423 51 51 52 52 protected int estimatedDuration; 53 protected String sched Name;53 protected String schedulerName; 54 54 55 55 protected double submissionTime; … … 157 157 } 158 158 159 public boolean isFinished() 160 { 159 public boolean isFinished(){ 161 160 return task.isFinished(); 162 161 } … … 264 263 265 264 public void setSchedulerName(int resourceId){ 266 this.sched Name = GridSim.getEntityName(resourceId);265 this.schedulerName = GridSim.getEntityName(resourceId); 267 266 } 268 267 269 268 public void setSchedulerName(String resourceId){ 270 this.sched Name = resourceId;269 this.schedulerName = resourceId; 271 270 } 272 271 273 272 public String getSchedulerName(){ 274 return sched Name;273 return schedulerName; 275 274 } 276 275 … … 375 374 376 375 private void preparePhases(String resourceType) { 377 LinkedList<ExecutionPhase> resourceConsumptionList= new LinkedList<ExecutionPhase>();376 LinkedList<ExecutionPhase> execPhases = new LinkedList<ExecutionPhase>(); 378 377 379 378 long usefulWork = -1; … … 388 387 e.printStackTrace(); 389 388 } 390 resourceConsumptionList.add(resConsumption);389 execPhases.add(resConsumption); 391 390 } else { 392 391 boolean found = false; … … 396 395 for(ResourceConsumptionType resConsumption: resConsumptioProfile.getResourceConsumption()){ 397 396 ExecutionPhase resourceConsumption = new ExecutionPhase(resConsumption); 398 resourceConsumptionList.add(resourceConsumption);397 execPhases.add(resourceConsumption); 399 398 } 400 399 for(StringParameterType prop: resConsumptioProfile.getProperties()){ … … 412 411 for(ResourceConsumptionType resConsumption: task.getDescription().getExecution().getResourceConsumptionProfile()[0].getResourceConsumption()){ 413 412 ExecutionPhase resourceConsumption = new ExecutionPhase(resConsumption); 414 resourceConsumptionList.add(resourceConsumption);413 execPhases.add(resourceConsumption); 415 414 } 416 415 … … 425 424 426 425 usefulWork = (usefulWork != -1) ? usefulWork : this.getLength(); 427 this.execProfile = new ExecutionProfile( resourceConsumptionList);426 this.execProfile = new ExecutionProfile(execPhases); 428 427 this.execProfile.setUsefulWork(usefulWork); 429 428
Note: See TracChangeset
for help on using the changeset viewer.