- Timestamp:
- 07/30/14 12:25:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/scheduling/tasks/phases/ExecutionProfile.java
r1415 r1423 5 5 public class ExecutionProfile { 6 6 7 protected LinkedList<ExecutionPhase> resourceConsumptionList;7 protected LinkedList<ExecutionPhase> executionPhases; 8 8 protected long usefulWork; 9 9 protected double completionPercentage; … … 11 11 12 12 13 public ExecutionProfile(LinkedList<ExecutionPhase> resourceConsumptionList) {14 this. resourceConsumptionList = resourceConsumptionList;13 public ExecutionProfile(LinkedList<ExecutionPhase> execPhases) { 14 this.executionPhases = execPhases; 15 15 this.completionPercentage = 0; 16 16 this.currentPhase = 0; 17 17 } 18 18 19 public LinkedList<ExecutionPhase> get ResourceConsumptionList(){20 return resourceConsumptionList;19 public LinkedList<ExecutionPhase> getExecutionPhases(){ 20 return executionPhases; 21 21 } 22 22 23 public ExecutionPhase getCurrent ResourceConsumption(){24 return resourceConsumptionList.get(currentPhase);23 public ExecutionPhase getCurrentExecutionPhase(){ 24 return executionPhases.get(currentPhase); 25 25 } 26 26 … … 42 42 43 43 public boolean isLast(){ 44 if(currentPhase == resourceConsumptionList.size() - 1){44 if(currentPhase == executionPhases.size() - 1){ 45 45 return true; 46 46 } … … 58 58 public long getLength() { 59 59 long length = 0; 60 for(ExecutionPhase execPhase: resourceConsumptionList){60 for(ExecutionPhase execPhase: executionPhases){ 61 61 length = length + execPhase.getLenght(); 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.